?? 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">
<!--
//下面的副程序將執(zhí)行資料檢查
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 + -