📄 updatestudenthouse.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.util.*,java.sql.*,mydesign.*"%>
<%
if(session.getAttribute("admin")==null)
out.print("<script>alert('请先登录!');window.location.href='login.htm'</script>");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改入住信息</title>
<link href="css/mycss.css" rel="stylesheet" type="text/css">
<SCRIPT Language="JavaScript">
<!--
//下面的副程序将执行资料检查
function datacheck()
{
//下面的if判断语句将检查是否输入帐号资料
if(form.donghao.value=="")
{
//显示错误信息
alert("请输入楼号!");
//将光标移至栋号输入栏
document.form.elements(0).focus();
}else{
if(form.houseid.value=="")
{
alert("请输入房号!");
document.form.elements(1).focus();
}else{
if(form.intime.value=="")
{
alert("请输入入住日期!");
document.form.elements(2).focus();
}else{
form.submit();//送出表单中的资料
}
}
}
}
-->
</script>
</head>
<body>
<%@ include file="head.htm" %>
<p> </p>
<p> </p>
<p>
<%
Student student=(Student)session.getAttribute("student");
%>
</p>
<p> </p>
<form action="/MyDesign/UpdateSH" method="post" name="form" id="form">
<table width="30%" border="1" align="center" bordercolor="#660000" bgcolor="#CCCCCC">
<tr>
<td colspan="2"><div align="center"><font color="#660000" size="5"><strong>修改入住信息</strong></font></div></td>
</tr>
<tr>
<td width="40%"><div align="center"><font color="#660000" size="3">学号</font></div></td>
<td width="60%"><font color="#660000" size="3"> <%=student.getStudentid()%></font></td>
</tr>
<tr>
<td><div align="center"><font color="#660000" size="3">楼号</font></div></td>
<td><font color="#660000" size="3">
<input name="donghao" type="text" id="donghao" value="<%if(student.getDonghao()!=null) out.print(student.getDonghao());else out.print("");%>" size="20" maxlength="2">
</font></td>
</tr>
<tr>
<td><div align="center"><font color="#660000" size="3">房号</font></div></td>
<td><font color="#660000" size="3">
<input name="houseid" type="text" id="kezhu2" value="<%if(student.getHouseid()!=null) out.print(student.getHouseid());else out.print("");%>" size="20" maxlength="3">
</font></td>
</tr>
<tr>
<td><div align="center"><font color="#660000" size="3">入住日期</font></div></td>
<td><font color="#660000" size="3">
<input name="intime" type="text" id="intime" value="<%if(student.getIntime()!=null) out.print(student.getIntime());else out.print("");%>" size="20" maxlength="20">
</font></td>
</tr>
<tr>
<td colspan="2"><div align="center"> <font color="#660000">
<input type="button" name="Submit" value="修改" onClick="datacheck()">
<input type="reset" name="Submit2" value="重置">
</font></div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -