📄 modefidorm.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ 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>dorm.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 rel="stylesheet" type="text/css" href="../CSS/stylesheet.css">
<link rel="stylesheet" type="text/css" href="../CSS/displaytag.css" />
<link style="text/css" rel="stylesheet" href="../css/CSS.css" />
<link style="text/css" rel="stylesheet" href="../css/main.css" />
<link style="text/css" rel="stylesheet" href="../css/general.css" />
<link style="text/javascript" rel="stylesheet" href="../css/general.css" />
<style type="text/css">
<!--
.STYLE1 {
font-size: 14px
}
.STYLE4 {
font-size: 36px
}
-->
</style>
<script type="text/javascript">
function validate(){
var dormno = document.getElementById("dormNo").value;
var censor = document.getElementById("censor").value;
var checkTime = document.getElementById("checkTime").value;
var p = checkTime.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);
if(dormno=="")
{
alert("请输入寝室号");
return false;
}else if(censor=="")
{
alert("请输入姓名");
return false;
}else if(checkTime=="")
{
alert("请输入寝时间");
return false;
}
else if(p)
{
return true;
}else{
alert("请这确输入时间 如:1987-02-02");
return;
}
}
</script>
</head>
<body background="#E6FDFF">
<h1>
<span>银河管理中心 - 查寝管理 </span>
</h1>
<div class="list-div" id="listDiv">
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<html:form action="/admins/bwgl/dormManage.html?method=modifDorm" method="post" onsubmit="return validate()">
<input type="hidden" name="id" value=<%=request.getAttribute("id")%> />
<tr height="24">
<td valign="top" align="right">寝室号:</td>
<td><html:text property="dormNo" size="41" styleClass="textBox"/></td>
</tr>
<tr height="24">
<td valign="top" align="right">人数:</td>
<td><html:text property="personNum" size="41" styleClass="textBox" /></td>
</tr>
<tr height="24">
<td valign="top" align="right">卫生情况:<br></td>
<td><html:select property="sanitation">
<html:option value="中">中</html:option>
<html:option value="优">优</html:option>
<html:option value="良">良</html:option>
<html:option value="差">差</html:option>
</html:select> <br></td>
</tr>
<tr height="24">
<td valign="top" align="right">外出人口:</td>
<td><html:text property="egress1" size="41" styleClass="textBox"/></td>
</tr>
<tr height="24">
<td valign="top" align="right">检查人:</td>
<td><html:text property="censor" size="41" styleClass="textBox"/></td>
</tr>
<tr height="24">
<td valign="top" align="right">检查时间:</td>
<td><html:text property="checkTime" size="41" styleClass="textBox"/></td>
</tr>
<tr height="24">
<td colspan="2" align="center">
<html:reset>重置</html:reset>
<html:cancel>取消</html:cancel>
<html:submit>提交</html:submit>
</td>
</tr>
</html:form>
</table>
</div>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -