📄 login_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.util.List;
import com.cn.cms.service.Service;
import java.util.Iterator;
import com.cn.cms.javabean.UseData;
import java.util.ArrayList;
public class login_jsp extends HttpJspBase {
private static java.util.Vector _jspx_includes;
public java.util.List getIncludes() {
return _jspx_includes;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
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");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<script language=\"javascript\">\r\n\r\nfunction click() {\r\nif (event.button==2) {\r\nalert('禁止使用鼠标右键!')\r\n}\r\n}\r\ndocument.onmousedown=click;\r\n");
out.write("</script>\r\n");
out.write("<!-- CMS在线医药销售系统-->\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>CMS在线医药销售系统!");
out.write("</title>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<meta name=\"description\" content=\"CMS在线医药销售系统。\">\r\n");
out.write("<meta name=\"keywords\" content=\"CMS在线医药销售系统\">\r\n\r\n");
out.write("<SCRIPT language=javascript>\r\n\t\tfunction GoLogin()\r\n\t\t{\r\n\t\t\tif (frmLogon.UserName.value == \"\")\r\n\t\t\t{\r\n\t\t\t\talert(\"请填写您的用户名。\");\r\n\t\t\t\tfrmLogon.UserName.focus();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (frmLogon.Userpasw.value == \"\")\r\n\t\t\t{\r\n\t\t\t\talert(\"请填写登录密码。\");\r\n\t\t\t\tfrmLogon.Userpasw.focus();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t");
out.write("</SCRIPT>\r\n");
out.write("</HEAD>");
out.write("<!---->\r\n");
out.write("<BODY bgColor=\"#4f3f65\" id=\"TheBody\" language=\"javascript\" leftMargin=0\r\ntopMargin=0>");
out.write("<FONT face=宋体>");
out.write("</FONT>");
out.write("<FONT face=宋体\r\nstyle=\"BACKGROUND-COLOR: #ffffff\">");
out.write("</FONT>");
out.write("<FONT face=宋体\r\nstyle=\"BACKGROUND-COLOR: #ffffff\";underline>\r\n");
out.write("</FONT>");
out.write("<BR>");
out.write("<BR>\r\n");
out.write("<br>\r\n");
out.write("<br>\r\n");
out.write("<TABLE align=center border=3 borderColorDark=darkblue borderColorLight=lightsteelblue cellSpacing=0>\r\n ");
out.write("<TBODY>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD>\r\n ");
out.write("<TABLE align=center border=0 cellPadding=10 cellSpacing=0 width=\"80%\">\r\n ");
out.write("<TBODY>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD colSpan=2 noWrap>\r\n ");
out.write("<P align=center>");
out.write("<FONT color=white\r\n size=6>");
out.write("<B>CMS在线医药销售系统");
out.write("</B>");
out.write("</FONT>");
out.write("<BR>\r\n ");
out.write("</P>");
out.write("</TD>");
out.write("</TR>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD width=120>");
out.write("<img border=\"0\" src=\"images/y046.JPG\" width=\"100\" height=\"90\" alt=\"欢迎使用CMS在线医药销售系统\">");
out.write("</TD>\r\n ");
out.write("<TD>\r\n ");
out.write("<FORM action=\"check.jsp\" method=\"post\" name=\"frmLogon\" onsubmit=\"return GoLogin();\">\r\n ");
out.write("<TABLE align=left border=0 cellPadding=3 style=\"COLOR: white\">\r\n ");
out.write("<TBODY>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD bgColor=#4f3f65 colSpan=2\r\n style=\"BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; BORDER-TOP: white 1px solid\">");
out.write("<center>登录");
out.write("</center>\r\n ");
out.write("</TD>");
out.write("</TR>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD noWrap>职工帐号:");
out.write("</TD>\r\n ");
out.write("<TD>");
out.write("<INPUT name=\"UserName\"\r\n style=\"BACKGROUND-COLOR: white; BORDER-BOTTOM: white 1px solid; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; COLOR: darkgreen\" >\r\n ");
out.write("</TD>");
out.write("</TR>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD>密码:");
out.write("</TD>\r\n ");
out.write("<TD>");
out.write("<INPUT name=\"Userpasw\"\r\n type=password\r\n style=\"BACKGROUND-COLOR: white; BORDER-BOTTOM: white 1px solid; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; COLOR: darkgreen\" > ");
out.write("</TD>");
out.write("</TR>\r\n\t\t");
out.write("<TR>\r\n ");
out.write("<TD>用户类型:");
out.write("</TD>\r\n ");
out.write("<TD>");
out.write("<select name=\"usertype\"\r\n style=\"BACKGROUND-COLOR: white; BORDER-BOTTOM: white 1px solid; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; COLOR: darkgreen\">\r\n\t\t");
List usedatalist = new ArrayList();
Service s = new Service();
usedatalist =s.findAll();
Iterator itr = usedatalist.iterator();
UseData usedao = new UseData();
while(itr.hasNext()){
usedao = (UseData)itr.next();
out.write("\r\n\t\t");
out.write("<option value=\"");
out.print(usedao.getUserId());
out.write("\">");
out.print(usedao.getUserTypeName());
out.write("</option>\r\n\t\t\t");
}
out.write("\r\n\t\t");
out.write("</select>\r\n\t\t");
out.write("</TD>");
out.write("</TR>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD align=middle colSpan=2>");
out.write("<INPUT id=submit1 name=submit1 style=\"BACKGROUND-COLOR: lightsteelblue; BORDER-BOTTOM: 1px ridge; BORDER-LEFT: 1px ridge; BORDER-RIGHT: 1px ridge; BORDER-TOP: 1px ridge; PADDING-BOTTOM: 3px; PADDING-LEFT: 3px; PADDING-RIGHT: 3px; PADDING-TOP: 3px\" type=submit value=\" 登录 \">\r\n ");
out.write("</TD>");
out.write("</TR>");
out.write("</TBODY>");
out.write("</TABLE>");
out.write("</FORM>");
out.write("</TD>");
out.write("</TR>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD colSpan=2>");
out.write("<FONT color=white>");
out.write("<BR>\r\n ");
out.write("</FONT>");
out.write("<font color=\"#FFFFFF\">CMS在线医药销售系统");
out.write("</font>");
out.write("<FONT color=white>\r\n 版权所有\r\n ");
out.write("</FONT>");
out.write("</TD>\r\n ");
out.write("</TR>");
out.write("</TBODY>");
out.write("</TABLE>");
out.write("</TD>");
out.write("</TR>");
out.write("</TBODY>");
out.write("</TABLE>\r\n");
out.write("<p>\r\n");
out.write("<center>\r\n");
out.write("</center>\r\n");
out.write("</BODY>");
out.write("</HTML>");
} catch (Throwable t) {
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -