📄 untitled_002d5_jsp.java
字号:
out.write(" <tr><td> <table width=\"100%\" height=\"156\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#cccccc\" bgcolor=\"#F1F5FF\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"34\" colspan=\"11\" background=\"images/fei4.png\"> 其他</td>\r\n");
out.write(" </tr>\r\n");
out.write("\r\n");
out.write(" <tr><td width=\"9%\" height=\"26\"><div align=\"center\">编号</div></td>\r\n");
out.write(" <td width=\"23%\"><div align=\"center\">物品名</div></td>\r\n");
out.write(" <td width=\"15%\"><div align=\"center\">颜色</div></td>\r\n");
out.write(" <td width=\"17%\"><div align=\"center\">厂家</div></td>\r\n");
out.write(" <td width=\"19%\"><div align=\"center\">材料</div></td>\r\n");
out.write(" \r\n");
out.write(" <td width=\"17%\"><div align=\"center\">价格</div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
String str4=(String)request.getParameter("Page4");
if(str4==null){
str4="0";
}
int pagesize4=4;
rs_qita.last();
int RecordCount4=rs_qita.getRow();
int maxPage4=0;
maxPage4=(RecordCount4%pagesize4==0)?(RecordCount4/pagesize4):(RecordCount4/pagesize4+1);
int Page4=Integer.parseInt(str4);
if(Page4<1){
Page4=1;}
else{
if(Page4>maxPage4){
Page4=maxPage4;
}
}
rs_qita.absolute((Page4-1)*pagesize4+1);
for(int i=1;i<=pagesize4;i++){
s_qitaid=rs_qita.getInt(1);
s_qwupinming = rs_qita.getString(2);
s_qyanse = rs_qita.getString(3);
s_qchangjia = rs_qita.getString(4);
s_qcailiao = rs_qita.getString(5);
s_qshiyongnianxian = rs_qita.getString(6);
s_qshengchanriqi = rs_qita.getString(7);
s_qgoumaichishu= rs_qita.getString(8);
s_qtuijianzhishu= rs_qita.getString(9);
s_qyoudian= rs_qita.getString(10);
s_qprice= rs_qita.getString(14);
if (username==null || username==""){
out.write("\r\n");
out.write(" <tr><td height=\"28\"><a href=\"qita_detail.jsp?ID=");
out.print(s_qitaid);
out.write('"');
out.write('>');
out.print(s_qitaid);
out.write("</a></td>\r\n");
out.write(" <td height=\"28\">");
out.print(s_qwupinming);
out.write("</td>\r\n");
out.write(" <td>");
out.print(s_qyanse);
out.write("</td>\r\n");
out.write(" <td>");
out.print(s_qchangjia);
out.write("</td>\r\n");
out.write(" <td>");
out.print(s_qcailiao);
out.write("</td>\r\n");
out.write(" \r\n");
out.write(" <td><div align=\"center\" class=\"style2 style1\"><strong>请先登陆</strong></div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
}else{
out.write("\r\n");
out.write(" <tr><td height=\"33\"><a href=\"qita_detail.jsp?ID=");
out.print(s_qitaid);
out.write('"');
out.write('>');
out.print(s_qitaid);
out.write("</a></td>\r\n");
out.write(" <td height=\"33\">");
out.print(s_qwupinming);
out.write("</td>\r\n");
out.write(" <td>");
out.print(s_qyanse);
out.write("</td>\r\n");
out.write(" <td>");
out.print(s_qchangjia);
out.write("</td>\r\n");
out.write(" <td>");
out.print(s_qcailiao);
out.write("</td>\r\n");
out.write(" \r\n");
out.write(" <td>");
out.print(s_qprice);
out.write("</td>\r\n");
out.write(" </tr> ");
}
try{
if(!rs_qita.next()){break;}
}
catch(Exception e){}
}
out.write("\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"33\" colspan=\"11\"><table width=\"100%\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"right\"><span class=\"style7\">当前页数:</span>[");
out.print(Page4);
out.write('/');
out.print(maxPage4);
out.write("] \r\n");
out.write("\t");
if(Page4>1){
out.write("\r\n");
out.write("\t<a href=\"index.jsp?Page4=1\" class=\"style7\">第一页</a> <a href=\"index.jsp?Page4=");
out.print(Page4-1);
out.write("\" class=\"style7\">上一页</a>\r\n");
out.write("\t");
}
if(Page4<maxPage4){
out.write("\r\n");
out.write("\t <a href=\"index.jsp?Page4=");
out.print(Page4+1);
out.write("\" class=\"style7\">下一页</a> <a href=\"index.jsp?Page4=");
out.print(maxPage4);
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("\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write("</td>\r\n");
out.write(" <td width=\"145\" valign=\"top\"><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#cccccc\" bgcolor=\"#f1f5ff\">\r\n");
out.write(" <tr><td width=\"143\" valign=\"top\">\r\n");
out.write("<table width=\"100%\" height=\"48\" background=\"images/gaaakk.gif\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"16\"> 公告拦</td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
while(rs_haha.next()){
s_id=rs_haha.getInt(1);
s_title=rs_haha.getString(2);
out.write("\r\n");
out.write(" <tr><td height=\"24\"><div align=\"left\"> <img src=\"images/list1.gif\" width=\"11\" height=\"13\"> <a href=\"zuixindetail.jsp?ID=");
out.print(s_id);
out.write('"');
out.write('>');
out.print(s_title);
out.write("</a></div></td></tr>");
}
out.write("\r\n");
out.write(" </table></td></tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"266\" valign=\"top\"><table width=\"100%\" height=\"264\" bgcolor=\"#FFFFFF\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"102\"><div align=\"center\"><img src=\"images/y6.gif\" width=\"85\" height=\"85\"></div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"23\"><div align=\"center\"><a href=\"sale.jsp\">点击进入特价区</a></div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"100\"><div align=\"center\"><img src=\"images/headpic_85_03.gif\" width=\"85\" height=\"85\"></div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"27\"><div align=\"center\"><a href=\"newgoods.jsp\">点击进入精品区</a></div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr><td height=\"148\" valign=\"top\"><table width=\"100%\" height=\"57\" background=\"images/gaaakk.gif\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"16\"><div align=\"center\">购物指南</div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
while(rs_ha.next()){
id=rs_ha.getInt(1);
title=rs_ha.getString(2);
out.write("\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"24\"><div align=\"left\"><img src=\"images/list3.gif\"> <a href=\"zuixindetail.jsp?ID=");
out.print(id);
out.write('"');
out.write('>');
out.print(title);
out.write("</a></div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
}
out.write("\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <table width=\"100%\" height=\"51\" border=\"1\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td><script language=\"JavaScript\">\r\n");
out.write("var caution = false\r\n");
out.write("function setCookie(name, value, expires, path, domain, secure) {\r\n");
out.write(" var curCookie = name + \"=\" + escape(value) +\r\n");
out.write(" ((expires) ? \"; expires=\" + expires.toGMTString() : \"\") +\r\n");
out.write(" ((path) ? \"; path=\" + path : \"\") +\r\n");
out.write(" ((domain) ? \"; domain=\" + domain : \"\") +\r\n");
out.write(" ((secure) ? \"; secure\" : \"\")\r\n");
out.write(" if (!caution || (name + \"=\" + escape(value)).length <= 4000)\r\n");
out.write(" document.cookie = curCookie\r\n");
out.write(" else\r\n");
out.write(" if (confirm(\"Cookie exceeds 4KB and will be cut!\"))\r\n");
out.write(" document.cookie = curCookie\r\n");
out.write("}\r\n");
out.write("function getCookie(name) {\r\n");
out.write(" var prefix = name + \"=\"\r\n");
out.write(" var cookieStartIndex = document.cookie.indexOf(prefix)\r\n");
out.write(" if (cookieStartIndex == -1)\r\n");
out.write(" return null\r\n");
out.write(" var cookieEndIndex = document.cookie.indexOf(\";\", cookieStartIndex + prefix.length)\r\n");
out.write(" if (cookieEndIndex == -1)\r\n");
out.write(" cookieEndIndex = document.cookie.length\r\n");
out.write(" return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))\r\n");
out.write("}\r\n");
out.write("function deleteCookie(name, path, domain) {\r\n");
out.write(" if (getCookie(name)) {\r\n");
out.write(" document.cookie = name + \"=\" +\r\n");
out.write(" ((path) ? \"; path=\" + path : \"\") +\r\n");
out.write(" ((domain) ? \"; domain=\" + domain : \"\") +\r\n");
out.write(" \"; expires=Thu, 01-Jan-70 00:00:01 GMT\"\r\n");
out.write(" }\r\n");
out.write("}\r\n");
out.write("function fixDate(date) {\r\n");
out.write(" var base = new Date(0)\r\n");
out.write(" var skew = base.getTime()\r\n");
out.write(" if (skew > 0)\r\n");
out.write(" date.setTime(date.getTime() - skew)\r\n");
out.write("}\r\n");
out.write("var now = new Date()\r\n");
out.write("fixDate(now)\r\n");
out.write("now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000)\r\n");
out.write("var visits = getCookie(\"counter\")\r\n");
out.write("if (!visits)\r\n");
out.write(" visits = 1\r\n");
out.write("else\r\n");
out.write(" visits = parseInt(visits) + 1\r\n");
out.write("setCookie(\"counter\", visits, now)\r\n");
out.write("document.write(\"欢迎您第 \" + visits + \" 次来到本站\")\r\n");
out.write("// -->\r\n");
out.write("</script></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("</body>\r\n");
out.write("</html>\r\n");
conn.close();
out.write('\r');
out.write('\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 + -