📄 untitled_002d6_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import liangjuyan.conndb;
import liangjuyan.chStr;
public final class Untitled_002d6_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();
chStr chStr=new chStr();
String username=(String)session.getAttribute("username");
ResultSet rs = conn.executeQuery("select * from fuzhuang where tebietuijian=1 ");
int s_id=0;
String s_fwupinming ="";
String s_fyanse="";
String s_fchangjia ="";
String s_fcailiao = "";
String s_fshiyongnianxian = "";
String s_fshengchanriqi = "";
String s_fgoumaichishu = "";
String s_ftuijianzhishu = "";
String s_fyoudian = "";
String s_ftupian="";
String s_fprice="";
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<title>无标题文档</title>\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<body>\r\n");
out.write(" ");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "daohang.jsp", out, false);
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "zhongjian.jsp", out, false);
out.write("\r\n");
out.write("<div align=\"center\"><table align=\"center\">\r\n");
out.write(" <tr><td width=\"130\" valign=\"top\">");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "aa.jsp", out, false);
out.write("</td><td valign=\"top\" width=\"441\">\r\n");
out.write(" <table width=\"441\" height=\"206\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"433\" height=\"159\" valign=\"top\">\r\n");
out.write("\r\n");
out.write(" <table width=\"433\">\r\n");
out.write(" <tr>\r\n");
out.write("\r\n");
out.write(" ");
String str=(String)request.getParameter("Page");
if(str==null){
str="0";
}
int pagesize=12;
rs.last();
int RecordCount=rs.getRow();
int maxPage=0;
maxPage=(RecordCount%pagesize==0)?(RecordCount/pagesize):(RecordCount/pagesize+1);
int Page=Integer.parseInt(str);
if(Page<1){
Page=1;}
else{
if(Page>maxPage){
Page=maxPage;
}
}
rs.absolute((Page-1)*pagesize+1);
int s=1;
for(int i=1;i<=pagesize;i++){
s_id=rs.getInt(1);
s_fwupinming = rs.getString(2);
s_fprice= rs.getString(14);
s_ftupian= rs.getString(11);
if(s%3!=0){
out.write("\r\n");
out.write(" <td width=\"211\" valign=\"top\"><table width=\"96%\" border=\"1\" bordercolor=\"#FFCC99\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"35%\" height=\"138\" valign=\"top\"><div align=\"center\">\r\n");
out.write(" <table width=\"189\" align=\"left\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"103\" height=\"133\"><div align=\"center\"><img src=\"images/");
out.print(s_ftupian);
out.write("\" width=\"100\" height=\"100\"></div></td>\r\n");
out.write(" <td width=\"74\" valign=\"top\"><table width=\"100%\" height=\"128\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td><div align=\"center\">");
out.print(s_fwupinming);
out.write("</div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><div align=\"center\">原价:");
out.print(s_fprice);
out.write("</div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><div align=\"center\">特价:");
out.print(s_fprice);
out.write("</div></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(" </div>\r\n");
out.write(" </td>\r\n");
out.write("\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>");
}
out.write("\r\n");
out.write(" ");
if(s%3==0){
out.write("<td width=\"210\" valign=\"top\"><table width=\"95%\" border=\"1\" bordercolor=\"#FFCC99\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"35%\" height=\"138\" valign=\"top\"><div align=\"center\">\r\n");
out.write(" <table width=\"194\" align=\"left\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"103\" height=\"133\"><div align=\"center\"><img src=\"images/");
out.print(s_ftupian);
out.write("\" width=\"100\" height=\"100\"></div></td>\r\n");
out.write(" <td width=\"79\" valign=\"top\"><table width=\"100%\" height=\"128\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td><div align=\"center\">");
out.print(s_fwupinming);
out.write("</div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><div align=\"center\">原价:");
out.print(s_fprice);
out.write("</div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><div align=\"center\">特价:");
out.print(s_fprice);
out.write("</div></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(" </div>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td></tr>");
}
s++;
try{
if(!rs.next()){break;}
}
catch(Exception e){}
}
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"39\" valign=\"top\"><table width=\"100%\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"38\" align=\"right\"><span class=\"style7\">当前页数:</span>[");
out.print(Page);
out.write('/');
out.print(maxPage);
out.write("] \r\n");
out.write("\t");
if(Page>1){
out.write("\r\n");
out.write("\t<a href=\"Untitled-6.jsp?Page=1\" class=\"style7\">第一页</a> <a href=\"Untitled-6.jsp?Page=");
out.print(Page-1);
out.write("\" class=\"style7\">上一页</a>\r\n");
out.write("\t");
}
if(Page<maxPage){
out.write("\r\n");
out.write("\t <a href=\"Untitled-6.jsp?Page=");
out.print(Page+1);
out.write("\" class=\"style7\">下一页</a> <a href=\"Untitled-6.jsp?Page=");
out.print(maxPage);
out.write("\"><span class=\"style7\">最后一页</span> </a>\r\n");
out.write("\t");
}
out.write("\t</td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td></tr></table>\r\n");
out.write("</div>\r\n");
out.write("</body>\r\n");
out.write("</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 + -