| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <%@ 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/core/deptUserTree.js"></script>
- <script type="text/javascript">
- $(function () {
- searchByKword();
- });
- function search(s){
- var userId = $("#userId").val();
- var p = $("#p").val();
- var pSize = getPize();
- var param={"p":p,"pSize":pSize};
- sendAsyncAjax(param, "MTMeetingRoomAction.do?task=approve&status=0&userId="+ userId+""+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 += '<div class="wdrw_tiao_new bn'+bdiv+' fl"></div>';
- html += '<div class="tr_rw_d_new fl">';
- html += '<p><img src="/shares/images/master1/rw_ico_menu.png" width="17" height="15" />';
- html += ' '+arr.name+'('+arr.group_name+') 申请会议室 【'+arr.meeting_room_name+'】,';
- if(arr.remark != ""){
- html+= '所需设备: '+arr.remark+'</p>';
- }else{
- html+= '所需设备: 无</p>';
- }
- var start_date = arr.start_date;
- var end_date = arr.end_date;
- html += '<p class="mar5">使用时间 '+start_date.substr(0, 16)+' 至 '+end_date.substr(0, 16)+'</p>';
- html += '</div>';
- html+= '<div class="tr_rw_btn_new fr">';
- html += '<div class="div_btn"><input type="button" class="btn_c" value="删除" onclick="deleteRow('+arr.universal_id+',\'maingrid3\')"/></div>';
- html += '<div class="div_btn"><input type="button" class="btn_c" value="编辑" onclick="toEditApply('+arr.universal_id+')" /></div>';
- html += '</div>';
- html += '</div>';
- }
- }
- $(item_name).html(html);
- });
- }
-
- var dialog = "";
- //新增
- function add(id){
- dialog = $.ligerDialog.open({ height: 420,width:550,title:"新增新闻",url: 'mtNews.do?task=toAddNews'});
- }
-
- //编辑
- function toEditApply(id){
- item('MTMeetingRoomAction.do?task=toEditApply&universal_id='+id+'');
- //window.parent.f_addTab(new Date().getTime(), '修改会议室申请', '/ynet/MeetingRoomAction.do?task=toEditApply&universal_id='+info+'&tabid=' + getCurrentTabId());
- }
- function editNews(id){
- item('mtNews.do?task=toEdit&news_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 viewNews(id){
- item('mtNews.do?task=info&news_id='+id+'');
- //dialog = $.ligerDialog.open({ height: 500,width:650,title:"新闻查看",url: 'mtNews.do?task=info&news_id='+id+''});
- }
-
- function deleteRow(obj,arg){
- if(confirm("您确定要删除该申请吗?")){
- $.ajax({
- type: "POST", //使用post方法访问后台
- url: "${pageContext.request.contextPath }/MTMeetingRoomAction.do?task=delApplyMeetingRoom"+ "&universal_id="+obj,
- success: function (data) {
- item('MTMeetingRoomAction.do?task=succeedSkip&type=1&type2=2');
- },
- error: function(data){
- item('MTMeetingRoomAction.do?task=failSkip&type=1&type2=2');
- }
- });
- }
- }
-
- //查询
- function searchByKword(){
- //var news_title = document.getElementById("news_title");
- //var news_type_id = document.getElementById("news_type_id");
- var news_sort = document.getElementById("news_sort");
- var s = "";
- /* if(news_title.value != "" && typeof(news_title.value) != "undefined" ){
- s += "&news_title=" + encodeURI(encodeURI(news_title.value));
- } */
- /* if(news_type_id.value != "" && typeof(news_type_id.value) != "undefined" ){
- s += "&news_type_id=" + encodeURI(encodeURI(news_type_id.value));
- } */
- if(news_sort.value != "" && typeof(news_sort.value) != "undefined" ){
- s += "&news_sort=" + encodeURI(encodeURI(news_sort.value));
- }
- 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}">
- <input type="hidden" id="userId" name="userId" value="${requestScope.userId }">
- <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>
- <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/leftMeetingTz.jsp"%>
- </div>
- </body>
- </html>
|