manager_add.jsp
上传用户:toby828
上传日期:2015-06-26
资源大小:8558k
文件大小:2k
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
- <html>
- <head>
- <title>添加管理员信息</title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="CSS/style.css" rel="stylesheet">
- </head>
- <script language="javascript">
- function check(form){
- if(form.name.value==""){
- alert("请输入管理员名称!");form.name.focus();return;
- }
- if(form.pwd.value==""){
- alert("请输入管理员密码!");form.pwd.focus();return;
- }
- if(form.pwd1.value==""){
- alert("请确认管理员密码!");form.pwd1.focus();return;
- }
- if(form.pwd.value!=form.pwd.value){
- alert("您两次输入的管理员密码不一致,请重新输入!");form.pwd.focus();return;
- }
- form.submit();
- }
- </script>
- <body>
- <table width="292" height="175" border="0" cellpadding="0" cellspacing="0" background="Images/subBG.jpg">
- <tr>
- <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="3%" height="25"> </td>
- <td width="94%"> </td>
- <td width="3%"> </td>
- </tr>
- <tr>
- <td> </td>
- <td><table width="100%" height="131" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center" valign="top"> <form name="form1" method="post" action="manager.do?action=managerAdd">
- <table height="123" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="83" height="30" align="center">管理员名称:</td>
- <td width="192">
- <input name="name" type="text"> </td>
- </tr>
- <tr>
- <td height="28" align="center">管理员密码:</td>
- <td><input name="pwd" type="password" id="pwd"></td>
- </tr>
- <tr>
- <td height="28" align="center">确认 密码:</td>
- <td><input name="pwd1" type="password" id="pwd1"></td>
- </tr>
- <tr>
- <td height="37" align="center"> </td>
- <td><input name="Button" type="button" class="btn_grey" value="保存" onClick="check(form1)">
-
- <input name="Submit2" type="button" class="btn_grey" value="关闭" onClick="window.close();"></td>
- </tr>
- </table>
- </form></td>
- </tr>
- </table></td>
- <td> </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </table></td>
- </tr>
- </table>
- </body>
- </html>