editMeetingRoom.jsp 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>编辑会议室</title>
  8. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script type="text/javascript" src="/shares/js/jquery-1.6.4.min.js"></script>
  10. <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
  11. <script type="text/javascript" src="/shares/js/yw/oa/oa.js"></script>
  12. <script type="text/javascript" src="/shares/js/constant.js"></script>
  13. <script type="text/javascript" src="/shares/js/common.js"></script>
  14. <script type="text/javascript" src="/shares/js/file.js"></script>
  15. <script type="text/javascript" src="/shares/js/yw/core/deptUserTree.js"></script>
  16. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  17. <script type="text/javascript" src="/shares/js/yw/oa/meeting.js"></script>
  18. <link rel="stylesheet" type="text/css" href="/shares/css/yw/master1/${sessionScope.loginFrom}/jquery.jscrollpane.codrops1.css" />
  19. <!-- the mousewheel plugin -->
  20. <script type="text/javascript" src="/shares/js/yw/master1/jquery.mousewheel.js"></script>
  21. <!-- the jScrollPane script -->
  22. <script type="text/javascript" src="/shares/js/yw/master1/jquery.jscrollpane.min.js"></script>
  23. <script type="text/javascript" src="/shares/js/yw/master1/scroll-startstop.events.jquery.js"></script>
  24. <script type="text/javascript" src="/shares/js/yw/master1/scroll.js"></script>
  25. <script src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" type="text/javascript" ></script>
  26. <script type="text/javascript">
  27. $(function ()
  28. {
  29. //$("input[type='text']:first").focus();
  30. $("#desc").ligerComboBox({
  31. url :'MeetingRoomAction.do?task=getData',
  32. isShowCheckBox: false,
  33. isMultiSelect: false,
  34. textField : 'desc',
  35. width:'286',
  36. height : '28',
  37. valueField : 'data_id',
  38. valueFieldID: 'meeting_room_type',
  39. split :','
  40. });
  41. });
  42. function checkForm() {
  43. $("#save").attr('disabled',true);
  44. $("#msgBox").empty();
  45. var rs = $.validate({
  46. name : "meeting_room_name",
  47. model : [ {
  48. type : "require",
  49. msg : "会议室名称不能为空!"
  50. }, {
  51. type : "len",
  52. min : 1,
  53. max : 100,
  54. msg : "会议室名称长度不能超过100个字!"
  55. } ]
  56. });
  57. rs = $.validate({
  58. name : "meeting_room_remark",
  59. model : [ {
  60. type : "len",
  61. min : 0,
  62. max : 270,
  63. msg : "备注长度不能超过270个字!"
  64. } ]
  65. }) && rs;
  66. rs = $.validate({
  67. name : "meeting_room_type",
  68. model : [ {
  69. type : "require",
  70. msg : "会议室状态不能为空!"
  71. } ]
  72. }) && rs;
  73. rs = $.validate({
  74. name : "meeting_room_place",
  75. model : [ {
  76. type : "require",
  77. msg : "会议室地点不能为空!"
  78. } ]
  79. }) && rs;
  80. rs = $.validate({
  81. name : "meeting_room_space",
  82. model : [ {
  83. type : "require",
  84. msg : "会议室可容纳人数不能为空!"
  85. } ]
  86. }) && rs;
  87. if (rs) {
  88. if ($("#meeting_room_space").val().match(/^[1-9]\d*$/) == null && $("#meeting_room_space").val().replace(/(^\s*)|(\s*$)/g, "") != ""){
  89. $("#msgBox").append("<font color=\"red\"> 会议室可容纳人数应为正整数!</font>");
  90. document.all.meeting_room_space.focus();
  91. $("#save").attr('disabled',false);
  92. return false;
  93. } else {
  94. $("#save").attr('disabled',false);
  95. return true;
  96. }
  97. }
  98. $("#save").attr('disabled',false);
  99. return false;
  100. }
  101. function sx(){
  102. //window.location.href="other.html";
  103. location.reload();
  104. }
  105. </script>
  106. </head>
  107. <style type="text/css">
  108. body {
  109. overflow:hidden;
  110. background:#fff;
  111. }
  112. </style>
  113. <body ontouchmove="event.preventDefault();">
  114. <form action="MTMeetingRoomAction.do" method="post" onsubmit="return checkForm();">
  115. <input type="hidden" id="meeting_room_id" name="meeting_room_id" value="${requestScope.meetingRoom.meeting_room_id }">
  116. <input type="hidden" id="task" name="task" value="edit">
  117. <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
  118. <div class="s_title b10 f6">
  119. <img src="/shares/images/master1/gg_ico.png" width="27" height="26" /> 编辑会议室
  120. <div class="article_title">
  121. <input class="art_back" title="返回" name="" onclick="history.back(-1);" type="button" />&nbsp;
  122. <input class="art_sub" title="保存" id="save" name="save" type="submit" value=""/>&nbsp;
  123. <!-- <input class="art_refresh" title="刷新" name="" type="button" value="" onclick="sx();"/> -->
  124. </div>
  125. </div>
  126. <div id="jp-container" class="jp-container liuyan">
  127. <ul>
  128. <li><span class="span_l f7">会议室名称<FONT COLOR="red">*</FONT>:</span>
  129. <input class="text_input1" name="meeting_room_name" id="meeting_room_name" value="${requestScope.meetingRoom.meeting_room_name }" type="text" style="width: 280px;"/>
  130. </li>
  131. <li><span class="span_l f7">会议室状态 <FONT COLOR="red">*</FONT>:</span>
  132. <span class="span_l f7">
  133. <input type="text" name="desc" id="desc" style="color: #737373;">
  134. <input type="hidden" name="meeting_room_type" id="meeting_room_type" value="${requestScope.meetingRoom.meeting_room_type }">
  135. </span>
  136. </select>
  137. </li>
  138. <li><span class="span_l f7">会议室地点<FONT COLOR="red">*</FONT>:</span>
  139. <%-- <textarea id="meeting_room_place" name="meeting_room_place" rows="3" cols="50">${requestScope.meetingRoom.meeting_room_place }</textarea> --%>
  140. <input class="text_input1" type="text" id="meeting_room_place" name="meeting_room_place" value="${requestScope.meetingRoom.meeting_room_place }" style="width: 280px;"/>
  141. </li>
  142. <li><span class="span_l f7">可容纳人数 <FONT COLOR="red">*</FONT>:</span>
  143. <input class="text_input1" type="text" id="meeting_room_space" name="meeting_room_space" value="${requestScope.meetingRoom.meeting_room_space }" style="width: 280px;"/>
  144. <div id="msgBox" style="display: inline;"></div>
  145. </li>
  146. <li><span class="span_l f7">会议室设备:</span>
  147. <textarea class="textarea1" id="meeting_room_equipment" name="meeting_room_equipment" rows="2" cols="70">${requestScope.meetingRoom.meeting_room_equipment }</textarea>
  148. <%-- <input class="text_input1" type="text" id="meeting_room_equipment" name="meeting_room_equipment" value="${requestScope.meetingRoom.meeting_room_equipment }" style="width: 280px;"/> --%>
  149. </li>
  150. <li><span class="span_l f7">备注:</span>
  151. <textarea class="textarea1" id="meeting_room_remark" name="meeting_room_remark" rows="2" cols="70">${requestScope.meetingRoom.meeting_room_remark }</textarea>
  152. </li>
  153. </ul>
  154. </div>
  155. </form>
  156. </body>
  157. </html>