| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>编辑会议室</title>
- <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/jquery-1.6.4.min.js"></script>
- <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/yw/oa/oa.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <script type="text/javascript" src="/shares/js/yw/core/deptUserTree.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/oa/meeting.js"></script>
- <link rel="stylesheet" type="text/css" href="/shares/css/yw/master1/${sessionScope.loginFrom}/jquery.jscrollpane.codrops1.css" />
- <!-- the mousewheel plugin -->
- <script type="text/javascript" src="/shares/js/yw/master1/jquery.mousewheel.js"></script>
- <!-- the jScrollPane script -->
- <script type="text/javascript" src="/shares/js/yw/master1/jquery.jscrollpane.min.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/scroll-startstop.events.jquery.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/scroll.js"></script>
- <script src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" type="text/javascript" ></script>
- <script type="text/javascript">
- $(function ()
- {
- //$("input[type='text']:first").focus();
- $("#desc").ligerComboBox({
- url :'MeetingRoomAction.do?task=getData',
- isShowCheckBox: false,
- isMultiSelect: false,
- textField : 'desc',
- width:'286',
- height : '28',
- valueField : 'data_id',
- valueFieldID: 'meeting_room_type',
- split :','
- });
- });
-
- function checkForm() {
- $("#save").attr('disabled',true);
- $("#msgBox").empty();
- var rs = $.validate({
- name : "meeting_room_name",
- model : [ {
- type : "require",
- msg : "会议室名称不能为空!"
- }, {
- type : "len",
- min : 1,
- max : 100,
- msg : "会议室名称长度不能超过100个字!"
- } ]
- });
- rs = $.validate({
- name : "meeting_room_remark",
- model : [ {
- type : "len",
- min : 0,
- max : 270,
- msg : "备注长度不能超过270个字!"
- } ]
- }) && rs;
- rs = $.validate({
- name : "meeting_room_type",
- model : [ {
- type : "require",
- msg : "会议室状态不能为空!"
- } ]
- }) && rs;
- rs = $.validate({
- name : "meeting_room_place",
- model : [ {
- type : "require",
- msg : "会议室地点不能为空!"
- } ]
- }) && rs;
- rs = $.validate({
- name : "meeting_room_space",
- model : [ {
- type : "require",
- msg : "会议室可容纳人数不能为空!"
- } ]
- }) && rs;
- if (rs) {
- if ($("#meeting_room_space").val().match(/^[1-9]\d*$/) == null && $("#meeting_room_space").val().replace(/(^\s*)|(\s*$)/g, "") != ""){
- $("#msgBox").append("<font color=\"red\"> 会议室可容纳人数应为正整数!</font>");
- document.all.meeting_room_space.focus();
- $("#save").attr('disabled',false);
- return false;
- } else {
- $("#save").attr('disabled',false);
- return true;
- }
- }
- $("#save").attr('disabled',false);
- return false;
- }
-
- function sx(){
- //window.location.href="other.html";
- location.reload();
- }
- </script>
- </head>
- <style type="text/css">
- body {
- overflow:hidden;
- background:#fff;
- }
- </style>
- <body ontouchmove="event.preventDefault();">
- <form action="MTMeetingRoomAction.do" method="post" onsubmit="return checkForm();">
- <input type="hidden" id="meeting_room_id" name="meeting_room_id" value="${requestScope.meetingRoom.meeting_room_id }">
- <input type="hidden" id="task" name="task" value="edit">
- <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
- <div class="s_title b10 f6">
- <img src="/shares/images/master1/gg_ico.png" width="27" height="26" /> 编辑会议室
- <div class="article_title">
- <input class="art_back" title="返回" name="" onclick="history.back(-1);" type="button" />
- <input class="art_sub" title="保存" id="save" name="save" type="submit" value=""/>
- <!-- <input class="art_refresh" title="刷新" name="" type="button" value="" onclick="sx();"/> -->
- </div>
- </div>
- <div id="jp-container" class="jp-container liuyan">
- <ul>
- <li><span class="span_l f7">会议室名称<FONT COLOR="red">*</FONT>:</span>
- <input class="text_input1" name="meeting_room_name" id="meeting_room_name" value="${requestScope.meetingRoom.meeting_room_name }" type="text" style="width: 280px;"/>
- </li>
- <li><span class="span_l f7">会议室状态 <FONT COLOR="red">*</FONT>:</span>
- <span class="span_l f7">
- <input type="text" name="desc" id="desc" style="color: #737373;">
- <input type="hidden" name="meeting_room_type" id="meeting_room_type" value="${requestScope.meetingRoom.meeting_room_type }">
- </span>
- </select>
- </li>
- <li><span class="span_l f7">会议室地点<FONT COLOR="red">*</FONT>:</span>
- <%-- <textarea id="meeting_room_place" name="meeting_room_place" rows="3" cols="50">${requestScope.meetingRoom.meeting_room_place }</textarea> --%>
- <input class="text_input1" type="text" id="meeting_room_place" name="meeting_room_place" value="${requestScope.meetingRoom.meeting_room_place }" style="width: 280px;"/>
- </li>
- <li><span class="span_l f7">可容纳人数 <FONT COLOR="red">*</FONT>:</span>
- <input class="text_input1" type="text" id="meeting_room_space" name="meeting_room_space" value="${requestScope.meetingRoom.meeting_room_space }" style="width: 280px;"/>
- <div id="msgBox" style="display: inline;"></div>
- </li>
- <li><span class="span_l f7">会议室设备:</span>
- <textarea class="textarea1" id="meeting_room_equipment" name="meeting_room_equipment" rows="2" cols="70">${requestScope.meetingRoom.meeting_room_equipment }</textarea>
- <%-- <input class="text_input1" type="text" id="meeting_room_equipment" name="meeting_room_equipment" value="${requestScope.meetingRoom.meeting_room_equipment }" style="width: 280px;"/> --%>
- </li>
- <li><span class="span_l f7">备注:</span>
- <textarea class="textarea1" id="meeting_room_remark" name="meeting_room_remark" rows="2" cols="70">${requestScope.meetingRoom.meeting_room_remark }</textarea>
- </li>
- </ul>
- </div>
- </form>
- </body>
- </html>
|