?? index_jsp.java
字號(hào):
out.write(" <td width=\"626\" valign=\"top\">");
out.write("\r\n");
out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FFFFFF\" bordercolorlight=\"#FCBE3F\" bordercolordark=\"#FFFFFF\" background=\"\"> \r\n");
out.write("\t\t<tr> \t\r\n");
out.write("\t\t<form name=\"form3\" method=\"post\" action=\"user/forward.jsp\"> \r\n");
out.write(" <td width=\"65%\" height=\"28\" align=\"center\" valign=\"middle\">商品搜索:\r\n");
out.write(" <select name=\"wtype\" class=\"wenbenkuang\">\r\n");
out.write(" <option>上衣</option>\r\n");
out.write(" <option>褲子</option>\r\n");
out.write(" <option>女裙</option>\r\n");
out.write(" <option>內(nèi)衣</option>\r\n");
out.write(" <option>其它</option>\r\n");
out.write(" </select>\r\n");
out.write(" <input name=\"shop\" type=\"text\" class=\"txt_grey\">\r\n");
out.write(" <input name=\"Submit\" type=\"submit\" class=\"btn_grey\" value=\"搜索\" onClick=\"return check()\">\r\n");
out.write(" <input name=\"Submit2\" type=\"reset\" class=\"btn_grey\" value=\"重置\"></td> \r\n");
out.write("\t\t </form> \r\n");
out.write(" <td width=\"35%\" align=\"center\" valign=\"middle\" class=\"bgcolor\" id=\"time\"><script>ShowTime(time);</script></td>\r\n");
out.write(" </tr>\t\r\n");
out.write(" </table>");
out.write("\r\n");
out.write(" ");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"625\" height=\"\" align=\"center\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td><img name=\"cplist_01_01\" src=\"image/cplist_01.gif\" width=\"625\" height=\"69\" border=\"0\" alt=\"\" /></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"625\" background=\"image/usercenter_02.gif\">\r\n");
out.write("\t\t<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"\"> \r\n");
out.write(" \r\n");
out.write("\t ");
String sql="select * from tb_Ware order by Dattime";
ResultSet rs=con.executeQuery(sql);
int num=0;
int count=0;
int i=1;
while(rs!=null && rs.next()){
count++;
if(count==7){
break;
}
String warename=rs.getString(2);
String wareprice=rs.getString(3);
String waretype=rs.getString(4);
String wareintro=rs.getString(5);
String img=rs.getString(6);
if(i%2!=0){
out.write(" \r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"145\" height=\"184\" valign=\"top\"><img src=\"");
out.print(img);
out.write("\" width=\"145\" height=\"184\" border=\"0\"></td> \r\n");
out.write(" <td width=\"167\" align=\"center\" valign=\"top\"> <table width=\"100%\" height=\"184\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" > \r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"49\" height=\"30\" align=\"left\"> 名稱:</td> \r\n");
out.write(" <td width=\"95\" align=\"left\">");
out.print(warename);
out.write("</td>\r\n");
out.write(" </tr> \r\n");
out.write("\t\t<tr> \r\n");
out.write(" <td height=\"30\"> 類別:</td>\r\n");
out.write(" <td height=\"30\">");
out.print(waretype);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write("\t\t<tr> \r\n");
out.write(" <td height=\"30\"> 原價(jià):</td>\r\n");
out.write(" <td height=\"30\">");
out.print(wareprice);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"30\"> 現(xiàn)價(jià):</td>\r\n");
out.write(" <td height=\"30\">");
out.print(wareprice);
out.write("</td>\r\n");
out.write(" </tr> \r\n");
out.write("\t\t <tr> \r\n");
out.write(" <td height=\"30\"> 介紹: </td>\r\n");
out.write("\t\t <td height=\"30\">");
out.print(wareintro);
out.write("</td>\r\n");
out.write("\t\t </tr>\r\n");
out.write("\t\t <tr> \r\n");
out.write(" <td height=\"30\" colspan=\"2\"><center> \r\n");
out.write(" <a href=\"user/look.jsp?buy1=");
out.print(warename);
out.write("\"><img src=\"images/buy.GIF\" width=\"45\" height=\"20\" class=\"btn_grey\"></a>\r\n");
out.write(" </center></td> \r\n");
out.write(" </tr> \r\n");
out.write(" </table>\t \t</td>\r\n");
out.write(" ");
}else{
out.write(" \r\n");
out.write(" <td width=\"145\" height=\"184\" valign=\"top\"><img src=\"");
out.print(img);
out.write("\" width=\"145\" height=\"184\" border=\"0\"></td> \r\n");
out.write(" <td width=\"167\" align=\"center\" valign=\"top\"> <table width=\"100%\" height=\"184\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" > \r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"49\" height=\"30\" align=\"left\"> 名稱:</td> \r\n");
out.write(" <td width=\"95\" align=\"left\">");
out.print(warename);
out.write("</td>\r\n");
out.write(" </tr> \r\n");
out.write("\t\t<tr> \r\n");
out.write(" <td height=\"30\"> 類別:</td>\r\n");
out.write(" <td height=\"30\">");
out.print(waretype);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write("\t\t<tr> \r\n");
out.write(" <td height=\"30\"> 原價(jià):</td>\r\n");
out.write(" <td height=\"30\">");
out.print(wareprice);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"30\"> 現(xiàn)價(jià):</td>\r\n");
out.write(" <td height=\"30\">");
out.print(wareprice);
out.write("</td>\r\n");
out.write(" </tr> \r\n");
out.write("\t\t <tr> \r\n");
out.write(" <td height=\"30\"> 介紹: </td>\r\n");
out.write("\t\t <td height=\"30\">");
out.print(wareintro);
out.write("</td>\r\n");
out.write("\t\t </tr>\r\n");
out.write("\t\t <tr> \r\n");
out.write(" <td height=\"30\" colspan=\"2\"><center> \r\n");
out.write(" <a href=\"user/look.jsp?buy1=");
out.print(warename);
out.write("\"><img src=\"images/buy.GIF\" width=\"45\" height=\"20\" class=\"btn_grey\"></a>\r\n");
out.write(" </center></td> \r\n");
out.write(" </tr> \r\n");
out.write(" </table>\t \t</td> \r\n");
out.write(" </tr>\r\n");
out.write(" ");
}
i++;
}con.close();
out.write(" \r\n");
out.write("\t<tr align=\"right\">\r\n");
out.write(" <td colspan=\"4\"><a href=\"middle.jsp\">更多....</a></td>\r\n");
out.write(" </tr> \r\n");
out.write("</table>\r\n");
out.write("\t\t</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><img name=\"usercenter_03\" src=\"image/usercenter_03.gif\" width=\"625\" height=\"4\" border=\"0\" alt=\"\"></td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>");
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("<br/>\r\n");
out.write("\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write(".tit {font-size: 14px;\r\n");
out.write("}\r\n");
out.write(".style1 {color: #000000}\r\n");
out.write(".style3 {font-size: 14px; font-weight: bold; }\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("<table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"30\" align=\"center\" bgcolor=\"#f7f7f7\"><img src=\"image/pic3.gif\" align=\"absmiddle\" /> <a href=\"index.jsp\">站點(diǎn)首頁</a> | <a href=\"about.jsp\">關(guān)于我們</a> | <a href=\"\">付款方式</a> | <a href=\"\">購物流程</a> | <a href=\"\">交易條款</a> | <a href=\"\">常見問題</a> | <a href=\"\">法律版權(quán)</a> | <a href=\"\">運(yùn)輸說明</a> | <a href=\"\">售后服務(wù)</a> | <a href=\"\">送貨方式</a> | <a href=\"\">新聞中心</a> | <a href=\"\">用戶留言</a>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"right\">聯(lián)系QQ:267027873 329876120<br/>\r\n");
out.write(" 客服信箱: 熱線:<br />\r\n");
out.write(" 公司地址: 郵編:<br />\r\n");
out.write(" Copyright© <b></b><br/> \r\n");
out.write(" <span class=\"style3\"><a href=\"admin/login.htm\">后臺(tái)管理登錄入口</td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("\r\n");
out.write(" \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);
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -