|
|
<!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>TcdcResHotel 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>
|
|
|
<!-- zTree相关 -->
|
|
|
<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>
|
|
|
<style type="text/css">
|
|
|
.cjy_select{ float: left;}
|
|
|
.dw_ztree{ position: relative;}
|
|
|
.ztree2{ position: absolute; top:30px; left;0; background: #fff;}
|
|
|
</style>
|
|
|
<script type="text/javascript">
|
|
|
//新建
|
|
|
function save(){
|
|
|
location.href="${ctx}/tcdcTourNews/gotoAddTcdcResHotelPage.do";
|
|
|
|
|
|
}
|
|
|
//修改
|
|
|
function goEdit(id){
|
|
|
location.href="${ctx}/tcdcTourNews/gotoEditTcdcResHotelPage.do?tcdcResHotelId="+id;
|
|
|
|
|
|
}
|
|
|
//删除
|
|
|
function gotoDel(ids){
|
|
|
$.dialog.confirm('是否删除本条信息?', function() {
|
|
|
$.ajax({
|
|
|
type:'post',
|
|
|
url:'${ctx}/tcdcTourNews/deleteTcdcResHotel.do?ids='+ids,
|
|
|
dataType:'json',
|
|
|
success:function(json){
|
|
|
document.mainForm.action = "${ctx}/tcdcTourNews/searchTcdcGolfCourseList.do";
|
|
|
document.mainForm.submit();
|
|
|
}
|
|
|
});
|
|
|
}, function() {
|
|
|
$("#mainForm input").each(function() {
|
|
|
this.checked = false;
|
|
|
});
|
|
|
return;
|
|
|
});
|
|
|
|
|
|
}
|
|
|
//详情
|
|
|
function goDetil(id){
|
|
|
location.href ="${ctx}/tcdcTourNews/detil.do?id=" + id;
|
|
|
|
|
|
}
|
|
|
//查询方法
|
|
|
function searchAll(){
|
|
|
document.mainForm.submit();
|
|
|
|
|
|
}
|
|
|
//重置
|
|
|
function reset2(){
|
|
|
document.getElementById("cname").value="";
|
|
|
document.getElementById("addr").value="";
|
|
|
document.getElementById("rlevel").value="";
|
|
|
document.getElementById("levelcode").value="";
|
|
|
document.getElementById("region").value="";
|
|
|
}
|
|
|
//导入
|
|
|
function daoru(){
|
|
|
document.mainForm.action = "${ctx}/tcdcTourNews/daoruTcdcResHotel.do";
|
|
|
document.mainForm.submit();
|
|
|
}
|
|
|
//导出
|
|
|
function daochu(){
|
|
|
$.dialog.confirm('是否导出信息?', function() {
|
|
|
document.mainForm.action = "${ctx}/tcdcTourNews/daochuTcdcResHotel.do";
|
|
|
document.mainForm.submit();
|
|
|
document.mainForm.action = "${ctx}/tcdcTourNews/list.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}/tcdcTourNews/daoru2TcdcResHotel.do",
|
|
|
lock:true,
|
|
|
close: function() {
|
|
|
document.mainForm.action = "${ctx}/tcdcTourNews/searchTcdcGolfCourseList.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}/tcdcTourNews/list.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 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="title" name="title" value="${search.title}" placeholder="请输入标题" /><span class="cjy_icon cjy_icon_search"></span>
|
|
|
</div>
|
|
|
<div class="cjy_bdx_search ">
|
|
|
<div class="cjy_select dw_ztree">
|
|
|
<input onclick="$('#regionZtree').toggle()" id="region" placeholder="请选择区域" readonly="readonly" type="text"></input>
|
|
|
<input id="regionCode" name="regionStr" readonly="readonly" type="hidden"></input>
|
|
|
<ul id="regionZtree" class="ztree ztree2" style="display: none;">
|
|
|
|
|
|
</ul>
|
|
|
</div>
|
|
|
</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>--%>
|
|
|
</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.title}</a></td>
|
|
|
<td><p>${lis.category}</p></td>
|
|
|
<td>
|
|
|
<p style="text-align:left">
|
|
|
<cjy:RegionFormatter regioncode="${lis.region}"/></p>
|
|
|
</td>
|
|
|
<td><p>${lis.summary}</p></td>
|
|
|
<td><p>${lis.author}</p></td>
|
|
|
<td><p>${lis.source}</p></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> -->
|
|
|
</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>
|
|
|
|
|
|
|