📄 shipin_005fdetail_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import liangjuyan.conndb;
public final class shipin_005fdetail_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
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");
out.write("\r\n");
out.write("\r\n");
conndb conn = new conndb();
ResultSet rs_haha = conn.executeQuery("select top 3 title from haha ");
String s_title="";
ResultSet rs_shipin2 = conn.executeQuery("select top 6 shipinid,tupian from shipin ");
int shipinid2=0;
String tupian="";
int ID=-1;
ID=Integer.parseInt(request.getParameter("ID"));
if(ID>0){
ResultSet rs_shipin=conn.executeQuery("select wupinming,yanse,changjia,cailiao,shiyongnianxian,shengchanriqi,goumaichishu,tuijianzhishu,youdian,datupian from shipin where shipinid="+ID);
String s_swupinming ="";
String s_syanse="";
String s_schangjia ="";
String s_scailiao = "";
String s_sshiyongnianxian = "";
String s_sshengchanriqi = "";
String s_sgoumaichishu = "";
String s_stuijianzhishu = "";
String s_syoudian = "";
String s_sdatupian="";
if(rs_shipin.next()) {
s_swupinming=rs_shipin.getString(1);
s_syanse=rs_shipin.getString(2);
s_schangjia=rs_shipin.getString(3);
s_scailiao =rs_shipin.getString(4);
s_sshiyongnianxian=rs_shipin.getString(5);
s_sshengchanriqi=rs_shipin.getString(6);
s_sgoumaichishu=rs_shipin.getString(7);
s_stuijianzhishu=rs_shipin.getString(8);
s_syoudian=rs_shipin.getString(9);
s_sdatupian=rs_shipin.getString(10);}
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title></title>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write(".btn_grey {color: #CC3300}\r\n");
out.write(".style16 {\tcolor: #FF0000;\r\n");
out.write("\tfont-weight: bold;\r\n");
out.write("}\r\n");
out.write(".style17 {font-size: 16px}\r\n");
out.write("</style>\r\n");
out.write("</head>\r\n");
out.write("<body>\r\n");
out.write("<table width=\"760\" height=\"510\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"510\" valign=\"top\">\r\n");
out.write(" ");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "daohang.jsp", out, false);
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "dz.jsp", out, false);
out.write("\r\n");
out.write(" ");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "zhongjian.jsp", out, false);
out.write("\r\n");
out.write(" <table width=\"100%\" height=\"453\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"24%\" valign=\"top\" bgcolor=\"#FFFFFF\">");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "aa.jsp", out, false);
out.write(" </td>\r\n");
out.write(" <td width=\"76%\" valign=\"top\"><table width=\"100%\" height=\"453\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"65%\" valign=\"top\"><table width=\"100%\" border=\"0\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"175\" rowspan=\"23\" bgcolor=\"#AFD7D4\"><img src=\"images/");
out.print(s_sdatupian);
out.write("\" /></td>\r\n");
out.write(" <td width=\"101\" height=\"25\" bgcolor=\"#AFD7D4\"><div align=\"center\" class=\"style17\">物品名:</div></td>\r\n");
out.write(" <td width=\"288\" bgcolor=\"#AFD7D4\">");
out.print(s_swupinming);
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"10\" colspan=\"2\" bgcolor=\"#E7F3F2\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"25\" bgcolor=\"#E4E6E9\"><div align=\"center\" class=\"style17\">颜色:</div></td>\r\n");
out.write(" <td bgcolor=\"#E4E6E9\">");
out.print(s_syanse);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"10\" colspan=\"2\" bgcolor=\"#F1F2F3\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"25\" bgcolor=\"#EDE4F7\"><div align=\"center\" class=\"style17\">厂家</div></td>\r\n");
out.write(" <td bgcolor=\"#EDE4F7\">");
out.print(s_schangjia);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"10\" colspan=\"2\" bgcolor=\"#F3EDFA\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"25\" bgcolor=\"#F1F5FF\"><div align=\"center\" class=\"style17\">材料</div></td>\r\n");
out.write(" <td bgcolor=\"#F1F5FF\">");
out.print(s_scailiao);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"10\" colspan=\"2\" bgcolor=\"#F7F9FF\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"25\" bgcolor=\"#CEE7E5\"><div align=\"center\" class=\"style17\">生产日期</div></td>\r\n");
out.write(" <td bgcolor=\"#CEE7E5\">");
out.print(s_sshengchanriqi);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"10\" colspan=\"2\" bgcolor=\"#E7F3F2\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"25\" bgcolor=\"#E4E6E9\"><div align=\"center\" class=\"style17\">购买次数</div></td>\r\n");
out.write(" <td bgcolor=\"#E4E6E9\">");
out.print(s_sdatupian);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"10\" colspan=\"2\" bgcolor=\"#F1F2F3\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"25\" bgcolor=\"#EDE4F7\"><div align=\"center\" class=\"style17\">推荐指数</div></td>\r\n");
out.write(" <td bgcolor=\"#EDE4F7\">");
out.print(s_sgoumaichishu);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"10\" colspan=\"2\" bgcolor=\"#F3EDFA\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"25\" bgcolor=\"#F1F5FF\"><div align=\"center\" class=\"style17\">优点</div></td>\r\n");
out.write(" <td bgcolor=\"#F1F5FF\">");
out.print(s_syoudian);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"10\" colspan=\"2\" bgcolor=\"#F7F9FF\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"25\" bgcolor=\"#EDE4F7\"><div align=\"center\" class=\"style17\">使用年限</div></td>\r\n");
out.write(" <td bgcolor=\"#EDE4F7\">");
out.print(s_sshiyongnianxian);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"10\" colspan=\"2\" bgcolor=\"#F3EDFA\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table> \r\n");
out.write(" <table width=\"100%\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"564\" background=\"images/st.jpg\" height=\"30\" ></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"121\" valign=\"top\"><table width=\"22%\" >\r\n");
out.write(" <tr>\r\n");
out.write(" ");
while(rs_shipin2.next()) {
shipinid2=rs_shipin2.getInt(1);
tupian=rs_shipin2.getString(2);
out.write("\r\n");
out.write(" <td height=\"119\"><div align=\"center\"><a href=\"shipin_detail.jsp?ID=");
out.print(shipinid2);
out.write("\"><img src=\"images/");
out.print(tupian);
out.write("\" /></a></div></td>\r\n");
out.write(" ");
}
out.write("\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table> \r\n");
out.write(" <img src=\"file:///C|/Documents%20and%20Settings/liang/My%20Documents/liangjuyan/yan.png\" width=\"760\" height=\"45\"/></td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("</body>\r\n");
out.write("</html>");
conn.close();}
out.write("\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 + -