📄 top_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.business.*;
import com.business.vo.*;
import java.util.*;
public final class top_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(2);
_jspx_dependants.add("/WEB-INF/struts-html.tld");
_jspx_dependants.add("/WEB-INF/struts-bean.tld");
}
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=GB18030");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
out.write("<HTML>\r\n");
out.write("<HEAD>\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<META http-equiv=\"Content-Type\" content=\"text/html; charset=GB18030\">\r\n");
out.write("<META name=\"GENERATOR\" content=\"IBM WebSphere Studio\">\r\n");
out.write("<META http-equiv=\"Content-Style-Type\" content=\"text/css\">\r\n");
out.write("<TITLE>left.jsp</TITLE>\r\n");
out.write("</HEAD>\r\n");
out.write("<HTML>\r\n");
out.write("<HEAD>\r\n");
out.write("<TITLE></TITLE>\r\n");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"style/style.css\">\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write("body {\r\n");
out.write("\tmargin-left: 0px;\r\n");
out.write("\tmargin-top: 0px;\r\n");
out.write("\tmargin-right: 0px;\r\n");
out.write("\tmargin-bottom: 0px;\r\n");
out.write("}\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("</head>\r\n");
out.write("<script language=javascript>\r\n");
out.write("\tfunction fresh()\r\n");
out.write("\t{\r\n");
out.write("\t parent.main.location.replace(parent.main.location);\r\n");
out.write("\t //self.location.href = self.location.href;\r\n");
out.write("\t}\r\n");
out.write("\tvar OA_TIME = new Date();\r\n");
out.write("\r\n");
out.write("\tfunction timeview()\r\n");
out.write("\t{\r\n");
out.write("\t timestr=OA_TIME.toLocaleString();\r\n");
out.write("\t timestr=timestr.substr(timestr.indexOf(\":\")-2);\r\n");
out.write("\t document.getElementById(\"time_area\").innerHTML = timestr;\r\n");
out.write("\t OA_TIME.setSeconds(OA_TIME.getSeconds()+1);\r\n");
out.write("\t window.setTimeout( \"timeview()\", 1000 );\r\n");
out.write("\t}\r\n");
out.write("\t\r\n");
out.write("\tfunction pageclose(){\r\n");
out.write("\t\tif(confirm(\"确认退出系统吗?\")){\r\n");
out.write("\t\t\tparent.window.close();\r\n");
out.write("\t\t}\r\n");
out.write("\t}\r\n");
out.write("</script>\r\n");
User loginUser ;
String userName = "";
String roleName = "";
UserBusiness ub = new UserBusiness();
RoleBusiness rb = new RoleBusiness();
if(request.getSession().getAttribute("LOGIN_USER")!=null){
loginUser = (User)request.getSession().getAttribute("LOGIN_USER");
userName = ub.getNameById(loginUser.getUserId());
roleName = rb.getNameById(loginUser.getRoleId());
}else{
out.println("<script language=javascript>self.parent.location.href='/jxcWeb/login.jsp';</script>");
}
out.write("\r\n");
out.write("<body bgColor=#ffffff marginheight=\"0\" marginwidth=\"0\">\r\n");
out.write("<body class=\"bodycolor\" topmargin=\"0\" leftmargin=\"0\" STYLE=\"margin:0pt;padding:0pt\" onload=\"timeview();\">\r\n");
out.write("\r\n");
out.write("<table class=\"small\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" <tr class=\"topbar\" height=42>\r\n");
out.write(" <td nowrap>\r\n");
out.write(" \t<span style=\"font-family:宋体;color:#404080; WIDTH: 100%; FONT-WEIGHT:bold;FONT-SIZE: 18pt;\">\r\n");
out.write(" 工业进销存管理系统 </span>\r\n");
out.write(" </td>\r\n");
out.write(" <td align=right>\r\n");
out.write(" \t<table width=\"340\" height=\"100%\" class=\"small\" border=0 cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" \t\t<tr>\r\n");
out.write(" \t\t\t<td align=right valign=top>\r\n");
out.write(" <span style=\"PADDING-TOP:2px;color:#000000; WIDTH: 100%; FONT-SIZE: 9pt;\">\r\n");
out.write("<SCRIPT>\r\n");
out.write("\t\t\t\ttoday=new Date();\r\n");
out.write("\t\t\t\tvar day; var date;\r\n");
out.write("\t\t\t\tif(today.getDay()==0)day=\"星期日\"\r\n");
out.write("\t\t\t\tif(today.getDay()==1)day=\"星期一\"\r\n");
out.write("\t\t\t\tif(today.getDay()==2)day=\"星期二\"\r\n");
out.write("\t\t\t\tif(today.getDay()==3)day=\"星期三\"\r\n");
out.write("\t\t\t\tif(today.getDay()==4)day=\"星期四\"\r\n");
out.write("\t\t\t\tif(today.getDay()==5)day=\"星期五\"\r\n");
out.write("\t\t\t\tif(today.getDay()==6)day=\"星期六\"\r\n");
out.write("\t\t\t\tdate=(today.getYear())+\"年\"+(today.getMonth() + 1 )+\"月\"+today.getDate()+\"日 \"+day+\"\";\r\n");
out.write("\t\t\t\tdocument.write(date);\r\n");
out.write("\t\t\t</SCRIPT> <img src=\"images/time.gif\" align=\"absmiddle\">\r\n");
out.write(" <span id=\"time_area\"></span> \r\n");
out.write(" </span>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" \t<TD align=right vAlign=center height=30>\r\n");
out.write("\t\t\t<A\thref=\"main.jsp\" target=main>\r\n");
out.write("\t\t\t\t<IMG src=\"images/title_07.gif\" border=0></A> \r\n");
out.write("\t\t\t<A href=\"javascript:fresh()\">\r\n");
out.write("\t\t\t\t<IMG src=\"images/title_09.gif\" border=0></A> \r\n");
out.write("\t\t\t<A\thref=\"javascript:pageclose();\">\r\n");
out.write("\t\t\t\t<IMG src=\"images/title_21.gif\" border=0></A> \r\n");
out.write("\t\t\t</TD>\r\n");
out.write("\t\t</tr>\r\n");
out.write("\t</table>\r\n");
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("\r\n");
out.write("</body>\r\n");
out.write("\r\n");
out.write("\t\t\t\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
out.write("\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 + -