<%@ 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() {
$("#export").click(function(){
top.$.jBox.confirm("確認要導出定位樁數據嗎?","系統提示",function(v,h,f){
if(v=="ok"){
$("#searchForm").attr("action","${ctx}/pileinfo/pile/export");
$("#searchForm").submit();
}
},{buttonsFocus:1});
top.$('.jbox-body .jbox-icon').css('top','55px');
});
$("#import").click(function(){
$.jBox($("#importBox").html(), {title:"導入數據", buttons:{"關閉":true},
bottomText:"導入文件不能超過5M,僅允許導入“kml”格式文件!"});
});
});
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").attr("action","${ctx}/pileinfo/pile/");<!-- 解決導出excel後,在點翻頁還出現導出文件的現象-->
$("#searchForm").submit();
return false;
}
</script>
</head>
<body>
<div id="importBox" class="hide">
<form id="importForm" action="${ctx}/pileinfo/pile/import" method="post" enctype="multipart/form-data"
class="form-search" style="padding-left:20px;text-align:center;" onsubmit="loading('正在導入,請稍等...');"><br/>
<input id="uploadFile" name="file" type="file" style="width:330px"/><br/><br/>
<input id="btnImportSubmit" class="btn btn-primary" type="submit" value=" 導 入 "/>
</form>
</div>
<ul class="nav nav-tabs">
<li class="active"><a href="${ctx}/pileinfo/pile/">定位樁基本信息列表</a></li>
<shiro:hasPermission name="pileinfo:pile:edit"><li><a href="${ctx}/pileinfo/pile/form">定位樁基本信息添加</a></li></shiro:hasPermission>
</ul>
<form:form id="searchForm" modelAttribute="pile" action="${ctx}/pileinfo/pile/" 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}"/>
<ul class="ul-form">
<li><label>樁固定編號:</label>
<form:input path="pileId" htmlEscape="false" maxlength="64" class="input-medium"/>
</li>
<li><label>工程中編號:</label>
<form:input path="engineeringId" htmlEscape="false" maxlength="64" class="input-medium"/>
</li>
<li><label>所屬工程:</label>
<form:input path="belongToProject" htmlEscape="false" maxlength="64" class="input-medium"/>
</li>
<li><label>塔杆類型:</label>
<form:select path="poleType" class="input-medium">
<form:option value="" label=""/>
<form:options items="${fns:getDictList('pie_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
</form:select>
</li>
<li><label>立樁時間:</label>
<input name="standingPileTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
value="<fmt:formatDate value="${pile.standingPileTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
</li>
<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查詢" onclick="return page();"/></li><!-- 添加onclick="return page();"解決導出excel後,在點查詢按鈕還出現導出文件的現象,-->
<li class="btns"><input id="import" class="btn btn-primary" type="button" value="導入"/></li>
<li class="btns"><input id="export" class="btn btn-primary" type="button" 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 style="text-align:center; width:35px;">序號</th>
<shiro:hasPermission name="pileinfo:pile:edit"><th>操作</th></shiro:hasPermission>
</tr>
</thead>
<tbody>
<c:set var="no" value="${(page.pageNo-1)*page.pageSize}"></c:set>
<c:forEach items="${page.list}" var="pile" varStatus="status">
<tr>
<shiro:hasPermission name="pileinfo:pile:edit"><td>
<a href="${ctx}/pileinfo/pile/form?id=${pile.id}">修改</a>
<a href="${ctx}/pileinfo/pile/delete?id=${pile.id}" onclick="return confirmx('確認要刪除該定位樁基本信息嗎?', this.href)">刪除</a>
</td></shiro:hasPermission>
</tr>
</c:forEach>
</tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>