index.jsp
上传用户:hjt198082
上传日期:2015-04-16
资源大小:95k
文件大小:2k
源码类别:

MySQL数据库

开发平台:

Java

  1. <%@page contentType="text/html;charset=GBK"%>
  2. <html>
  3. <head>
  4. <title>管理员登录</title>
  5. <META http-equiv="Content-Type" content="text/html; charset=gb2312">
  6. <link rel="stylesheet" href="../public/style.css">
  7. <Script Language="JavaScript">
  8. function check() {
  9.     if(document.myform.username.value == "") {
  10.     alert("请输入用户名!");
  11. return;
  12. }
  13.     if(document.myform.password.value == "") {
  14.     alert("请输入密码!");
  15. return;
  16. }
  17. document.myform.submit();
  18. }
  19. </Script>
  20. </head>
  21. <body class="ss">
  22. <br><br><br><br><br><br><br><br><br><br>
  23. <div align="center"><center>
  24. <table border="0" cellspacing="1" width="90%">
  25.   <tr>
  26.     <td>
  27.     <p align="center"><font size="7" face="楷体_GB2312" color="#0000FF">系统管理员登陆</font></p>
  28.     <form name="myform" method="post" action="chkadmin.jsp">
  29.       <table width="45%" border="1" cellspacing="0" cellpadding="1" align="center" bordercolordark="#ecf5ff" bordercolorlight="#6699cc">
  30.         <tr>
  31.           <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
  32.             <tr>
  33.                   <td width="33%" align="right" height="30">用户名:</td>
  34.                   <td width="67%"><input name="username" maxlength="20" class="smallInput" size="20"> </td>
  35.             </tr>
  36.             <tr>
  37.                   <td width="33%" align="right" height="30">密码:</td>
  38.                   <td width="67%"><input type="password" name="password" maxlength="16" class="smallInput"  size="20"> </td>
  39.             </tr>
  40.             <tr>
  41.               <td colspan="2" height="15"></td>
  42.             </tr>
  43.           </table>
  44.           </td>
  45.         </tr>
  46.         <tr align="center">
  47.           <td height="40">
  48.                   <input type="button" name="Submit" value="确定" class="buttonface" onclick="check()"> 
  49.           &nbsp; 
  50.                   <input type="reset" name="Submit2" value="重填" class="buttonface">
  51.           </td>
  52.         </tr>
  53. <%
  54.     String msg = (String)request.getParameter("errmsg");
  55.     if(msg != null && !msg.equals("")) {
  56. %>
  57. <tr align="center">
  58. <td colspan="2"><font color=red><%=msg%></font></td>
  59. </tr>
  60. <%
  61. }
  62. %>
  63.       </table>
  64.     </form>
  65.     <p align="center"> </td>
  66.   </tr>
  67. </table>
  68. </center></div>
  69. </body>
  70. </html>