⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index_jsp.java

📁 TurboCWCShop v1.6.7 is make in the Utility-LAYer Framework.
💻 JAVA
📖 第 1 页 / 共 4 页
字号:

      out.write("\r\n");
      out.write("                </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("      <br>\r\n");
      out.write("      ");
      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=utf-8\">\r\n");
      out.write("<title>Turbo CWCShop</title>\r\n");
      out.write("<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("</head>\r\n");
      out.write("<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\r\n");
      out.write("<script>\r\n");
      out.write("function cleanVisitHistory()\r\n");
      out.write("{\t\r\n");
      out.write("\tdocument.cleanVisitHistory.submit();\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("<table width=\"193\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CCCCCC\">\r\n");
      out.write("  <tr> \r\n");
      out.write("    <td width=\"206\" bgcolor=\"#FFFFFF\"><table width=\"193\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\">\r\n");
      out.write("        <form name=\"cleanVisitHistory\" action=\"");
      out.print(ConfigBean.getStringValue("systenFolder"));
      out.write("appController/cleanVisitHistory\" method=\"post\">\r\n");
      out.write("          <tr> \r\n");
      out.write("            <td width=\"152\" bgcolor=\"eeeeee\" class=\"moduletitle\">最近浏览</td>\r\n");
      out.write("            <td width=\"33\" align=\"center\" bgcolor=\"eeeeee\"><a href=\"javascript:cleanVisitHistory();\">清空</a></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr bgcolor=\"#FFFFFF\"> \r\n");
      out.write("            <td colspan=\"2\" class=\"td-padding\"><table width=\"100%\" height=\"135\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">\r\n");
      out.write("                ");

int jrowh = 5;
int jcolh = 2;
int jenTrTabh = 1;
DBRow historyPro[] = productMgr.getVisitHistoryFromCookie(request);
for ( int i=0; i<historyPro.length; i++ )
{
	if ( i%jcolh == 0 )
	{
		out.println("<tr>");
		jenTrTabh = 1;
	}

      out.write("\r\n");
      out.write("                <td align=\"center\"> <table width=\"54\" height=\"54\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\">\r\n");
      out.write("                    <tr> \r\n");
      out.write("                      <td width=\"80\" height=\"54\" align=\"left\" valign=\"top\" bgcolor=\"cccccc\"><a target=\"_blank\" href=\"");
      out.print(ConfigBean.getStringValue("systenFolder"));
      out.write("product/detail-");
      out.print(historyPro[i].getString("pid"));
      out.write(".html\"><img border=\"0\" src=\"");
      out.print(ConfigBean.getStringValue("systenFolder"));
      out.write('.');
      out.print(ConfigBean.getStringValue("upload_pro_img")+historyPro[i].getString("img_s"));
      out.write("\" width=\"60\" height=\"60\"></a></td>\r\n");
      out.write("                    </tr>\r\n");
      out.write("                  </table>\r\n");
      out.write("                  <br> </td>\r\n");
      out.write("                ");

	if ( jenTrTabh++ == jcolh )
	{
		out.println("</tr>");
	}
}

      out.write("\r\n");
      out.write("              </table></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("        </form>\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>");
      out.write("\r\n");
      out.write("    </td>\r\n");
      out.write("    <td width=\"572\" align=\"center\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td width=\"32%\"><img src=\"upload_ad_img/ban_ss_060626_whc01_01.gif\" width=\"180\" height=\"180\"></td>\r\n");
      out.write("          <td width=\"16%\"><img src=\"upload_ad_img/def_060615_yf.gif\" width=\"180\" height=\"180\"></td>\r\n");
      out.write("          <td width=\"52%\" align=\"right\" valign=\"top\"> \r\n");
      out.write("            <table width=\"200\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CCCCCC\">\r\n");
      out.write("              <tr> \r\n");
      out.write("                <td width=\"198\" bgcolor=\"#FFFFFF\"> \r\n");
      out.write("                  <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\">\r\n");
      out.write("                    <tr> \r\n");
      out.write("                      <td width=\"189\" align=\"center\" valign=\"middle\" bgcolor=\"eeeeee\" class=\"moduletitle\">商城快讯</td>\r\n");
      out.write("                    </tr>\r\n");
      out.write("                    <tr> \r\n");
      out.write("                      <td bgcolor=\"#FFFFFF\" class=\"news-title\">\r\n");

PageCtrl newsPc = new PageCtrl();
newsPc.setPageNo(1);
newsPc.setPageSize(8);
DBRow news[] = newsMgr.getNewsByTopic("商城快讯",newsPc);
for(int i=0; i<news.length; i++)
{

      out.write("\t\t\t\t\t  \r\n");
      out.write("\t\t\t\t\t   ·<a class=\"catalog\" href=\"news/detail_.jsp?nid=");
      out.print(news[i].getString("nid"));
      out.write("\" target=\"_blank\">");
      out.print(news[i].getString("ntitle"));
      out.write("</a><br>\r\n");

}

      out.write("\r\n");
      out.write("\t\t\t\t\t   </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("      <br>\r\n");
      out.write("      <table width=\"572\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#828282\">\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td width=\"285\"><font style=\"padding-left:3px;font-size:7px;font-family: 'Geneva', 'Arial', 'Helvetica', 'sans-serif';color: #FFFFFF;\">HAVE YOUR ...</font></td>\r\n");
      out.write("          <td width=\"286\"><img src=\"imgs/blank.gif\" width=\"3\" height=\"6\"></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td colspan=\"2\" bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("              <tr> \r\n");
      out.write("                <td width=\"88%\" valign=\"middle\" bgcolor=\"#F1F1F1\" style=\"letter-spacing: 6pt;padding-left:5px;padding-top:3px;height:25;border-top-width: 0px;\tborder-right-width: 0px;\tborder-bottom-width: 1px;\tborder-left-width: 0px;\tborder-top-style: solid;\tborder-right-style: solid;\tborder-bottom-style: solid;\tborder-left-style: solid;\tborder-top-color: dcdcdc;\tborder-right-color: dcdcdc;\tborder-bottom-color: dcdcdc;\tborder-left-color: dcdcdc;\"><font color=\"#990099\">最新上架</font></td>\r\n");
      out.write("                <td width=\"2%\" align=\"center\" valign=\"middle\" bgcolor=\"#F1F1F1\"><img src=\"imgs/i2.gif\" width=\"3\" height=\"5\"></td>\r\n");
      out.write("                <td width=\"10%\" valign=\"middle\" bgcolor=\"#F1F1F1\"><font color=\"#717171\">更 \r\n");
      out.write("                  多...</font></td>\r\n");
      out.write("              </tr>\r\n");
      out.write("              <tr> \r\n");
      out.write("                <td colspan=\"3\"><table width=\"100%\" height=\"135\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">\r\n");
      out.write("                    ");

int jrow = 3;
int jcol = 2;
int jenTrTab = 1;

PageCtrl newProPc = new PageCtrl();
newProPc.setPageNo(1);
newProPc.setPageSize(jrow*jcol);
DBRow newPro[] = productMgr.getNewProduct(newProPc);
for ( int i=0; i<newPro.length; i++ )
{
	if ( i%jcol == 0 )
	{
		out.println("<tr>");
		jenTrTab = 1;
	}

      out.write("\r\n");
      out.write("                    \r\n");
      out.write("                    <td align=\"center\"> <table width=\"270\" height=\"129\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\">\r\n");
      out.write("                          <tr align=\"left\"> \r\n");
      out.write("                            <td height=\"22\" colspan=\"2\" valign=\"middle\"> <img src=\"imgs/item.gif\" width=\"11\" height=\"11\"> \r\n");
      out.write("                              <font color=\"#003366\"> \r\n");
      out.write("                              ");
      out.print(newPro[i].getString("name"));
      out.write("\r\n");
      out.write("                              </font> </td>\r\n");
      out.write("                          </tr>\r\n");
      out.write("                          <tr> \r\n");
      out.write("                            <td width=\"80\" height=\"84\" align=\"left\" valign=\"top\"><a target=\"_blank\" href=\"product/detail-");
      out.print(newPro[i].getString("pid"));
      out.write(".html\"><img src=\"");
      out.print(ConfigBean.getStringValue("systenFolder"));
      out.write('.');
      out.print(ConfigBean.getStringValue("upload_pro_img")+newPro[i].getString("img_s"));
      out.write("\" width=\"80\" height=\"80\" border=\"0\"></a></td>\r\n");
      out.write("                            <td width=\"190\" align=\"left\" valign=\"top\" style=\"padding-left:7px;line-height:17px;\"><font color=\"#006666\">市场价</font>:<span class=\"market-price\"><font color=\"#999999\"> \r\n");
      out.write("                              ¥ \r\n");
      out.write("                              ");
      out.print(newPro[i].getString("market_price"));
      out.write("\r\n");
      out.write("                              元 </font></span><br> <font color=\"#006666\">商城价</font>:<font color=\"#990000\"> \r\n");
      out.write("                              ¥ \r\n");
      out.write("                              ");
      out.print(newPro[i].getString("shop_price"));
      out.write("\r\n");
      out.write("                              元 </font><br> <br> <font color=\"#666666\"> \r\n");
      out.write("                              ");
      out.print(StringUtil.cutString(newPro[i].getString("short_desc"),30,"..."));
      out.write("\r\n");
      out.write("                              </font> </td>\r\n");
      out.write("                          </tr>\r\n");
      out.write("                        </table>\r\n");
      out.write("                        <br>\r\n");
      out.write("                      </td>\r\n");
      out.write("                    ");

	if ( jenTrTab++ == jcol )
	{
		out.println("</tr>");
	}
}

      out.write("\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("      <br>\r\n");
      out.write("      <table width=\"572\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#828282\">\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td width=\"285\"><font style=\"padding-left:3px;font-size:7px;font-family: 'Geneva', 'Arial', 'Helvetica', 'sans-serif';color: #FFFFFF;\">HAVE \r\n");
      out.write("            YOUR ...</font></td>\r\n");
      out.write("          <td width=\"286\"><img src=\"imgs/blank.gif\" width=\"3\" height=\"6\"></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td colspan=\"2\" bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("              <tr> \r\n");
      out.write("                <td width=\"88%\" valign=\"middle\" bgcolor=\"#F1F1F1\" style=\"letter-spacing: 6pt;padding-left:5px;padding-top:3px;height:25;border-top-width: 0px;\tborder-right-width: 0px;\tborder-bottom-width: 1px;\tborder-left-width: 0px;\tborder-top-style: solid;\tborder-right-style: solid;\tborder-bottom-style: solid;\tborder-left-style: solid;\tborder-top-color: dcdcdc;\tborder-right-color: dcdcdc;\tborder-bottom-color: dcdcdc;\tborder-left-color: dcdcdc;\"><font color=\"#990099\">特价</font></td>\r\n");
      out.write("                <td width=\"2%\" align=\"center\" valign=\"middle\" bgcolor=\"#F1F1F1\"><img src=\"imgs/i2.gif\" width=\"3\" height=\"5\"></td>\r\n");
      out.write("                <td width=\"10%\" valign=\"middle\" bgcolor=\"#F1F1F1\"><font color=\"#717171\">更 \r\n");
      out.write("                  多...</font></td>\r\n");
      out.write("              </tr>\r\n");
      out.write("              <tr> \r\n");
      out.write("                <td colspan=\"3\"><table width=\"100%\" height=\"135\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">\r\n");
      out.write("                    ");

newPro = productMgr.getNewProductByPgTitle("特价",newProPc);
for ( int i=0; i<newPro.length; i++ )
{
	if ( i%jcol == 0 )
	{
		out.println("<tr>");
		jenTrTab = 1;
	}

      out.write("\r\n");
      out.write("                    <td align=\"center\"> <table width=\"270\" height=\"136\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\">\r\n");
      out.write("                        <tr align=\"left\"> \r\n");
      out.write("                          <td height=\"22\" colspan=\"2\" valign=\"middle\"> <img src=\"imgs/item.gif\" width=\"11\" height=\"11\"> \r\n");
      out.write("                            <font color=\"#003366\"> \r\n");
      out.write("                            ");
      out.print(newPro[i].getString("name"));
      out.write("\r\n");
      out.write("                            </font> </td>\r\n");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -