📄 login_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import com.actionForm.ManagerForm;
import com.actionForm.RightForm;
public final class login_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
com.dao.RightDao dao = null;
synchronized (request) {
dao = (com.dao.RightDao) _jspx_page_context.getAttribute("dao", PageContext.REQUEST_SCOPE);
if (dao == null){
dao = new com.dao.RightDao();
_jspx_page_context.setAttribute("dao", dao, PageContext.REQUEST_SCOPE);
}
}
out.write("\r\n");
out.write("<link href=\"css/style.css\" rel=\"stylesheet\">\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<title>登录后首页</title>\r\n");
out.write(" <script Language=\"JavaScript\">\r\n");
out.write("function quit() {\r\n");
out.write(" if(confirm(\"确定要退出吗?\")){\r\n");
out.write(" window.location.href=\"loginOut.jsp\";\r\n");
out.write("\t}\r\n");
out.write("\treturn false;\r\n");
out.write(" }\r\n");
out.write(" \r\n");
out.write("function right() {\r\n");
out.write(" alert('您有这个权利');\r\n");
out.write(" window.location.href=\"login.jsp\";\r\n");
out.write(" }\r\n");
out.write(" \r\n");
out.write("function noright() {\r\n");
out.write(" alert('您没有这个权利');\r\n");
out.write(" window.location.href=\"login.jsp\";\r\n");
out.write("\r\n");
out.write(" }\r\n");
out.write(" </script>\r\n");
out.write("</head>\r\n");
ManagerForm managerForm=(ManagerForm)session.getAttribute("manager");
RightForm rightForm=dao.selectAccountRight(managerForm.getAccount());
out.write("\r\n");
out.write("<body>\r\n");
if(managerForm==null){
out.write("<meta http-equiv=\"refresh\" content=\"0;URL=connectionFail.jsp\">");
}
out.write("\r\n");
out.write("<table width=\"659\" height=\"196\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" background=\"picture/ground.jpg\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"93\" height=\"80\"><div align=\"center\">\r\n");
out.write(" <p> </p>\r\n");
out.write(" <p>当前为:");
out.print(managerForm.getAccount());
out.write("</p>\r\n");
out.write(" </div></td>\r\n");
out.write(" <td width=\"80\" valign=\"bottom\" align=\"center\">\r\n");
out.write("\t \r\n");
out.write("\t ");
if(rightForm.getJcxx().equals(new Integer(1))){
out.write("\r\n");
out.write(" <a href=\"#\" onClick=\"right()\">基础信息</a>\r\n");
out.write(" ");
}else{
out.write("\r\n");
out.write(" <a href=\"#\" onClick=\"noright()\">基础信息</a>\r\n");
out.write(" ");
}
out.write("\t\r\n");
out.write(" \r\n");
out.write("\t</td>\r\n");
out.write(" <td width=\"80\" align=\"center\" valign=\"bottom\">\r\n");
out.write("\t ");
if(rightForm.getJczl().equals(new Integer(1))){
out.write("\r\n");
out.write(" <a href=\"#\" onClick=\"right()\">基础资料</a>");
}else{
out.write(" <a href=\"#\" onClick=\"noright()\">基础资料</a>\r\n");
out.write(" ");
}
out.write("\r\n");
out.write("\t\r\n");
out.write("\t</td>\r\n");
out.write(" <td width=\"79\" align=\"center\" valign=\"bottom\">\r\n");
out.write("\t ");
if(rightForm.getYwgl().equals(new Integer(1))){
out.write("\r\n");
out.write(" <a href=\"#\" onClick=\"right()\"> 业务管理</a>");
}else{
out.write("<a href=\"#\" onClick=\"noright()\">业务管理</a>\r\n");
out.write(" ");
}
out.write("\r\n");
out.write("\t</td>\r\n");
out.write(" <td width=\"79\" align=\"center\" valign=\"bottom\">\r\n");
out.write("\t ");
if(rightForm.getXxcx().equals(new Integer(1))){
out.write("\r\n");
out.write(" <a href=\"#\" onClick=\"right()\">信息查询</a>");
}else{
out.write(" <a href=\"#\" onClick=\"noright()\">信息查询</a>\r\n");
out.write(" ");
}
out.write("\r\n");
out.write("\t\r\n");
out.write("\t</td>\r\n");
out.write(" <td width=\"79\" align=\"center\" valign=\"bottom\">\r\n");
out.write("\t");
if(rightForm.getFzgj().equals(new Integer(1))){
out.write("\r\n");
out.write(" <a href=\"#\" onClick=\"right()\"> 辅助工具</a>");
}else{
out.write("<a href=\"#\" onClick=\"noright()\">辅助工具</a>\r\n");
out.write(" ");
}
out.write("\r\n");
out.write("\t\r\n");
out.write("\t</td>\r\n");
out.write(" <td width=\"78\" align=\"center\" valign=\"bottom\">");
if(rightForm.getXtsz().equals(new Integer(1))){
out.write("<a href=\"#\" onClick=\"right()\"> 系统设置</a>");
}else{
out.write("<a href=\"#\" onClick=\"noright()\">系统设置</a>");
}
out.write("</td>\r\n");
out.write(" <td width=\"91\" align=\"center\" valign=\"bottom\"><a href=\"#\" onClick=\"return quit()\">退出系统</a> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"157\" colspan=\"8\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -