📄 session.jsp
字号:
<%@ page contentType="text/html;charset=GBK"%><%@page import="com.db.StaticBean"%><%com.util.DealString ds = new com.util.DealString();String go = ds.toGBK((String)request.getParameter("page")).trim();String uid = ds.toString((String)session.getAttribute("ID"));String temp = go ;if(uid.equals(""))go = "" ;if(!go.equals("浏览安排"))if(!StaticBean.existOfMan(uid,go))go = "";//系统设置if(go.equals("学院配置"))response.sendRedirect("../org/college/index.jsp");if(go.equals("系所配置"))response.sendRedirect("../org/department/index.jsp");if(go.equals("人员配置"))response.sendRedirect("../user/index.jsp");if(go.equals("角色权限配置"))response.sendRedirect("../role/index.jsp");//通知栏if(go.equals("发布通知"))response.sendRedirect("../notice1/new.jsp");if(go.equals("通知浏览"))response.sendRedirect("../notice1/list.jsp");//工作安排//if(go.equals("新建安排"))response.sendRedirect("../notice/new.jsp");/*if(go.equals("浏览安排")){if(StaticBean.existOfMan(uid,"工作安排管理")){response.sendRedirect("../notice/all.cgi");}else if(StaticBean.existOfMan(uid,"个人安排")){response.sendRedirect("../notice/getDate.cgi");}}*///相关文件if(go.equals("文件上传"))response.sendRedirect("../attach/new.jsp");if(go.equals("文件下载"))response.sendRedirect("../attach/list.jsp");//问题解答//if(go.equals("提问题"))response.sendRedirect("../question/new.jsp");//if(go.equals("问题查询"))response.sendRedirect("../question/show.cgi?id="+session.getAttribute("ID"));//if(go.equals("回答问题"))response.sendRedirect("../question/answer.cgi");//领导信箱if(go.equals("写信"))response.sendRedirect("../letters/new.cgi");if(go.equals("收件箱"))response.sendRedirect("../letters/getbox.cgi?id="+session.getAttribute("ID"));if(go.equals("发件箱"))response.sendRedirect("../letters/sendbox.cgi?id="+session.getAttribute("ID"));%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" type="text/css" href="index.css"><link rel="stylesheet" type="text/css" href="../main/index.css"><title>无标题文档</title></head><body leftmargin="0" topmargin="0"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td><table width="90%" height="20" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="88%" height="20" bgcolor="#FFFFFF" class="title_s"> 您已登陆: <%=ds.toString((String)session.getAttribute("NAME"))%> </td> <td width="12%"><a class="main1" href="new.htm"></a></td> </tr> <tr> <td height="5" colspan="2" bgcolor="#A3BED9"></td> </tr> <tr> <td height="1" colspan="2" bgcolor="#0A1870"></td> </tr> </table></td> </tr> <tr> <td><table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#0A1870"> <tr> <td><table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="FFFFFF" bgcolor="E7F2FF" class="main1"> <tr bgcolor="#FFFFFF" class="title_s"> <td width="10%" height="20"><div align="center">出错报告</div></td> </tr> <tr> <td height="20"><p> 系统报错,可能原因有:<br> 1.你没有该模块的使用权限<br> 2.用户登录超时或尚未登陆,请<a onclick="parent.location='../main/exit.jsp'" style="cursor:hand;"><font color=blue><U>重新登陆>></U></font></a><br><br><hr><%out.println("要执行到模块为:"+temp);out.println("<br><br>人员编号:"+uid);out.println("<br><br>人员编号-角色编号对应表:"+StaticBean.role);out.println("<br><br>角色编号-权限对应表:"+StaticBean.right);out.println("<br><br>"+go);%></p> </td> </tr> </table></td> </tr> </table></td> </tr></table></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -