useradd.jsp~35~
资源名称:bangong.rar [点击查看]
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:3k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK" import="officeol.mc.tools.*" %>
- <%request.setCharacterEncoding("GBK"); %>
- <html>
- <head>
- <title>
- 天津市河东区经济贸易委员会内部办公网
- </title>
- </head>
- <body bgcolor="#ffffff">
- <h1>
- 用户添加
- </h1>
- <br />
- <p>
- <%
- String message = request.getAttribute("msg")==null?"":request.getAttribute("msg").toString();
- out.print(message);
- String ud = (String)session.getAttribute("UD");
- String udid = (String)session.getAttribute("UDID");
- String un = (String)session.getAttribute("UN");
- String uid = (String)session.getAttribute("UID");
- String pp = (String)session.getAttribute("POPE");
- String login = (String)session.getAttribute("LOGIN");
- if(login.equals("OK")){
- DBConn dbc = new DBConn();
- String depsql = "select id,deparname from deparment"+add;
- String[][] depname = dbc.getArray(depsql);
- %>
- </p>
- <form name="form1" method="post" action="userAddAction.do">
- <table width="90%" border="1">
- <tr>
- <td>
- <div align="center">用户名</div></td>
- <td><div align="center">
- <input type="text" name="username">
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center">密码</div></td>
- <td><div align="center">
- <input type="password" name="pwd">
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center">密码确认</div></td>
- <td><div align="center">
- <input type="password" name="pwd2">
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center">姓名</div></td>
- <td><div align="center">
- <input type="text" name="xm"/>
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center">性别</div></td>
- <td><div align="center">
- <input type="radio" name="sex" checked="checked" value="0" />男
- <input type="radio" name="sex" value="1"/>女
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center"> 办公电话</div></td>
- <td><div align="center">
- <input type="text" name="tel"/>
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center"> 手机 </div></td>
- <td><div align="center">
- <input type="text" name="tel2" />
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center"> 邮箱 </div></td>
- <td><div align="center">
- <input type="text" name="email"/>
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td colspan="3"><div align="center">
- <input type="submit" name="Submit" value="提交">
- </div></td>
- </tr>
- </table>
- </form>
- <p> </p><%}else{
- out.print("你没有权限查看这个页面!");
- }
- }else{
- out.print("你没有权限查看这个页面!");
- }
- }else{
- out.print("请登录!");
- %>
- <br /><a href="userlogin.jsp" target="mainFrame">用户登录</a>
- <%
- }
- %>
- </body>
- </html>