|
|
<!DOCTYPE html>
|
|
|
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
|
|
<%@ include file="/common/ctx.jsp"%>
|
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
|
|
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
|
|
<html>
|
|
|
<head>
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
<meta name="description"
|
|
|
content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
|
|
|
<meta name="author" content="Coderthemes">
|
|
|
<title>TcdcResDemonstrationarea list页面</title>
|
|
|
<script type="text/javascript" src="${ctx}/js/jquery-1.7.1.min.js"></script>
|
|
|
<link type="text/css" rel="stylesheet" href="${ctx}/css/cjy_style.css" />
|
|
|
<link rel="stylesheet" type="text/css" href="${ctx}/css/cjy_table.css">
|
|
|
<link type="text/css" rel="stylesheet" href="${ctx}/css/cjy_biaodan.css" />
|
|
|
<!-- Base Css Files -->
|
|
|
<script src="${ctx}/js/current.js" type="text/javascript"></script>
|
|
|
<script src="${ctx}/js/jquery.min.js"></script>
|
|
|
<link href="${ctx}/css/showDialog.css" rel="stylesheet" type="text/css" />
|
|
|
<script type="text/javascript" src="${ctx}/js/jquery.form.js"></script>
|
|
|
<script type="text/javascript" src="${ctx}/js/lhgdialog/lhgdialog.js"></script>
|
|
|
<script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
|
|
|
<script type="text/javascript" src="${ctx}/js/zTree_v3/js/jquery.ztree.core.min.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
var data = '${reglistallJson}';
|
|
|
</script>
|
|
|
<link rel="stylesheet" href="${ctx}/js/zTree_v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
|
|
|
<script type="text/javascript" src="${ctx}/js/zTree_v3/js/zTreeUtil.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
//新建
|
|
|
function save(){
|
|
|
location.href="${ctx}/tcdcresdemonstrationarea/gotoAddTcdcResDemonstrationareaPage.do";
|
|
|
|
|
|
}
|
|
|
//修改
|
|
|
function goEdit(id){
|
|
|
location.href="${ctx}/tcdcresdemonstrationarea/gotoEditTcdcResDemonstrationareaPage.do?tcdcResDemonstrationareaId="+id;
|
|
|
|
|
|
}
|
|
|
//删除
|
|
|
function gotoDel(ids){
|
|
|
$.dialog.confirm('是否删除本条信息?', function() {
|
|
|
$.ajax({
|
|
|
type:'post',
|
|
|
url:'${ctx}/tcdcresdemonstrationarea/deleteTcdcResDemonstrationarea.do?ids='+ids,
|
|
|
dataType:'json',
|
|
|
success:function(json){
|
|
|
document.mainForm.action = "${ctx}/tcdcresdemonstrationarea/searchTcdcResDemonstrationareaList.do";
|
|
|
document.mainForm.submit();
|
|
|
}
|
|
|
});
|
|
|
}, function() {
|
|
|
$("#mainForm input").each(function() {
|
|
|
this.checked = false;
|
|
|
});
|
|
|
return;
|
|
|
});
|
|
|
|
|
|
}
|
|
|
//详情
|
|
|
function goDetil(id){
|
|
|
location.href ="${ctx}/tcdcresdemonstrationarea/gotoDetilTcdcResDemonstrationareaPage.do?tcdcResDemonstrationareaId=" + id;
|
|
|
|
|
|
}
|
|
|
//查询方法
|
|
|
function searchAll(){
|
|
|
document.mainForm.submit();
|
|
|
|
|
|
}
|
|
|
//重置
|
|
|
function reset2(){
|
|
|
document.getElementById("cname").value="";
|
|
|
document.getElementById("region").value="";
|
|
|
document.getElementById("rlevel").value="";
|
|
|
}
|
|
|
//导入
|
|
|
function daoru(){
|
|
|
document.mainForm.action = "${ctx}/tcdcresdemonstrationarea/daoruTcdcResDemonstrationarea.do";
|
|
|
document.mainForm.submit();
|
|
|
}
|
|
|
//导出
|
|
|
function daochu(){
|
|
|
$.dialog.confirm('是否导出信息?', function() {
|
|
|
document.mainForm.action = "${ctx}/tcdcresdemonstrationarea/daochuTcdcResDemonstrationarea.do";
|
|
|
document.mainForm.submit();
|
|
|
document.mainForm.action = "${ctx}/tcdcresdemonstrationarea/searchTcdcResDemonstrationareaList.do";
|
|
|
}, function() {
|
|
|
$("#mainForm input").each(function() {
|
|
|
this.checked = false;
|
|
|
});
|
|
|
return;
|
|
|
});
|
|
|
|
|
|
|
|
|
}
|
|
|
//数据导入
|
|
|
function daoru2(){
|
|
|
$.dialog({
|
|
|
title:'数据导入',
|
|
|
width: '700px',
|
|
|
height: 500,
|
|
|
max:false,
|
|
|
min:false,
|
|
|
esc:false,
|
|
|
content: "url:${ctx}/tcdcresdemonstrationarea/daoru2TcdcResDemonstrationarea.do",
|
|
|
lock:true,
|
|
|
close: function() {
|
|
|
document.mainForm.action = "${ctx}/tcdcresdemonstrationarea/searchTcdcResDemonstrationareaList.do";
|
|
|
document.mainForm.submit();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
//地图展示
|
|
|
function showMap(lon,lat){
|
|
|
if(lon!=''&&lon!='null'&&lat!=''&&lat!='null'){
|
|
|
$.dialog({
|
|
|
title:'地图',
|
|
|
width: '700px',
|
|
|
height: 500,
|
|
|
max:false,
|
|
|
min:false,
|
|
|
esc:false,
|
|
|
content: "url:${ctx}/sysuser/mapDot.do?lon="+lon+"&lat="+lat
|
|
|
});
|
|
|
}else{
|
|
|
$.dialog({
|
|
|
title:'地图',
|
|
|
content: '没有经纬度',
|
|
|
max:false,
|
|
|
min:false,
|
|
|
esc:false
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
</head>
|
|
|
<body style=" background:#fff;">
|
|
|
<form action="${ctx}/tcdcresdemonstrationarea/searchTcdcResDemonstrationareaList.do"
|
|
|
id="mainForm" method="post" name="mainForm"
|
|
|
enctype="multipart/form-data">
|
|
|
<input type="hidden" name="ids" />
|
|
|
<input type="hidden" name="flag" />
|
|
|
<div class="cjy_ovst5">
|
|
|
<div class="cjy_jscz">
|
|
|
<div class="cjy_btns">
|
|
|
<!-- <a href="javascript:save()" class="cjy_btn color_lv">录入数据</a> <a -->
|
|
|
<!-- id="importButton" href="javascript:daoru2()" -->
|
|
|
<!-- class="cjy_btn color_lanz">导入数据</a> -->
|
|
|
<a id="exportButton"
|
|
|
href="javascript:daochu()" class="cjy_btn color_lanz">导出数据</a>
|
|
|
</div>
|
|
|
<div class="cjy_bdx">
|
|
|
<div class="cjy_bdx_search">
|
|
|
<input type="text" id="cname" name="cname" value="${cname}" placeholder="请输入中文名称全称" /><span class="cjy_icon cjy_icon_search"></span>
|
|
|
</div>
|
|
|
<div class="cjy_select">
|
|
|
<select id="region" name="region">
|
|
|
<option value="">河北地市</option>
|
|
|
<c:forEach items="${reglist}" var="list">
|
|
|
<option value="${list.regid}" <c:if test="${list.regid==region}">selected = "selected"</c:if>>${list.name}</option>
|
|
|
</c:forEach>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="cjy_select">
|
|
|
<select id="rlevel" name="rlevel" >
|
|
|
<option value="">--请选择--</option>
|
|
|
<c:forEach items="${listsydic737}" var="list">
|
|
|
<option value="${list.dicid}" <c:if test="${list.dicid==lis.rlevel}">selected = "selected"</c:if>>${list.dicname}</option>
|
|
|
</c:forEach>
|
|
|
</select>
|
|
|
</div>
|
|
|
<a href="javascript:searchAll()" class="cjy_btn color_lan">搜索</a>
|
|
|
<div class="clear"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
<div>
|
|
|
<div class="cjy_table">
|
|
|
<table id="maintable" cellpadding="0" cellspacing="0" border="0"
|
|
|
width="100%">
|
|
|
<tr>
|
|
|
<th><p>序号</p>
|
|
|
</th>
|
|
|
<th><p>中文名称全称</p></th>
|
|
|
<th><p>联系人</p></th>
|
|
|
<th><p>联系电话</p></th>
|
|
|
<th><p>地区编码</p></th>
|
|
|
<th><p>资源等级</p></th>
|
|
|
<th><p>传真</p></th>
|
|
|
<th><p>状态</p></th>
|
|
|
<th><p>备注</p></th>
|
|
|
<th><p>创建时间</p></th>
|
|
|
<th><p>操作</p></th>
|
|
|
</tr>
|
|
|
<c:forEach items="${list}" var="lis" varStatus="vst">
|
|
|
<tr>
|
|
|
<td><p>${(vst.index)+1}</p></td>
|
|
|
|
|
|
<td><a href="javascript:goDetil(${lis.id})">${lis.cname}</a></td>
|
|
|
<td><p>${lis.linkUser}</p></td>
|
|
|
<td><p>${lis.linkTel}</p></td>
|
|
|
<td>
|
|
|
<p style="text-align:left">
|
|
|
<cjy:RegionFormatter regioncode="${lis.region}"/>
|
|
|
</p>
|
|
|
</td>
|
|
|
<td><p>
|
|
|
<c:forEach items="${listsydic737}" var="list">
|
|
|
<c:if test="${fn:contains(lis.rlevel,list.dicid)}">${list.dicname}</c:if>
|
|
|
</c:forEach>
|
|
|
</p></td>
|
|
|
<td><p>${lis.fax}</p></td>
|
|
|
<td><p>
|
|
|
<c:forEach items="${listsydic721}" var="list">
|
|
|
<c:if test="${fn:contains(lis.statu,list.dicid)}">${list.dicname}</c:if>
|
|
|
</c:forEach>
|
|
|
</p></td>
|
|
|
<td><p>${lis.remark}</p></td>
|
|
|
<td><fmt:formatDate value="${lis.createtime}" type="date" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
|
|
|
|
|
<td><p>
|
|
|
<!-- <a href="javascript:goEdit(${lis.id})" title="修改"
|
|
|
class="cjy_text_huang">编辑</a> <a
|
|
|
href="javascript:gotoDel(${lis.id})" title="删除"
|
|
|
class="cjy_text_h">删除</a> -->
|
|
|
<a href="javascript:showMap('${lis.lon}','${lis.lat}')" class="cjy_text_qlan">地图展示</a>
|
|
|
</p>
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
|
</table>
|
|
|
</div>
|
|
|
<%@include file="/common/page.jsp"%>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- ============================================================== -->
|
|
|
<!-- End Right content here -->
|
|
|
<!-- ============================================================== -->
|
|
|
</form>
|
|
|
<script type="text/javascript"
|
|
|
src="${ctx}/js/lhgdialog/lhgdialog.min.js"></script>
|
|
|
</body>
|
|
|
<script type="text/javascript" src="${ctx}/js/day/laydate.js"></script>
|
|
|
<script type="text/javascript" src="${ctx}/js/showDialog.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
</script>
|
|
|
</html>
|
|
|
|
|
|
|