c21b36b440e7d92d47d80f776baeb5baff90b2d7.svn-base 5.08 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() {
			$("#searchForm").validate({
				submitHandler: function(form){
					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 onSelectinfo() {
			var zsbm = $("#zsbmtext").val();
			var zslx = $("#zslxtext").val();
			var ywh = $("#ywhtext").val();
			var szr = $("#szrtext").val();
			var szzh = $("#szzhtext").val();
			var creater = $("#creatertext").val();
			var isbf = $("#isbftext").val();
			var url = "";
			if(zsbm == null || zsbm == ""){
				url = "${ctx}/reg/base/regBaseZsglb/alllist?zslx="+zslx+"&szr="+szr+"&szzh="+szzh+"&creater="+creater+"&isbf="+isbf+"&ywh="+ywh;
				$("#zsbmtext").val("0");
			}else{
				url = "${ctx}/reg/base/regBaseZsglb/alllist?zsbm="+zsbm+"&zslx="+zslx+"&szr="+szr+"&szzh="+szzh+"&creater="+creater+"&isbf="+isbf+"&ywh="+ywh;
			}
			$("#inputForm").attr("action", url);
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">证书编号列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="regBaseZsglb" onsubmit="onSelectinfo()" method="post" class="breadcrumb form-search">
		<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 path="zsbm" id="zsbmtext" htmlEscape="false" maxlength="12" class="input-medium digits"/>
			</li>
			<li><label>证书类型:</label>
				<form:select id="zslxtext" path="zslx" class="input-large ">
				<form:option value="" label=""/>
				<form:options items="${fns:getDictList('reg_bus_szmc')}" itemLabel="label" itemValue="value" htmlEscape="false" />
				</form:select>
			</li>
			<li><label>业务号:</label>
				<form:input path="ywh" id="ywhtext" htmlEscape="false" maxlength="12" class="input-medium digits"/>
			</li>
			<li><label>状态:</label>
				<form:select path="isbf" id="isbftext" class="input-medium ">
					<form:option value=""  label=" "/>
					<form:option value="0"  label="未引用"/>
					<form:option value="1"  label="已引用"/>
					<form:option value="2"  label="已报废"/>
				</form:select>
			</li>
			<li><label>繕证人:</label>
				<form:input path="szr" id="szrtext" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li><label>繕证编号:</label>
				<form:input path="szzh" id="szzhtext" htmlEscape="false" maxlength="10" class="input-medium digits"/>
			</li>
			<li><label>创建者:</label>
				<form:input path="creater" id="creatertext" htmlEscape="false" maxlength="10" class="input-medium"/>
			</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 class="sort-column zsbm">证书编码</th>
				<th class="sort-column zslx">证书类型</th>
				<th class="sort-column szr">繕证人</th>
				<th class="sort-column szzh">繕证证号</th>
				<th class="sort-column ywh">业务号</th>
				<th class="sort-column create_by">创建者</th>
				<th>创建时间</th>
				<th>更新时间</th>
				<th class="sort-column isbf">状态</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBaseZsglb">
			<tr>
				<td>
					<a href="${ctx}/reg/base/regBaseZsglb/formview?id=${regBaseZsglb.id}&VIEWS=1&update=1">
						${regBaseZsglb.zsbm}
					</a>
				</td>
				<td>
					${fns:getDictLabel(regBaseZsglb.zslx, 'reg_bus_szmc', '')}
				</td>
				<td>
					${regBaseZsglb.szr}
				</td>
				<td>
					${regBaseZsglb.szzh}
				</td>
				<td>
					${regBaseZsglb.ywh}
				</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 style="color: red">
					<c:if test="${regBaseZsglb.isbf eq '0'}">
						未引用
					</c:if>
					<c:if test="${regBaseZsglb.isbf eq '1'}">
						已引用
					</c:if>
					<c:if test="${regBaseZsglb.isbf eq '2'}">
						已报废
					</c:if>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>