📄 modmeetingroom.jsp
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<title>modMeetingRoom.jsp</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="../../include/style.css" rel="stylesheet" type="text/css">
</head>
<script language="javascript">
//表单验证
function check(){
//验证会议室名称
if(document.newMeetingRoomForm.name.value == ''){
alert('请输入会议室名称');
return false;
}
//验证会议室位置
if(document.newMeetingRoomForm.position.value == ''){
alert('请输入会议室位置');
return false;
}
//验证会议室容量
if(document.newMeetingRoomForm.capability.value == ''){
alert('请输入会议室容量');
return false;
}
//验证会议室容量输入为数字
if((/(^[1-9]\d*$)/).test(document.newMeetingRoomForm.capability.value) == false){
alert('会议室容量只能为正整数');
return false;
}
//验证会议室服务人员
if(document.newMeetingRoomForm.person.value == ''){
alert('请输入会议室室服务人员');
return false;
}
//验证会议室状态
if(document.newMeetingRoomForm.status.value == ''){
alert('请选择会议室状态');
return false;
}
}
</script>
<logic:present name="suc">
<script>
alert('<%=request.getAttribute("suc") %>');
window.location.href="/YZOA/meetingRoomListAction.do";
</script>
</logic:present>
<body leftmargin="0" marginwidth="0" marginheight="0">
<html:form action="/newMeetingRoomAction?action=mod" onsubmit="return check()">
<html:hidden property="roomId"/>
<input name="ModifyOption" type="hidden" value="4">
<table width="96%" border="0" align="center" cellpadding="4"
cellspacing="1">
<tr>
<td bgcolor="#FFFFFF">
<table width="100%" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td> <a href="../../Content.htm">主页</a>>> 会议管理</td>
</tr>
</table>
<table width="98%" border="0" align="center">
<tr>
<td height="34" class="big">
<strong><img src="../../image/col.gif" width="7" height="18" align="absmiddle"></strong>
<span class="high">新增会议室</span>
</td>
</tr>
</table>
<table width="100%" border="1" bordercolordark="ffffff"
bordercolorlight="cccccc" cellspacing="0" cellpadding="4">
<tr>
<td width="20%" class="bg">
<div align="center">会议室名称 <font size="1" color="red">*</font></div>
</td>
<td width="80%" bgcolor="f7f7f7">
<html:text property="name" styleClass="textfield2" size="20"/>
</td>
</tr>
<tr>
<td width="20%" class="bg">
<div align="center">位 置</div>
</td>
<td width="80%" bgcolor="f7f7f7">
<html:text property="position" styleClass="textfield2" size="20"/>
</td>
</tr>
<tr>
<td width="20%" class="bg">
<div align="center">容 量</div>
</td>
<td width="80%" bgcolor="f7f7f7">
<html:text property="capability" styleClass="textfield2" size="20"/>人
</td>
</tr>
<tr>
<td width="20%" class="bg">
<div align="center">服务人员</div>
</td>
<td width="80%" bgcolor="f7f7f7">
<html:text property="person" styleClass="textfield2" size="20"/>
<html:hidden property="personid" />
<input type="button" value="选择人员" class="btn" onClick="alert('啊啊啊啊啊啊啊啊啊啊啊');">
</td>
</tr>
<tr>
<td width="20%" class="bg">
<div align="center">
是否停用
</div>
</td>
<td width="80%" bgcolor="f7f7f7">
<html:select property="status">
<html:option value="">请选择</html:option>
<html:option value="0">否</html:option>
<html:option value="1">是</html:option>
</html:select>
</td>
</tr>
<tr>
<td width="20%" class="bg">
<div align="center">停用原因</div>
</td>
<td width="80%" bgcolor="f7f7f7">
<html:text property="status_r" size="61"/>
</td>
</tr>
<tr>
<td width="20%" class="bg">
<div align="center">设 备</div>
</td>
<td width="80%" bgcolor="f7f7f7">
<html:textarea property="equ" styleClass="textfield2" cols="70" rows="3"/>
</td>
</tr>
<tr>
<td width="20%" class="bg">
<div align="center">
备 注
</div>
</td>
<td width="80%" bgcolor="f7f7f7">
<html:textarea property="remark" styleClass="textfield2" cols="70" rows="3"/>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td align="center">
<html:submit styleClass="btn">确定</html:submit>
<input name="create" type="button" class="btn" id="create"
onClick="check();" value="确定">
<input name="back" type="button" class="btn"
onClick="history.back()" value="取消">
</td>
</tr>
</table>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -