adminInsert.jsp
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:3k
源码类别:

企业管理

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.domain.UserForm"%>
  3. <%@ page import="com.tool.Chinese"%>
  4. <%@ page import="java.util.List"%>
  5. <%@ page import="java.sql.*"%>
  6. <%String countID=(String)request.getAttribute("countID");%>
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  10. <title>添加管理员</title>
  11. <style type="text/css">
  12. <!--
  13. body {
  14. background-color: #000000;
  15. margin-left: 0px;
  16. margin-top: 0px;
  17. }
  18. td{
  19. font-size:9pt;
  20. }
  21. .style1 {font-size: 11pt}
  22. -->
  23. </style>
  24. </head>
  25. <script language="JavaScript">
  26. function RgTest(){
  27. if(document.form.name.value==""){
  28. window.alert("请输入管理员账号");
  29. return false;
  30. }
  31. if(document.form.mm.value==""){
  32. window.alert("请输入管理员密码");
  33. return false;
  34. }
  35. return true;
  36. }
  37. </script>
  38. <body>
  39. <table width="579"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  40.   <tr>
  41.     <td>&nbsp;</td>
  42.   </tr>
  43. </table>
  44. <table width="579" border="0" cellpadding="0" cellspacing="0">
  45.   <tr>
  46.     <td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" height="487"  border="0" cellpadding="0" cellspacing="0">
  47.         <tr>
  48.           <td align="left" valign="top" bgcolor="#FFFFFF"><table width="579" border="0" cellpadding="0" cellspacing="0">
  49.               <tr>
  50.                 <td width="2%" height="28">&nbsp;</td>
  51.                 <td width="9%" background="images/circle.jpg">&nbsp;</td>
  52.                 <td width="89%" bgcolor="#FFFFFF"><span class="style1">添加管理员</span></td>
  53.               </tr>
  54.               <tr style="line-height:2px">
  55.                 <td width="2%" height="5">&nbsp;</td>
  56.                 <td height="5" colspan="2" bgcolor="#D4D0C8">&nbsp;</td>
  57.               </tr>
  58.               <tr align="center" valign="top" bgcolor="#FFFFFF">
  59.                 <td height="454" colspan="3">
  60.                   <p>&nbsp;</p>
  61.                   <form name="form" method="post" action="adminInsert.do" onSubmit="return RgTest()">
  62.                     <table width="56%"  border="1" cellspacing="0" cellpadding="0">
  63.                       <tr>
  64.                         <td width="30%" height="30" align="center" bgcolor="#FFCC00">管理员编号</td>
  65.                         <td width="70%" align="center"><input type="hidden" name="id" value="User-<%=countID%>">User-<%=countID%>
  66. </td>
  67.                       </tr>
  68.   <tr>
  69.                         <td width="30%" height="30" align="center" bgcolor="#FFCC00">管理员账号</td>
  70.                         <td width="70%" align="center"><input type="text" name="name">
  71. </td>
  72. <tr>
  73.                         <td width="30%" height="30" align="center" bgcolor="#FFCC00">管理员密码</td>
  74.                         <td width="70%" align="center"><input type="password" name="mm">
  75. </td>
  76.                       </tr>
  77.                     </table>
  78.                     <p>
  79.   <input type="submit" name="Submit2" value="提交">
  80. &nbsp;&nbsp;&nbsp;&nbsp;
  81.                       <input type="reset" name="Submit" value="重置">
  82.                     </p>
  83.                   </form>                  <p><a href="adminSelect.do?user_bs=0">返回</a></p>
  84.                 </table></td>
  85.         </tr>
  86.       </table></td>
  87.   </tr>
  88. </table>
  89. </body>
  90. </html>