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

📄 repair.jsp

📁 利用java编写的一个学生宿舍管理系统
💻 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.things.value=="")
		  {
			 alert("请输入维修物品!");
			 document.form.elements(2).focus();
		  }else{ 
	         if(form.repairdate.value=="")
	        {
                alert("请输入维修日期!");
	            document.form.elements(4).focus();
	        }else{
	            if(form.zheren.value=="")
                {
                    alert("请输入责任人!");
	                document.form.elements(5).focus();
	            }else{
		            if(form.expense.value=="")
		            {
		                alert("请输入折算费用!");
	                    document.form.elements(6).focus();
                    }else{
		                if(form.peichang.value=="")
		               {
		                 	alert("请选择是否赔偿!");
		    	            document.form.elements(7).focus();
		               }else{
		                   	form.submit();//送出表单中的资料
		               }
	                }
	             }
			  }
	       }
        }
     }
 }										  
-->
</script>
</head>

<body>
<%@ include file="head.htm" %>
<p>&nbsp;</p>
<p>&nbsp;</p>
<form action="/MyDesign/IsRepair" method="post" name="form" target="_self" id="form">
  <table width="30%" border="1" align="center" bordercolor="#660000" bgcolor="#CCCCCC">
    <tr> 
      <td colspan="2"> <div align="center"><strong><font color="#660000" size="6">维修登记</font></strong></div></td>
    </tr>
    <tr> 
      <td width="24%"><div align="center"><font color="#660000">楼号</font></div></td>
      <td width="35%"><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="4">
        </font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#660000">维修物品</font></div></td>
      <td><font color="#660000"> 
        <input name="things" type="text" id="things" size="20" maxlength="20">
        </font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#660000">维修日期</font></div></td>
      <td><font color="#660000"> 
        <input name="repairdate" type="text" id="repairdate" size="20" maxlength="20">
        </font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#660000">责任人</font></div></td>
      <td><font color="#660000"> 
        <input name="zheren" type="text" id="zheren" size="20" maxlength="4">
        </font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#660000">折算金额</font></div></td>
      <td><font color="#660000"> 
        <input name="expense" type="text" id="expense" size="16" maxlength="17">
        元 </font></td>
    </tr>
    <tr> 
      <td> <div align="center"><font color="#660000">是否赔偿</font></div></td>
      <td><font color="#660000"> 
        <select name="peichang" id="peichang">
          <option value="">请选择</option>
          <option value="是">是</option>
          <option value="否">否</option>
        </select>
        </font></td>
    </tr>
    <tr> 
      <td colspan="2"> <div align="center"> <font color="#660000"> 
          <input type="button" name="Submit" value="登记" onClick="datacheck()">
          &nbsp;&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 + -