| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>会议室管理</title>
- <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/searchBox.js"></script>
- <script type="text/javascript">
- $(function () {
- searchByKword();
- });
- function search(s){
- var p = $("#p").val();
- var pSize = getPize();
- var param={"p":p,"pSize":pSize};
- sendAsyncAjax(param, "MTMeetingRoomAction.do?task=list"+s, "json", function(data) {
- var num = data.Total;
- page(num,pSize,p);
- var datas = data.Rows;
- var item_name = $('#contentDiv');
- $(item_name).empty();//初始化table,清空table
- var html = '';
- if(datas.length == 0){
- html = notquery();
- }else{
- var j=0;
- for (var i = 0; i < datas.length; i++){
- var arr = datas[i];
- var bdiv = 1;
- bdiv = 1 + j;
- if (j < 7) {j++} else {j = 0;};
- html += '<div class="tr_cont_new mar4 f5_new">';
- html+= '<a href="#" onclick="viewMeetingRoom('+arr["meeting_room_id"]+')">';
- html += '<div class="wdrw_tiao_new bn'+bdiv+' fl"></div>';
- html += '<div class="tr_rw_d_new fl">';
- var s = arr.meeting_room_create_date;
- var date = s.substr(0,10);
- html+= '<p><img src="/shares/images/master1/rw_ico_menu.png" width="17" height="15" />';
- html+= '【'+arr.desc+'】'+arr.name+' '+date+'</p>';
- html+= '<p class="mar5">'+arr.meeting_room_name+'</p>';
- html+= '</div>';
- html+= '</a>';
- html+= '<div class="tr_rw_btn_new fr">';
- html+= '<div class="div_btn"><input type="button" class="btn_c" value="删 除" onclick="delMeetingRoom('+arr["meeting_room_id"]+')"/></div>';
- html+= '<div class="div_btn"><input type="button" class="btn_c" value="编 辑" onclick="editMeetingRoom('+arr["meeting_room_id"]+')" /></div>';
- html+= '</div>';
- html+= '</div>';
- }
- }
- $(item_name).html(html);
- });
- }
-
- var dialog = "";
- //新增
- function addMeetingRoom(id){
- dialog = $.ligerDialog.open({ height: 420,width:550,title:"新增新闻",url: 'mtNews.do?task=toAddNews'});
- }
-
- //编辑
- function editMeetingRoom(id){
- item('MTMeetingRoomAction.do?task=toEdit&meeting_room_id='+id+'');
- //openMsg("编辑新闻","${pageContext.request.contextPath }/mtNews.do?task=toEdit&news_id="+id+"&tabid="+ getCurrentTabId()+"","400","500");
- //dialog = $.ligerDialog.open({ height: 420,width:550,title:"编辑新闻",url: 'mtNews.do?task=toEdit&news_id='+id+''});
- }
-
- //查看
- function viewMeetingRoom(id){
- item('MTMeetingRoomAction.do?task=info&meeting_room_id='+id+'');
- //dialog = $.ligerDialog.open({ height: 500,width:650,title:"新闻查看",url: 'mtNews.do?task=info&news_id='+id+''});
- }
-
- //删除
- function delMeetingRoom(id){
- if (confirm("确定要删除吗?")){
- $.ajax({
- type : "POST",
- url:'MTMeetingRoomAction.do?task=dels',
- data : {"meeting_room_id":id},
- timeout : 10000,
- cache : false,
- dataType : "json",
- success: function (data) {
- var success = data.success;
- if (success != undefined) {
- item('MTMeetingRoomAction.do?task=succeedSkip2');
- }else{
- item('MTMeetingRoomAction.do?task=failSkip2');
- }
- },
- error : showAjaxError
- });
- }
- }
- /* function delMeetingRoom(id){
- $.ajax({
- type : "POST",
- url:'MTMeetingRoomAction.do?task=delExamine',
- data : {"meeting_room_id":id},
- timeout : 10000,
- cache : false,
- dataType : "json",
- success: function (data) {
- var success = data.success;
- if (success == undefined) {
- if (confirm("确定要删除吗?")){
- $.ajax({
- type : "POST",
- url:'MTMeetingRoomAction.do?task=dels&type=1',
- data : {"meeting_room_id":id},
- timeout : 10000,
- cache : false,
- dataType : "json",
- success: function (data) {
- var success = data.success;
- if (success != undefined) {
- item('MTMeetingRoomAction.do?task=succeedSkip2');
- }else{
- item('MTMeetingRoomAction.do?task=failSkip3');
- }
- },
- error : showAjaxError
- });
- }
- } else {
- if (confirm("确定要删除吗?")){
- $.ajax({
- type : "POST",
- url:'MTMeetingRoomAction.do?task=dels',
- data : {"meeting_room_id":id},
- success: function (data) {
- item('MTMeetingRoomAction.do?task=succeedSkip2');
- },
- error: function(data){
- item('MTMeetingRoomAction.do?task=failSkip2');
- }
- });
- }
- }
- },
- error : showAjaxError
- });
- } */
-
-
- //查询
- function searchByKword(){
- var meeting_room_name = searchBox.getValue();
- var s = "";
- if(meeting_room_name != "" && typeof(meeting_room_name) != "undefined" ){
- s += "&meeting_room_name=" + encodeURI(encodeURI(meeting_room_name));
- }
- search(s);
- }
-
- //查询全部
- function searchAll(){
- $("#news_title").val("");
- $("#news_type_id").val("");
- $("#news_sort").val("");
- var s = "";
- submitItemName(s);
- }
-
- //获取焦点
- $(document).ready(function() {
- $("[id='news_title']").focus();
- });
-
- </script>
- </head>
- <span style="float:none;"></span>
- <body>
- <input type="hidden" id="news_sort" name="news_sort" value="${news_sort}">
- <div class="tc_b">
- <div id="left" style="float:left;width:100%;">
- <div class="tc_r">
- <div class="tr_con b5 f4">
- <div class="fl">
- <img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" /> 会议室管理
- </div>
- <div class="div_ck_k fr">
- <input class="div_cx fl" name="meeting_room_name" id="meeting_room_name" type="text" />
- <input class="btn_ck fl" type="button" id="button" onclick="searchByKword()"/>
- </div>
- </div>
- <div class="tr_right_bg">
- <div id="contentDiv"></div>
- <jsp:include page="/yw/master1/page.jsp">
- <jsp:param name="functionName" value="searchByKword"/>
- <jsp:param name="p" value="1"/>
- <jsp:param name="pSize" value="7"/>
- </jsp:include>
- </div>
- </div>
- </div>
- <%@ include file="/yw/master1_oa/meeting/leftMeetingRoom.jsp"%>
- </div>
- </body>
- </html>
|