useradd.jsp~35~
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:3k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK" import="officeol.mc.tools.*" %>
  2. <%request.setCharacterEncoding("GBK"); %>
  3. <html>
  4. <head>
  5. <title>
  6. 天津市河东区经济贸易委员会内部办公网
  7. </title>
  8. </head>
  9. <body bgcolor="#ffffff">
  10. <h1>
  11. 用户添加
  12. </h1>
  13. <br />
  14. <p>
  15. <%
  16. String message = request.getAttribute("msg")==null?"":request.getAttribute("msg").toString();
  17. out.print(message);
  18. String ud = (String)session.getAttribute("UD");
  19. String udid = (String)session.getAttribute("UDID");
  20. String un = (String)session.getAttribute("UN");
  21. String uid = (String)session.getAttribute("UID");
  22. String pp = (String)session.getAttribute("POPE");
  23. String login = (String)session.getAttribute("LOGIN");
  24. if(login.equals("OK")){
  25. DBConn dbc = new DBConn();
  26. String depsql = "select id,deparname from deparment"+add;
  27. String[][] depname = dbc.getArray(depsql);
  28. %>
  29. </p>
  30. <form name="form1" method="post" action="userAddAction.do">
  31.   <table width="90%" border="1">
  32.     <tr>
  33.       <td>
  34.       <div align="center">用户名</div></td>
  35.       <td><div align="center">
  36.         <input type="text" name="username">
  37.       </div></td>
  38.       <td><div align="center"></div></td>
  39.     </tr>
  40.     <tr>
  41.       <td><div align="center">密码</div></td>
  42.       <td><div align="center">
  43.         <input type="password" name="pwd">
  44.       </div></td>
  45.       <td><div align="center"></div></td>
  46.     </tr>
  47.     <tr>
  48.       <td><div align="center">密码确认</div></td>
  49.       <td><div align="center">
  50.         <input type="password" name="pwd2">
  51.       </div></td>
  52.       <td><div align="center"></div></td>
  53.     </tr>
  54.     <tr>
  55.       <td><div align="center">姓名</div></td>
  56.       <td><div align="center">
  57.       <input type="text" name="xm"/>
  58.       </div></td>
  59.       <td><div align="center"></div></td>
  60.     </tr>
  61.      <tr>
  62.       <td><div align="center">性别</div></td>
  63.       <td><div align="center">
  64.         <input type="radio" name="sex" checked="checked" value="0" />男
  65.         <input type="radio" name="sex"  value="1"/>女
  66.       </div></td>
  67.       <td><div align="center"></div></td>
  68.     </tr>
  69.      <tr>
  70.       <td><div align="center"> 办公电话</div></td>
  71.       <td><div align="center">
  72.         <input type="text" name="tel"/>
  73.       </div></td>
  74.       <td><div align="center"></div></td>
  75.     </tr>
  76.      <tr>
  77.       <td><div align="center"> 手机 </div></td>
  78.       <td><div align="center">
  79.       <input type="text" name="tel2" />
  80.       </div></td>
  81.       <td><div align="center"></div></td>
  82.     </tr>
  83.      <tr>
  84.       <td><div align="center"> 邮箱 </div></td>
  85.       <td><div align="center">
  86.         <input type="text" name="email"/>
  87.       </div></td>
  88.       <td><div align="center"></div></td>
  89.     </tr>
  90.     <tr>
  91.       <td colspan="3"><div align="center">
  92.         <input type="submit" name="Submit" value="提交">
  93.       </div></td>
  94.     </tr>
  95.   </table>
  96. </form>
  97. <p>&nbsp;</p><%}else{
  98.   out.print("你没有权限查看这个页面!");
  99. }
  100. }else{
  101.   out.print("你没有权限查看这个页面!");
  102. }
  103. }else{
  104.     out.print("请登录!");
  105.     %>
  106.     <br /><a href="userlogin.jsp" target="mainFrame">用户登录</a>
  107.     <%
  108.   }
  109.  %>
  110. </body>
  111. </html>