123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <%--
- time:2017-12-07 09:14:11
- desc:edit the SYS_HYSGL
- --%>
- <%@page language="java" pageEncoding="UTF-8"%>
- <%@include file="/commons/include/html_doctype.html"%>
- <html>
- <head>
- <title>编辑 会议室</title>
- <%@include file="/commons/include/form.jsp" %>
- <script type="text/javascript" src="${ctx}/js/hotent/CustomValid.js"></script>
- <script type="text/javascript">
- $(function() {
- $("a.save").click(function() {
- $("#sysHysglForm").attr("action","save.ht");
- $("#saveData").val(1);
- submitForm();
- });
- });
- //提交表单
- function submitForm(){
- var options={};
- if(showResponse){
- options.success=showResponse;
- }
- var frm=$('#sysHysglForm').form();
- frm.ajaxForm(options);
- if(frm.valid()){
- frm.submit();
- }
- }
-
- function showResponse(responseText) {
- var obj = new com.hotent.form.ResultMessage(responseText);
- if(!obj.isSuccess()){
- $.ligerDialog.err("提示信息"," 会议室保存失败!",obj.getMessage());
- return;
- }
- $.ligerDialog.confirm(obj.getMessage()+",是否继续操作","提示信息", function(rtn) {
- if(rtn){
- window.location.href = window.location.href;
- }else{
- window.location.href = "${ctx}/platform/hysgl/sysHysgl/list.ht";
- }
- });
- }
- </script>
- </head>
- <body>
- <div class="panel">
- <div class="panel-top">
- <div class="tbar-title">
- <c:choose>
- <c:when test="${sysHysgl.id !=null}">
- <span class="tbar-label"><span></span>编辑会议室</span>
- </c:when>
- <c:otherwise>
- <span class="tbar-label"><span></span>添加会议室</span>
- </c:otherwise>
- </c:choose>
- </div>
- <div class="panel-toolbar">
- <div class="toolBar">
- <div class="group"><a class="link save" id="dataFormSave" href="#"><span></span>保存</a></div>
- <div class="l-bar-separator"></div>
- <div class="group"><a class="link back" href="list.ht"><span></span>返回</a></div>
- </div>
- </div>
- </div>
- <div class="panel-body">
- <form id="sysHysglForm" method="post" action="save.ht">
- <table class="table-detail" cellpadding="0" cellspacing="0" border="0" type="main">
- <tr>
- <th width="20%">会议室名称:<span class="required red">*</span> </th>
- <td><input type="text" style="width: 50%" id="conferenceroom" name="conferenceroom" value="${sysHysgl.conferenceroom}" class="inputText" validate="{required:true,maxlength:32,chNum:true}" /></td>
- </tr>
- <tr>
- <th width="20%">会议室位置:<span class="required red">*</span> </th>
- <td><input type="text" style="width: 50%" id="location" name="location" value="${sysHysgl.location}" class="inputText" validate="{required:true,maxlength:32,chNum:true}" /></td>
- </tr>
- <tr>
- <th width="20%">是否有投影:<span class="required red">*</span> </th>
- <td>
- <select name="isprojection" id="isprojection" class="inputText" style="width: 50px;" validate="{required:true,maxlength:2}">
- <option value="1" <c:if test="${sysHysgl.isprojection eq 1}">selected="selected"</c:if>>是</option>
- <option value="0" <c:if test="${sysHysgl.isprojection eq 0}">selected="selected"</c:if>>否</option>
- </select>
- </td>
- </tr>
- <tr>
- <th width="20%">负责人:<span class="required red">*</span> </th>
- <td><input type="text" style="width: 50%" id="contactperson" name="contactperson" value="${sysHysgl.contactperson}" class="inputText" validate="{required:true,maxlength:8,chinese:true}" /></td>
- </tr>
- <tr>
- <th width="20%">负责人手机号:<span class="required red">*</span> </th>
- <td><input type="text" style="width: 50%" id="contactnumber" name="contactnumber" value="${sysHysgl.contactnumber}" class="inputText" validate="{required:true,maxlength:11,phone:true}" /></td>
- </tr>
- </table>
- <input type="hidden" name="id" value="${sysHysgl.id}" />
- <input type="hidden" name="saveData" id="saveData" />
- <input type="hidden" name="executeType" value="start" />
- </form>
-
- </div>
- </div>
- </body>
- </html>
|