8b6d576eb475fad5a161c96d6d7382fda23a3228.svn-base 4.18 KB
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>证书信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			$("tbody > tr").bind("click",function(){
				$("tbody > tr").each(function(i){    
		             $(this).removeClass("trBgcolor");
		        });
				$(this).find('input:radio').prop('checked', true);
				$(this).addClass("trBgcolor");
			});
			
			$("#searchForm").validate({
				submitHandler: function(form){
					loading('正在提交,请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误,请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		
		function btnNext(){
			var checkedCount = $("input[type='radio']:checked").length;
			if(checkedCount == 0){
				alert("必须选择一条信息!");
				return;
			}
			//选中一行后,获取信息相关值 
			var zsbmValue = $("input[name='radio_BaseZsglb']:checked").parent().next().text();
			if(window.opener) {
				ysxlhValueText = window.opener.document.getElementById("ysxlhText");
				if(ysxlhValueText){
					ysxlhValueText.value = zsbmValue.trim();
				}
			}	
			window.close();
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reg/base/regBaseZsglb/">证书编号列表</a></li><!-- list?szwhrk=${szwhrk}&zslx=${zslx} -->
	</ul>
	<form:form id="searchForm" modelAttribute="regBaseZsglb" action="#" method="post" class="breadcrumb form-search"> <!-- list?szwhrk=${szwhrk}&zslx=${zslx} -->
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
		<ul class="ul-form">
			<li ><label>证书编号:</label>
				<form:input id="zsbmText" path="zsbm" htmlEscape="false" maxlength="12" class="input-medium digits"/>
			</li>
			<li class="btns">
				<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
			</li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>选择</th>
				<th class="sort-column zsbm">证书编码</th>
				<th>证书类型</th>
				<th>繕证人</th>
				<th>繕证证号</th>
				<th>创建者</th>
				<th>创建时间</th>
				<th>更新时间</th>
				<th>备注信息</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBaseZsglb">
			<tr>
				<td><input type="radio" name="radio_BaseZsglb"  id="${regBaseZsglb.id}" value=""/></td>
				<td>
					<a href="#">
						${regBaseZsglb.zsbm}
					</a>
				</td>
				<td>
					${fns:getDictLabel(regBaseZsglb.zslx, 'reg_bus_szmc', '')}
					<c:if test="${regBaseZsglb.zslx eq '1'}">
						<c:choose>  
						   <c:when test="${regBaseZsglb.isdj eq 'J'}">(集成版)
						   </c:when>  
						   <c:otherwise>(单一版)
						   </c:otherwise>
						</c:choose>
						${fns:getDictLabel(regBaseZsglb.isdj, 'reg_bus_szmc', '')}
					</c:if>
				</td>
				<td>
					${regBaseZsglb.szr}
				</td>
				<td>
					${regBaseZsglb.szzh}
				</td>
				<td>
					${regBaseZsglb.creater}
				</td>
				<td>
					<fmt:formatDate value="${regBaseZsglb.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<fmt:formatDate value="${regBaseZsglb.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${regBaseZsglb.remarks}
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<div align="center">
		<br>
		<input id="choiceReged" class="btn btn-primary" type="button" onclick="btnNext();" value="下一步"/>
		<br><br>
	</div>
</body>
</html>