📄 selldetail_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import com.j2ee.func.login.*;
import java.util.*;
import com.j2ee.func.xszx.SellgoodsInfo;
import java.sql.*;
public final class selldetail_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(1);
_jspx_dependants.add("/top.jsp");
}
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\r\n\r\n\r\n");
String islogin="";
islogin=(String)session.getAttribute("islogin");
String realname="";
if(islogin!=null){//用户已登陆
String username=(String)session.getAttribute("username");
String type=(String) session.getAttribute("usertype");
Logininfo li=new Logininfo();
li.setname(username);
li.setusertype(type);
Loginfunc lf=new Loginfunc(li);
realname=lf.getUserInfo(); //得到用户真实姓名;
}
Vector vct=(Vector)request.getAttribute("vctxszx");
out.write("\r\n\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>销售中心</title>\r\n<link href=\"css/indexcss.css\" rel=\"stylesheet\" type=\"text/css\">\r\n</head>\r\n\r\n<body>\r\n");
out.write("\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>无标题文档</title>\r\n<link href=\"css/index1.css\" rel=\"stylesheet\" type=\"text/css\">\r\n</head>\r\n\r\n<body topmargin=\"0\">\r\n<table width=\"76%\" border=\"1\" align=\"center\">\r\n <tr> \r\n <td width=\"27%\" height=\"60\"><img src=\"image/log.jpg\" width=\"200\" height=\"60\"></td>\r\n <td width=\"40%\"><img src=\"image/top.jpg\" width=\"450\" height=\"60\"></td>\r\n <td width=\"33%\"><img src=\"image/jt1.gif\" width=\"11\" height=\"11\"><a onclick=\"this.style.behavior='url(#default#homepage)';this.sethomepage('http://indowns.com');return false;\" href=\"\" title=\"将本站设为你的首页\">设为首页</a><br> \r\n <img src=\"image/jt2.gif\" width=\"11\" height=\"11\"><a href=\"javascript:window.external.AddFavorite(location.href,document.title)\" title=\"将本站加入到你的收藏夹\">加入收藏</a> \r\n <br> <img src=\"image/jt3.gif\" width=\"11\" height=\"11\"><a href=\"list.list@eyou.com\">联系我们</a></td>\r\n </tr>\r\n</table>\r\n</body>\r\n</html>\r\n");
out.write("\r\n<TABLE\r\n width=728\r\n height=632\r\n border=0\r\n align=center\r\n cellPadding=0\r\n cellSpacing=0 bordercolor=\"#E8E8FF\"\r\n borderColorDark=#e2dffd\r\n bgColor=#ffffff\r\n borderlightcolor=\"#EBF1F1\"\r\n witdth=\"100%\">\r\n <TBODY>\r\n <TR>\r\n <TD width=162 height=\"632\" vAlign=top bgColor=#E8E8FF><TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n <TBODY>\r\n <TR>\r\n <TD align=\"center\" valign=\"middle\" background=image/line4.gif><DIV align=center> </DIV>\r\n <DIV align=center> <BR>\r\n </DIV></TD>\r\n </TR>\r\n </TBODY>\r\n </TABLE>\r\n ");
if(islogin==null){
out.write("\r\n <form method=\"post\" action=\"logincservlet\">\r\n <table width=\"160\" border=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td width=\"52\" height=\"25\" align=\"right\">用户名:</td>\r\n <td width=\"99\"><input name=\"name\" type=\"text\" id=\"name\" size=\"15\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td height=\"20\" align=\"right\">密码:</td>\r\n <td><input name=\"password\" type=\"password\" id=\"password\" size=\"15\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td height=\"28\" align=\"right\">类型:</td>\r\n <td height=\"28\"><select name=\"usertype\" id=\"usertype\">\r\n <option value=\"0\">个人用户</option>\r\n <option value=\"1\">企业用户</option>\r\n </select></td>\r\n </tr>\r\n <tr>\r\n <td height=\"28\" colspan=\"2\" align=\"center\"><input type=\"submit\" name=\"Submit\" value=\"登陆\">\r\n <input type=\"button\" name=\"Submit2\" value=\"注册\" onClick=\"window.location='reg.htm'\">\r\n");
out.write(" </td>\r\n </tr>\r\n </table>\r\n </form>\r\n ");
}else{
out.write("\r\n <table width=\"161\" border=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td width=\"159\" height=\"22\" align=\"center\">");
out.print(realname);
out.write("</td>\r\n </tr>\r\n <tr>\r\n <td height=\"21\" align=\"center\">你好!</td>\r\n </tr>\r\n <tr>\r\n <td height=\"20\" align=\"center\"><form name=\"form1\" method=\"post\" action=\"logoutservlet\">\r\n <input name=\"logout\" type=\"submit\" id=\"logout\" value=\"安全退出\">\r\n </form></td>\r\n </tr>\r\n </table>\r\n ");
}
out.write("\r\n <hr size=\"1\" noshade>\r\n <table width=\"160\" border=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td>信息分类:</td>\r\n </tr>\r\n <tr>\r\n <td> <a href=\"allgoodsservlet?type=jsgp&pageno=1\">技术光盘</a></td>\r\n </tr>\r\n <tr>\r\n <td> <a href=\"allgoodsservlet?type=xgsj&pageno=1\"> 相关书籍</a></td>\r\n </tr>\r\n <tr>\r\n <td> </td>\r\n </tr>\r\n </table></TD>\r\n <TD width=\"1\" align=\"left\" vAlign=top bgcolor=\"#4D4DFF\"></TD>\r\n <TD width=\"560\" align=\"left\" vAlign=top>销售中心==><table width=\"565\" border=\"0\">\r\n\r\n ");
int vctxszxi=0;
while(vctxszxi<vct.size()){
SellgoodsInfo sgi=(SellgoodsInfo)vct.elementAt(vctxszxi);
out.write("\r\n\r\n <tr>\r\n <td width=\"92\" height=\"74\"><img name=\"pic\" src=\"xszximages/xszx");
out.print(sgi.getId());
out.write(".jpg\" width=\"128\" height=\"120\" alt=\"\"></td>\r\n <td width=\"319\" valign=\"top\">书名:");
out.print(sgi.getGoodsname() );
out.write("<br>\r\n\t\t 供应量:");
out.print(sgi.getSupplycount());
out.write("<br>\r\n 作者:");
out.print(sgi.getAuthor() );
out.write("<br>\r\n 定价:");
out.print(sgi.getCprice() );
out.write(" <br>\r\n 收费会员价: ");
out.print(sgi.getPprice() );
out.write("<br>\r\n 日期: ");
out.print(sgi.getPublishtime() );
out.write(" <br>\r\n\t\t\t 类型:");
out.print(sgi.getStyle() );
out.write("</td>\r\n <td width=\"140\" valign=\"bottom\"><a href=\"putinbagservlet?id=");
out.print(sgi.getId());
out.write("\">放入购物篮></a></td>\r\n </tr>\r\n <tr valign=\"top\">\r\n <td height=\"109\" colspan=\"3\">内容介绍:<br>");
out.print(sgi.getContentIntro());
out.write("</td>\r\n </tr>\r\n\t\t ");
vctxszxi++;}
out.write("\r\n </table>\r\n </TD>\r\n </TR>\r\n </TBODY>\r\n</TABLE>\r\n</body>\r\n</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 + -