manager_add.jsp
上传用户:toby828
上传日期:2015-06-26
资源大小:8558k
文件大小:2k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <html>
  3. <head>
  4. <title>添加管理员信息</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  6. <link href="CSS/style.css" rel="stylesheet">
  7. </head>
  8. <script language="javascript">
  9. function check(form){
  10. if(form.name.value==""){
  11. alert("请输入管理员名称!");form.name.focus();return;
  12. }
  13. if(form.pwd.value==""){
  14. alert("请输入管理员密码!");form.pwd.focus();return;
  15. }
  16. if(form.pwd1.value==""){
  17. alert("请确认管理员密码!");form.pwd1.focus();return;
  18. }
  19. if(form.pwd.value!=form.pwd.value){
  20. alert("您两次输入的管理员密码不一致,请重新输入!");form.pwd.focus();return;
  21. }
  22. form.submit();
  23. }
  24. </script>
  25. <body>
  26. <table width="292" height="175" border="0" cellpadding="0" cellspacing="0" background="Images/subBG.jpg">
  27.   <tr>
  28.     <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  29.       <tr>
  30.         <td width="3%" height="25">&nbsp;</td>
  31.         <td width="94%">&nbsp;</td>
  32.         <td width="3%">&nbsp;</td>
  33.       </tr>
  34.       <tr>
  35.         <td>&nbsp;</td>
  36.         <td><table width="100%" height="131"  border="0" cellpadding="0" cellspacing="0">
  37.           <tr>
  38.             <td align="center" valign="top"> <form name="form1" method="post" action="manager.do?action=managerAdd">
  39. <table height="123"  border="0" cellpadding="0" cellspacing="0">
  40.       <tr>
  41.         <td width="83" height="30" align="center">管理员名称:</td>
  42.         <td width="192">
  43.           <input name="name" type="text">        </td>
  44.       </tr>
  45.       <tr>
  46.         <td height="28" align="center">管理员密码:</td>
  47.         <td><input name="pwd" type="password" id="pwd"></td>
  48.       </tr>
  49.       <tr>
  50.         <td height="28" align="center">确认 &nbsp;密码:</td>
  51.         <td><input name="pwd1" type="password" id="pwd1"></td>
  52.       </tr>
  53.       <tr>
  54.         <td height="37" align="center">&nbsp;</td>
  55.         <td><input name="Button" type="button" class="btn_grey" value="保存" onClick="check(form1)">
  56. &nbsp;
  57. <input name="Submit2" type="button" class="btn_grey" value="关闭" onClick="window.close();"></td>
  58.       </tr>
  59.     </table>
  60. </form></td>
  61.           </tr>
  62.         </table></td>
  63.         <td>&nbsp;</td>
  64.       </tr>
  65.       <tr>
  66.         <td>&nbsp;</td>
  67.         <td>&nbsp;</td>
  68.         <td>&nbsp;</td>
  69.       </tr>
  70.     </table></td>
  71.   </tr>
  72. </table>
  73. </body>
  74. </html>