⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updatevisitor.jsp

📁 宿舍管理系统 可以实现很多的功能,查询,登陆,
💻 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.visitornm.value=="")
	{
		  alert("请输入来访人姓名!");
		  document.form.elements(0).focus();
	 }else{
		       if(form.zhengjian.value=="")
			   {
			        alert("请输入证件名称!");
					document.form.elements(2).focus();
			   }else{
					if(form.zjnm.value=="")
					{
					     alert("请输入证件号码!");
						 document.form.elements(3).focus();
					}else{
						 if(form.visittime.value=="")
						 {
							  alert("请输入来访时间!");
							  document.form.elements(4).focus();
						}else{
							  if(form.inturn.value=='')
							  {
								  alert("请输入值班人姓名!");
								  document.form.elements(5).focus();
							  }else{
						          form.submit();
							  }
                         }
					 }
				 }
	   }			 
 }
											  
-->
</script>
</head>
<body>
<%@ include file="head.htm" %>
<p>&nbsp;</p>
<p>&nbsp;</p>
<%
Visitor visitor=(Visitor)session.getAttribute("visitor");
%>
<form action="/MyDesign/UpdateVisitor" 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">&nbsp;<%=visitor.getDonghao()%></font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#660000" size="3">房间号码</font></div></td>
      <td><font color="#660000" size="3">&nbsp;<%=visitor.getHouseid()%></font></td>
    </tr>
    <tr> 
      <td> <div align="center"><font color="#660000" size="3">被访人姓名</font></div></td>
      <td><%=visitor.getVisitednm()%></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#660000" size="3">来访人姓名</font></div></td>
      <td><font color="#660000" size="3"> 
        <input name="visitornm" type="text" id="visitornm" value="<%=visitor.getVisitornm()%>" size="20" maxlength="8">
        </font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#660000" size="3">所属关系</font></div></td>
      <td><font color="#660000" size="3"> 
        <select name="guanxi">
          <option <%=((visitor.getGuanxi().toString().equals(("同学").toString()))?"SELECTED":"")%>>同学</option>
          <option <%=((visitor.getGuanxi().toString().equals(("家属").toString()))?"SELECTED":"")%>>家属</option>
          <option <%=((visitor.getGuanxi().toString().equals(("朋友").toString()))?"SELECTED":"")%>>朋友</option>
        </select>
        </font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#660000" size="3">证件名称</font></div></td>
      <td><font color="#660000" size="3"> 
        <input name="zhengjian" type="text" id="zhengjian" value="<%=visitor.getZhengjian()%>" size="20" maxlength="20">
        </font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#660000">证件号码</font></div></td>
      <td><input name="zjnm" type="text" id="zjnm" value="<%=visitor.getZjnm()%>" size="20" maxlength="20"></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#660000">来访时间</font></div></td>
      <td><input name="visittime" type="text" id="visittime" value="<%=visitor.getVisittime()%>" size="20" maxlength="20"></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#660000">值班人</font></div></td>
      <td><input name="inturn" type="text" id="inturn" value="<%=visitor.getInturn()%>" size="20" maxlength="20"></td>
    </tr>
    <tr> 
      <td colspan="2"><div align="center"> <font color="#660000"> 
          <input type="button" name="Submit" value="修改" onClick="datacheck()">
          &nbsp; &nbsp;&nbsp; 
          <input type="reset" name="Submit2" value="重置">
          </font></div></td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -