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

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK" import="officeol.mc.tools.*,control.Textcontrol.*" %>
  2. <%request.setCharacterEncoding("GBK"); %>
  3. <html>
  4. <head>
  5. <title>
  6. allFiles1
  7. </title>
  8. </head>
  9. <body bgcolor="#ffffff"><br />
  10. <h4 align="center">
  11. 文件管理
  12. </h4>
  13. <%
  14. String ud = (String)session.getAttribute("UD");
  15. String udid = (String)session.getAttribute("UDID");
  16. String un = (String)session.getAttribute("UN");
  17. String uid = (String)session.getAttribute("UID");
  18. String pp = (String)session.getAttribute("POPE");
  19. String login = (String)session.getAttribute("LOGIN");
  20. if(pp.equals("all")){//全局权限
  21. DBConn dbc = new DBConn();
  22. String udd = "select deparname,id from deparment";
  23. String[][] bm = dbc.getArray(udd);
  24. if(bm == null){
  25.   out.print("没有部门!");
  26. }else{
  27.   out.print("请选择要部门:<br />");
  28.   for(int i = 0; i < bm.length; i++){
  29.     %>
  30.     <a href="allFiles.jsp?depp=<%=bm[i][1] %>"><%=bm[i][0] %></a><br />
  31.     <%
  32.     }
  33.   }
  34. }else{
  35.   out.print("你没有权限!");
  36. }
  37. %>
  38. </body>
  39. </html>