package org.apache.jsp.phone;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.project.dao.*;
import com.project.dao.impl.*;
import com.project.entity.*;
import java.util.List;
import java.util.ArrayList;
import com.project.entity.*;
import com.project.dao.impl.*;
import com.project.dao.*;
import java.util.List;
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(2);
_jspx_dependants.add("/phone/header.jsp");
_jspx_dependants.add("/phone/footer.jsp");
}
private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
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 {
response.setContentType("text/html;charset=UTF-8");
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;
_jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n");
out.write(" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
out.write("\n");
out.write("<html>\n");
out.write(" <head>\n");
out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n");
out.write(" <title>非phone-淘宝商城</title>\n");
out.write(" <link rel=\"stylesheet\" type=\"text/css\" href=\"../style/header.css\" />\n");
out.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"../style/jquery-1.3.2.min.js\"></script>\n");
out.write(" <script language=\"javascript\" type=\"text/javascript\">\n");
out.write(" $(document).ready(function(){\n");
out.write(" $(\".mainNav a\").mouseover(function(){\n");
out.write(" $(\".mainNav a\").attr(\"class\",\"\");\n");
out.write(" $(\"#\"+this.id).attr(\"class\",\"actived\");\n");
out.write(" var currentMenuNo = parseInt(this.id.substring(1));\n");
out.write(" $(\".secondNav div\").each(function(){\n");
out.write(" $(this).hide();\n");
out.write(" $(\"#subNav\"+currentMenuNo).show();\n");
out.write(" });\n");
out.write(" });\n");
out.write(" });\n");
out.write(" </script>\n");
out.write("\n");
out.write(" <style type=\"text/css\">\n");
out.write(" .tdborder{border-right-color:#F2F2F2;border-right-style:dotted;border-right-width:thin;}\n");
out.write(" .head{background-color:#EAEAEA;font-size:14px;}\n");
out.write(" .redhref{text-decoration:none;}\n");
out.write(" .redhref:link{color:#333333;}\n");
out.write(" .redhref:hover{color:#FF0000;}\n");
out.write(" .submit{width:44px;height:22px;border:0;background:url(../style/icon4.png) no-repeat 0 -42px;color:#666;}\n");
out.write(" .wrapper{width:980px;margin-left:auto;margin-right:auto;}\n");
out.write(" .mt{margin-top:10px;}\n");
out.write(" .mr{margin-right:10px;}\n");
out.write(" .clearfix:after{content:\".\";display:block;height:0;clear:both;visibility:hidden;}\n");
out.write(" .clearfix{display:inline-block;}\n");
out.write(" * html .clearfix{height:1%;}\n");
out.write(" .clearfix{display:block;}\n");
out.write(" .w_320{width:320px;}\n");
out.write(" .mr{margin-right:10px;}\n");
out.write(" .l{float:left;}\n");
out.write(" .grad_tit{height:29px;line-height:29px;background:url(../style/bar.jpg) repeat-x 0 0;border-left:1px solid #B2D5F1;border-right:1px solid #B2D5F1;padding:0 10px;font-family:\"宋体\";}\n");
out.write(" .subgrad_tit{padding-left:0;}\n");
out.write(" .qq{width:98%; background-color:#A7E7FA; height:35px;}\n");
out.write(" </style>\n");
out.write(" </head>\n");
out.write(" <body style=\"margin-top:0px; margin-right:0px; margin-left:0px\">\n");
out.write(" ");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n");
out.write(" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
out.write("\n");
out.write("<html>\n");
out.write(" <head>\n");
out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
out.write(" <title>JSP Page</title>\n");
out.write(" <script language=\"javascript\" type=\"\">\n");
out.write(" function check(){\n");
out.write(" if(document.loginform.username.value==\"\"){\n");
out.write(" alert(\"用户名不能为空\");\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" if(document.loginform.pass.value==\"\"){\n");
out.write(" alert(\"密码不能为空\");\n");
out.write(" return false;\n");
out.write(" }\n");
out.write(" }\n");
out.write(" </script>\n");
out.write(" </head>\n");
out.write(" <body>\n");
out.write(" ");
PhoneInfoDao pdao = new PhoneInfoImpl();
HotTypeDao hdao = new HotTypeImpl();
Type t3 = new Type();
Cookie[] cookies = request.getCookies();
String name = "";
String pass = "";
if (cookies != null) {
for (int i = 0; i < cookies.length; i++) {
if (cookies[i].getName().equals("username")) {
name = cookies[i].getValue();
}
if (cookies[i].getName().equals("pass")) {
pass = cookies[i].getValue();
}
}
}
out.write("\n");
out.write(" <table border=\"0\" cellspacing=\"0\" width=\"100%\">\n");
out.write(" <form action=\"doLoginServlet\" method=\"post\" name=\"loginform\" onsubmit=\"return check()\">\n");
out.write("
- 1
- 2
前往页