useradd.jsp~34~
资源名称: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 un = (String)session.getAttribute("un");
- String uid = (String)session.getAttribute("uid");
- String ud = (String)session.getAttribute("ud");
- String udid = (String)session.getAttribute("udid");
- String[][] pope = (String[][])session.getAttribute("pope");
- PopedomCheck pc = new PopedomCheck();
- String pageType = "user";
- String op = "add";
- if(un!=null && ud!=null&&pope!=null){
- if(pc.getPagePope(pageType,pope)){
- String fw = pc.getFanwei(pageType,op,pope);
- boolean temp = true;
- String add = "";
- if(fw.equals("com")){//普通权限
- temp = false;
- }else if(fw.equals("dep")){//部门权限
- add = " where deparname = '"+udid+"'";
- }else if(fw.equals("all")){//全局权限
- }else{//没有权限
- temp = false;
- }
- if(temp){
- 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>