📄 water.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" %>
<%
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.xianshu.value=="")
{
//显示错误信息
alert("请输入水表现数!");
//将光标移至入住性别选择栏
document.form.elements(2).focus();
}else{
if(form.newdate.value=="")
{
//显示错误信息
alert("请输入抄表日期!");
//将光标移至可住人数输入
document.form.elements(3).focus();
}else{
form.submit();//送出表单中的资料
}
}
}
}
}
-->
</script>
</head>
<body>
<%@ include file="head.htm" %>
<p> </p>
<form action="/MyDesign/WriteExpense" method="post" name="form" id="form">
<p> </p>
<p> </p>
<table width="28%" border="1" align="center" bordercolor="#660000" bgcolor="#CCCCCC">
<tr>
<td colspan="2"><div align="center"><font color="#660000" size="6"><strong>水表登记</strong></font></div></td>
</tr>
<tr>
<td width="40%"><div align="center"><font color="#660000">楼号
<input name="table" type="hidden" id="table" value="water">
</font></div></td>
<td width="60%"><font color="#660000">
<input name="donghao" type="text" id="donghao" size="20" maxlength="2">
</font></td>
</tr>
<tr>
<td><div align="center"><font color="#660000">房号</font></div></td>
<td><font color="#660000">
<input name="houseid" type="text" id="houseid" size="20" maxlength="3">
</font></td>
</tr>
<tr>
<td><div align="center"><font color="#660000">水表现数</font></div></td>
<td><font color="#660000">
<input name="xianshu" type="text" id="xianshu" size="15" maxlength="10">
度 </font></td>
</tr>
<tr>
<td><div align="center"><font color="#660000">抄表日期</font></div></td>
<td><font color="#660000">
<input name="newdate" type="text" id="newdate" 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 + -