📄 left_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class left_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(1);
_jspx_dependants.add("/commonDealError.jsp");
}
public Object 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=GBK");
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("\r\n");
out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\">\r\n");
out.write("<title></title>\r\n");
out.write("<script type = \"text/javascript\">\r\n");
out.write("\tfunction changeValue(){\r\n");
out.write("\t\tvar nameText = document.getElementById(\"name\");\r\n");
out.write("\t\tnameText.value = \"\";\r\n");
out.write("\t}\r\n");
out.write("\tfunction refresh(){\r\n");
out.write("\t\twindow.parent.location.reload(true);\r\n");
out.write("\t\treturn true;\r\n");
out.write("\t}\r\n");
out.write("</script>\r\n");
out.write("<script type = \"text/javascript\">\r\n");
out.write("\tfunction load(){\r\n");
out.write("\t\t");
if(session.getAttribute("errorMsg") != null){
out.write("\r\n");
out.write("\t\t\tvar errorStr = \"");
out.print( session.getAttribute("errorMsg"));
out.write("\";\r\n");
out.write("\t\t");
session.setAttribute("errorMsg","");
}else{
out.write("\r\n");
out.write("\t\t\tvar errorStr = \"\";\r\n");
out.write("\t\t");
}
out.write("\r\n");
out.write("\t\tif(errorStr.length >= 1){\r\n");
out.write("\t\t\talert(errorStr);\r\n");
out.write("\t\t}\r\n");
out.write("\t}");
out.write("\r\n");
out.write("</script>\r\n");
out.write("<link rel=\"stylesheet\" href=\"src/bg2.css\" type=\"text/css\"/>\r\n");
out.write("</head>\r\n");
out.write("\r\n");
Object o = session.getAttribute("errorMsg");
String err = (String)o;
if(err == null){
err = "";
}
int type = 0;
if(session.getAttribute("type")!= null){
type = Integer.parseInt(session.getAttribute("type").toString());
}
out.write('\r');
out.write('\n');
String name = (String)session.getAttribute("username");
if(name == null){
name = "";
}
out.write("\r\n");
out.write("<body onload = load()>\r\n");
out.write("\t<br>\r\n");
out.write("\t<center>\r\n");
out.write("\t");
if(type == 0){
out.write("\r\n");
out.write("\t<h2>用户登录</h2>\r\n");
out.write("\t<form method=\"post\" action=\"servlet/login\">\r\n");
out.write("\t <p class=\"mystyle\">\r\n");
out.write("\t \t用户名:<input type=\"text\" id = \"name\" name=\"username\" size=\"10\" value = \"");
out.print( name );
out.write("\"><br><br>\r\n");
out.write("\t 密  码:<input type=\"password\" name=\"password\" size=\"10\">\r\n");
out.write("\t </p>\r\n");
out.write("\t <input type=\"submit\" value=\"登录\" >  \r\n");
out.write("\t <input type=\"button\" value=\"重置\" onClick = \"changeValue()\">\r\n");
out.write("\t</form>\r\n");
out.write("\t");
}else{
out.write("\r\n");
out.write("\t\t<h2>欢迎进入</h2><p>");
out.print( session.getAttribute("realname"));
out.write("</p>\r\n");
out.write("\t\t<form method=\"post\" action = \"servlet/Logout\">\r\n");
out.write("\t\t\t<input type=\"submit\" value=\"退出\" onClick=\"return refresh()\">\r\n");
out.write("\t\t</form>\r\n");
out.write("\t");
}
out.write("\r\n");
out.write("\t</center>\r\n");
out.write("\t<br>\r\n");
out.write("\r\n");
if(type == 1){
out.write("\r\n");
out.write("\t<center><p>\r\n");
out.write("\t<a href=\"admin/caipu.jsp\" target=\"downFrame\">菜  谱</a>\r\n");
out.write("\t</p></center>\r\n");
out.write("\t\r\n");
out.write("\t<center><p>\r\n");
out.write("\t<a href=\"admin/material/materialMain.html\" target=\"downFrame\">主  料</a>\r\n");
out.write("\t</p></center>\r\n");
out.write("\t\r\n");
out.write("\t<center><p>\r\n");
out.write("\t<a href=\"admin/dailyReport/search.jsp\" target=\"downFrame\">日统计账单</a>\r\n");
out.write("\t</p></center>\r\n");
out.write("\t\r\n");
out.write("\t<center><p>\r\n");
out.write("\t<a href=\"admin/monthReport/search.jsp\" target=\"downFrame\">月统计账单</a>\r\n");
out.write("\t</p></center>\r\n");
out.write("\t\r\n");
out.write("\t<center><p>\r\n");
out.write("\t<a href=\"admin/user/userMain.html\" target=\"downFrame\">管理营业员</a>\r\n");
out.write("\t</p></center>\r\n");
}
out.write("\r\n");
out.write("\r\n");
if(type == 2){
out.write("\r\n");
out.write("\t<center><p>\r\n");
out.write("\t<a href=\"caipu.jsp\" target=\"downFrame\">菜    谱</a>\r\n");
out.write("\t</p></center>\r\n");
out.write("\t<center><p>\r\n");
out.write("\t<a href=\"waiter/order/order.jsp\" target=\"downFrame\">订    单</a>\r\n");
out.write("\t</p></center>\r\n");
out.write("\t\r\n");
out.write("\t<center><p>\r\n");
out.write("\t<a href=\"waiter/bill/bill.jsp\" target=\"downFrame\">点 菜 单</a>\r\n");
out.write("\t</p></center>\r\n");
out.write("\t\r\n");
out.write("\t<center><p>\r\n");
out.write("\t<a href=\"waiter/changepassword.jsp\" target=\"downFrame\">密码设置</a>\r\n");
out.write("\t</p></center>\r\n");
}
out.write('\r');
out.write('\n');
if(type == 0){
out.write("\r\n");
out.write("\t<center><p>\r\n");
out.write("\t<a href=\"caipu.jsp\" target=\"downFrame\">菜  谱</a>\r\n");
out.write("\t</p></center>\r\n");
out.write("\t<center><p>\r\n");
out.write("\t<a href=\"queryOrder.jsp\" target=\"downFrame\">订  单</a>\r\n");
out.write("\t</p></center>\r\n");
out.write("\t\r\n");
}
out.write("\r\n");
out.write("</body>\r\n");
out.write("</html>");
} 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 + -