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

📄 untitled_002d5_jsp.java

📁 用JSP制作的个人网站
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
}
	
      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></td></tr>\r\n");
      out.write("                <tr><td>  <table width=\"100%\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#cccccc\" bgcolor=\"#E6F3F2\">\r\n");
      out.write("                    <tr >\r\n");
      out.write("                      <td height=\"33\" colspan=\"11\" background=\"images/fei3.png\">   饰品</td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                    <tr><td width=\"9%\" height=\"25\"><div align=\"center\">编号</div></td>\r\n");
      out.write("                      <td width=\"22%\" height=\"25\"><div align=\"center\">物品名</div></td>\r\n");
      out.write("                      <td width=\"15%\"><div align=\"center\">颜色</div></td>\r\n");
      out.write("                      <td width=\"16%\"><div align=\"center\">厂家</div></td>\r\n");
      out.write("                      <td width=\"21%\"><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 str2=(String)request.getParameter("Page2");
        if(str2==null){
	    str2="0";
                        }
          int pagesize2=4;
         rs_shipin.last();
    int RecordCount2=rs_shipin.getRow();
 int maxPage2=0;
 maxPage2=(RecordCount2%pagesize2==0)?(RecordCount2/pagesize2):(RecordCount2/pagesize2+1);

  int Page2=Integer.parseInt(str2);
   if(Page2<1){
	Page2=1;}
        else{
	if(Page2>maxPage2){
		Page2=maxPage2;
	}
}
rs_shipin.absolute((Page2-1)*pagesize2+1);
for(int i=1;i<=pagesize2;i++){
                 s_shipinid=rs_shipin.getInt(1);
                    s_swupinming = rs_shipin.getString(2);
                      s_syanse = rs_shipin.getString(3);
                       s_schangjia = rs_shipin.getString(4);
                        s_scailiao = rs_shipin.getString(5);
                         s_sshiyongnianxian = rs_shipin.getString(6);
                          s_sshengchanriqi = rs_shipin.getString(7);
                          s_sgoumaichishu= rs_shipin.getString(8);
                           s_stuijianzhishu= rs_shipin.getString(9);
                            s_syoudian= rs_shipin.getString(10);
                            s_sprice= rs_shipin.getString(14);
                 if (username==null || username==""){
      out.write("\r\n");
      out.write("                <tr> <td height=\"28\"><a href=\"shipin_detail.jsp?ID=");
      out.print(s_shipinid);
      out.write('"');
      out.write('>');
      out.print(s_shipinid);
      out.write("</a></td>\r\n");
      out.write("                      <td height=\"28\">");
      out.print(s_swupinming);
      out.write("</td>\r\n");
      out.write("                      <td>");
      out.print(s_syanse);
      out.write("</td>\r\n");
      out.write("                      <td>");
      out.print(s_schangjia );
      out.write("</td>\r\n");
      out.write("                      <td>");
      out.print(s_scailiao);
      out.write("</td>\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=\"31\" align=\"top\"><a href=\"shipin_detail.jsp?ID=");
      out.print(s_shipinid);
      out.write('"');
      out.write('>');
      out.print(s_shipinid);
      out.write("</a></td>\r\n");
      out.write("                      <td height=\"31\">");
      out.print(s_swupinming);
      out.write("</td>\r\n");
      out.write("                      <td>");
      out.print(s_syanse);
      out.write("</td>\r\n");
      out.write("                      <td>");
      out.print(s_schangjia );
      out.write("</td>\r\n");
      out.write("                      <td>");
      out.print(s_scailiao);
      out.write("</td>\r\n");
      out.write("                     \r\n");
      out.write("                      <td>");
      out.print(s_sprice);
      out.write("</td>\r\n");
      out.write("                    </tr>");
}
                       try{
		if(!rs_shipin.next()){break;}
		}
        catch(Exception e){}
                       }
      out.write("\r\n");
      out.write("                    <tr>\r\n");
      out.write("                      <td height=\"31\" colspan=\"11\" align=\"top\"><table width=\"100%\" >\r\n");
      out.write("                        <tr>\r\n");
      out.write("                           <td align=\"right\"><span class=\"style7\">当前页数:</span>[");
      out.print(Page2);
      out.write('/');
      out.print(maxPage2);
      out.write("]&nbsp;\r\n");
      out.write("\t");
if(Page2>1){
      out.write("\r\n");
      out.write("\t<a href=\"index.jsp?Page2=1\" class=\"style7\">第一页</a> <a href=\"index.jsp?Page2=");
      out.print(Page2-1);
      out.write("\" class=\"style7\">上一页</a>\r\n");
      out.write("\t");

	}
	if(Page2<maxPage2){
	
      out.write("\r\n");
      out.write("\t <a href=\"index.jsp?Page2=");
      out.print(Page2+1);
      out.write("\" class=\"style7\">下一页</a> <a href=\"index.jsp?Page2=");
      out.print(maxPage2);
      out.write("\"><span class=\"style7\">最后一页</span>&nbsp;</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></td></tr>\r\n");
      out.write("               <tr><td>   <table width=\"100%\" height=\"143\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#cccccc\" bgcolor=\"#EDE4F7\">\r\n");
      out.write("                    <tr>\r\n");
      out.write("                      <td height=\"32\" colspan=\"11\" background=\"images/fei5.png\">    生活用品</td>\r\n");
      out.write("                    </tr>\r\n");
      out.write("                    <tr> <td width=\"9%\" height=\"25\"><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=\"16%\"><div align=\"center\">厂家</div></td>\r\n");
      out.write("                      <td width=\"20%\"><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 str3=(String)request.getParameter("Page3");
        if(str3==null){
	    str3="0";
                        }
          int pagesize3=4;
         rs_shenghuoyongpin.last();
    int RecordCount3=rs_shenghuoyongpin.getRow();
 int maxPage3=0;
 maxPage3=(RecordCount2%pagesize3==0)?(RecordCount3/pagesize3):(RecordCount3/pagesize3+1);

  int Page3=Integer.parseInt(str3);
   if(Page3<1){
	Page3=1;}
        else{
	if(Page3>maxPage3){
		Page3=maxPage3;
	}
}
rs_shenghuoyongpin.absolute((Page3-1)*pagesize3+1);
for(int i=1;i<=pagesize3;i++){

                    s_shenghuoyongpinid=rs_shenghuoyongpin.getInt(1);
                    s_hwupinming = rs_shenghuoyongpin.getString(2);
                      s_hyanse = rs_shenghuoyongpin.getString(3);
                       s_hchangjia = rs_shenghuoyongpin.getString(4);
                        s_hcailiao = rs_shenghuoyongpin.getString(5);
                         s_hshiyongnianxian = rs_shenghuoyongpin.getString(6);
                          s_hshengchanriqi = rs_shenghuoyongpin.getString(7);
                          s_hgoumaichishu= rs_shenghuoyongpin.getString(8);
                           s_htuijianzhishu= rs_shenghuoyongpin.getString(9);
                            s_hyoudian= rs_shenghuoyongpin.getString(10);
                             s_hprice= rs_shenghuoyongpin.getString(14);
                  if (username==null || username==""){
      out.write("\r\n");
      out.write("                  <tr><td height=\"28\"><a href=\"shenghuoyongpin_detail.jsp?ID=");
      out.print(s_shenghuoyongpinid);
      out.write('"');
      out.write('>');
      out.print(s_shenghuoyongpinid);
      out.write("</a></td>\r\n");
      out.write("                    <td>");
      out.print(s_hwupinming);
      out.write("</td>\r\n");
      out.write("                    <td>");
      out.print(s_hyanse );
      out.write("</td>\r\n");
      out.write("                    <td>");
      out.print(s_hchangjia);
      out.write("</td>\r\n");
      out.write("                    <td>");
      out.print(s_hcailiao);
      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=\"26\"><a href=\"shenghuoyongpin_detail.jsp?ID=");
      out.print(s_shenghuoyongpinid);
      out.write('"');
      out.write('>');
      out.print(s_shenghuoyongpinid);
      out.write("</a></td>\r\n");
      out.write("                      <td>");
      out.print(s_hwupinming);
      out.write("</td>\r\n");
      out.write("                      <td>");
      out.print(s_hyanse );
      out.write("</td>\r\n");
      out.write("                      <td>");
      out.print(s_hchangjia);
      out.write("</td>\r\n");
      out.write("                      <td>");
      out.print(s_hcailiao);
      out.write("</td>\r\n");
      out.write("                     \r\n");
      out.write("                      <td>");
      out.print(s_hprice);
      out.write("</td>\r\n");
      out.write("                    </tr>");
}
                       try{
		if(!rs_shenghuoyongpin.next()){break;}
		}
        catch(Exception e){}
                     }
      out.write("\r\n");
      out.write("                    <tr>\r\n");
      out.write("                      <td height=\"30\" colspan=\"11\"><table width=\"100%\" >\r\n");
      out.write("                        <tr>\r\n");
      out.write("                           <td align=\"right\"><span class=\"style7\">当前页数:</span>[");
      out.print(Page3);
      out.write('/');
      out.print(maxPage3);
      out.write("]&nbsp;\r\n");
      out.write("\t");
if(Page3>1){
      out.write("\r\n");
      out.write("\t<a href=\"index.jsp?Page3=1\" class=\"style7\">第一页</a> <a href=\"index.jsp?Page3=");
      out.print(Page3-1);
      out.write("\" class=\"style7\">上一页</a>\r\n");
      out.write("\t");

	}
	if(Page3<maxPage3){
	
      out.write("\r\n");
      out.write("\t <a href=\"index.jsp?Page3=");
      out.print(Page3+1);
      out.write("\" class=\"style7\">下一页</a> <a href=\"index.jsp?Page3=");
      out.print(maxPage3);
      out.write("\"><span class=\"style7\">最后一页</span>&nbsp;</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></td></tr>\r\n");

⌨️ 快捷键说明

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