You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
195 lines
6.7 KiB
195 lines
6.7 KiB
<!DOCTYPE html>
|
|
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
<%@ 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>
|
|
<title>重大活动及节假日管理</title>
|
|
<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">
|
|
|
|
<script type="text/javascript" src="${ctx}/hbcyjc/resourceNew/js/jquery.min.js"></script>
|
|
<script type="text/javascript" src="${ctx}/js/layer/layer.js"></script>
|
|
|
|
<!-- 字体图标 -->
|
|
<link href="${ctx}/assets/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
|
|
<link href="${ctx}/assets/ionicon/css/ionicons.min.css" rel="stylesheet"/>
|
|
<link href="${ctx}/css/material-design-iconic-font.min.css" rel="stylesheet">
|
|
|
|
<!-- select2 带搜索的下拉 -->
|
|
<link href="${ctx}/assets/select2/select2.css" rel="stylesheet" type="text/css"/>
|
|
<link href="${ctx}/assets/jquery-multi-select/multi-select.css" rel="stylesheet" type="text/css"/>
|
|
|
|
<!-- 自定义样式 -->
|
|
|
|
<%@ include file="/common/theme_css.jsp" %>
|
|
|
|
<script type="text/javascript">
|
|
//删除
|
|
function gotoDelete() {
|
|
var guid = $("#t_r_content .focus #guid").val();//获取列表选中的隐藏域的值
|
|
if(guid){
|
|
var festivalname = $("#t_r_content .focus #name").val();//获取列表选中的隐藏域的值
|
|
layer.confirm('确定删除【'+festivalname+'】吗?', {title:''}, function(){
|
|
$.ajax({
|
|
url : "${ctx}/festivalSupervise/delfestival.do",
|
|
data : {"guid" : guid},
|
|
type : "post",
|
|
dataType : "json",
|
|
success : function(data) {
|
|
if(data){
|
|
mySearch();
|
|
layer.msg("删除成功");
|
|
}else{
|
|
layer.msg("删除失败, 请稍后重试");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}else{
|
|
layer.msg("请选择一行");
|
|
}
|
|
}
|
|
|
|
//新增
|
|
function gotoAdd() {
|
|
layer.open({
|
|
type : 2,
|
|
title : "",
|
|
anim : 2,
|
|
shade: [0.7, '#333'],
|
|
area : [ '870px', '533px' ],
|
|
content : "${ctx}/festivalSupervise/addfestival.do?d="+new Date().getTime(),
|
|
end: function(){
|
|
mySearch();
|
|
}
|
|
});
|
|
}
|
|
|
|
//修改
|
|
function gotoEdit() {
|
|
var guid = $("#t_r_content .focus #guid").val();//获取列表选中的隐藏域的值
|
|
if(guid){
|
|
layer.open({
|
|
type : 2,
|
|
title : "",
|
|
anim : 2,
|
|
shade: [0.7, '#333'],
|
|
area : [ '788px', '460px' ],
|
|
content : "${ctx}/festivalSupervise/addfestival.do?guid="+ guid +"&d=" + new Date().getTime(),
|
|
end: function(){
|
|
mySearch();
|
|
}
|
|
});
|
|
}else{
|
|
layer.msg("请选择一行");
|
|
}
|
|
}
|
|
|
|
//查询
|
|
function mySearch() {
|
|
document.mainForm.submit();
|
|
}
|
|
//重置
|
|
function myReset() {
|
|
$('#festivalname').val('');
|
|
}
|
|
|
|
$(document).ready(function () {
|
|
//鼠标点击变色
|
|
$("#t_r_content tr").on("click", function () {
|
|
$(this).parent().find("tr.focus").toggleClass("focus");//取消原先选中行
|
|
$(this).toggleClass("focus");//设定当前行为选中行
|
|
});
|
|
//鼠标指向变色
|
|
$("#t_r_content tr").on("mouseover", function () {
|
|
$(this).parent().find("tr.mousefocus").toggleClass("mousefocus");//取消原先选中行
|
|
$(this).toggleClass("mousefocus");//设定当前行为选中行
|
|
});
|
|
});
|
|
</script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$("#sysName").html("重大活动及节假日管理");
|
|
$("#pageName").html("重大活动及节假日管理");
|
|
|
|
var my_menu_html =
|
|
'<a href="${ctx}/analysisReport/gotoDownload.do" class="caid_xiang">智慧旅游分析报告</a>' +
|
|
'<a href="${ctx}/festivalSupervise/festivalSuperviselist.do" class="caid_xiang active">重大活动及节假日管理</a>' ;
|
|
$("#menuList").html(my_menu_html);
|
|
});
|
|
</script>
|
|
<style type="text/css">
|
|
.mousefocus{
|
|
background-color: rgba(0,109,207,.20);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="xingk_nr"></div>
|
|
<%@include file="/common/menu.jsp" %>
|
|
<form action="${ctx}/festivalSupervise/festivalSuperviselist.do" id="mainForm" method="post" name="mainForm" enctype="multipart/form-data">
|
|
<div class="table_sck">
|
|
<div class="">
|
|
<button type="button" class="bttn" onclick="gotoAdd()"><i class="fa fa-plus"></i>新增</button>
|
|
<button type="button" class="bttn" onclick="gotoEdit()"><i class="fa fa-pencil"></i>修改</button>
|
|
<button type="button" class="bttn" onclick="gotoDelete()"><i class="fa fa-trash"></i>删除</button>
|
|
</div>
|
|
|
|
<div class="tsble_form">
|
|
|
|
<div class="form_hpzs">
|
|
<label class="form_label">活动节假日名称:</label>
|
|
<div class="form_input">
|
|
<select id="festivalname" name="festivalname" class="form-control">
|
|
<option value="">--请选择--</option>
|
|
<c:forEach items="${dictionary }" var="var">
|
|
<option value="${var.dicnum }" <c:if test="${var.dicnum == festivalname }">selected</c:if>>${var.dicname }</option>
|
|
</c:forEach>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="">
|
|
<button type="button" onclick="mySearch()" class="bttn bttn_ss" title="搜索"><i class="fa fa-search"></i>搜索</button>
|
|
<button class="bttn" title="重置" onclick="myReset()"><i class="fa fa-rotate-left "></i>重置</button>
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="lst_table_box">
|
|
<div class="t_r_t" id="t_r_t">
|
|
<div class="t_r_title pp-list">
|
|
<table class="pp-list">
|
|
<tr>
|
|
<th style="text-align:center;width:5%;">序号</th>
|
|
<th style="text-align:center;width:24%;">活动节假日名称</th>
|
|
<th style="text-align:center;width:24%;">开始时间</th>
|
|
<th style="text-align:center;width:24%;">结束时间</th>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="t_r_content t_table" id="t_r_content" onscroll="aa()" style="max-height:360px">
|
|
<table class="pp-list">
|
|
<c:forEach items="${list}" var="lis" varStatus="vst">
|
|
<tr>
|
|
<input id="guid" type="hidden" value="${lis.guid}"/>
|
|
<input id="name" type="hidden" value="${lis.festivalname}"/>
|
|
<td style="text-align:center;width:5%;">${(vst.index)+1}</td>
|
|
<td style="text-align:center;width:24%;">${lis.festivalname}</td>
|
|
<td style="text-align:center;width:24%;"><fmt:formatDate value="${lis.stime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
|
<td style="text-align:center;width:24%;"><fmt:formatDate value="${lis.etime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
|
</tr>
|
|
</c:forEach>
|
|
</table>
|
|
</div>
|
|
<%@include file="/common/page.jsp"%>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |