allFiles1.jsp~7~
上传用户: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">
  10. <h1>
  11. JBuilder Generated JSP
  12. </h1>
  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,dnmd5 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="changearticlelist.jsp?depp=<%=bm[i][1] %>"><%=bm[i][0] %></a><br />
  31.     <%
  32.     }
  33.   }
  34. }
  35. %>
  36. </body>
  37. </html>