jeesite导出问题

<%@ 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>

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章