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

📄 selectware.jsp

📁 用JSP写的一个在线购物网站的代码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
                                      <tr> 
                                        <td><table width="540" border="0" align="center" cellpadding="10" cellspacing="0" bgcolor="#FFFFFF">
                                            <tr> 
                                              <td width="20%" rowspan="4" class="table-you" align="center"> 
                                                <table onmouseover="this.style.backgroundColor='#FF4FAE'" onmouseout="this.style.backgroundColor=''" width=100 height=100 cellSpacing=1 cellPadding=2 bgColor=#e1e1e1 border=0>
                                                  <tr> 
                                                    <td width=100 height=100 bgColor=#ffffff align=center><a target="_blank" href="upload/<%=small_pic%>"><img src="upload/<%=small_pic%>" alt="点击放大图片" width="100" height="100" border="0"></a></td>
                                                  </tr>
                                                </table></td>
                                              <td width="50%"><img src="images/ring.gif" width="9" height="9"><a href="javascript:wareshow(<%=id%>)"><font color="#ff6600"><u><%=name%></u></font></a></td>
                                              <td width="30%" rowspan="4" class="table-zuo"> 
                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                  <tr> 
                                                    <td align=center> 市场价:<s><%=marketprice%> 元</s><br>
                                                      会员价:<font color=#FF3300><%=managerprice%> 元</font><br>
                                                      VIP价:<font color="#FF3300"><%=vipprice%> 元</font></td>
                                                  </tr>
                                                  <tr> 
                                                    <td align=center><a href="addware.jsp?add=<%=id%>"><img src="images/buy.gif" width="65" height="20" border=0></a></td>
                                                  </tr>
                                                </table></td>
                                            </tr>
                                            <tr> 
                                              <td valign="top"><font color="#666666"><%=explain%></font></td>
                                            </tr>
                                          </table></td>
                                      </tr>
                                    </table>
                                    <table width="540" border="0" align="center" cellpadding="0" cellspacing="0">
                                      <tr> 
                                        <td height="5"></td>
                                      </tr>
                                    </table>
                                    <%
								  i=1;
                                  id=0;
                                  marketprice=0;
                                  managerprice=0;
                                  vipprice=0;
                                  name="";
                                  explain="";
                                  small_pic="";
                                  while(i<pagesize && rs.next())
                                  {
                                  id=rs.getInt("id");
                                  name=rs.getString("warename");
                                  explain=rs.getString("explain");
                                  marketprice=rs.getInt("marketprice");
                                  managerprice=rs.getInt("managerprice");
                                  vipprice=rs.getInt("vipprice");
                                   small_pic=rs.getString("small_pic");
                                   %> <table width="540" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                                      <tr> 
                                        <td><table width="540" border="0" align="center" cellpadding="10" cellspacing="0" bgcolor="#FFFFFF">
                                            <tr> 
                                              <td width="20%" rowspan="4" class="table-you" align="center"> 
                                                <table onmouseover="this.style.backgroundColor='#FF4FAE'" onmouseout="this.style.backgroundColor=''" width=100 height=100 cellSpacing=1 cellPadding=2 bgColor=#e1e1e1 border=0>
                                                  <tr> 
                                                    <td width=100 height=100 bgColor=#ffffff align=center><a target="_blank" href="upload/<%=small_pic%>"><img src="upload/<%=small_pic%>" alt="点击放大图片" width="100" height="100" border="0"></a></td>
                                                  </tr>
                                                </table></td>
                                              <td width="50%"><img src="images/ring.gif" width="9" height="9"><a href="javascript:wareshow(<%=id%>)"><font color="#ff6600"><u><%=name%></u></font></a></td>
                                              <td width="30%" rowspan="4" class="table-zuo"> 
                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                  <tr> 
                                                    <td align=center> 市场价:<s><%=marketprice%> 元</s><br>
                                                      会员价:<font color=#FF3300><%=managerprice%> 元</font><br>
                                                      VIP价:<font color="#FF3300"><%=vipprice%> 元</font></td>
                                                  </tr>
                                                  <tr> 
                                                    <td align=center><a href="addware.jsp?add=<%=id%>"><img src="images/buy.gif" width="65" height="20" border=0></a></td>
                                                  </tr>
                                                </table></td>
                                            </tr>
                                            <tr> 
                                              <td valign="top"><font color="#666666"><%=explain%></font></td>
                                            </tr>
                                          </table></td>
                                      </tr>
                                    </table>
                                    <table width="540" border="0" align="center" cellpadding="0" cellspacing="0">
                                      <tr> 
                                        <td height="5"></td>
                                      </tr>
                                    </table>
                                    <%
								   i++;
								   }}%></td>
                                </tr>
                              </table></td>
                            <td></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td height="15"></td>
                    </tr>
                    <tr> 
                      <td> </td>
                    </tr>
                    <tr> 
                      <td> <form action="" method="post">
                          <div align="center">当前<font color="#FF0000"><%=intpage%></font>/<font color="#FF0000"><%=allpage%></font>页,每页<font color="#FF0000"><%=pagesize%></font>条 
                            <%if(intpage>1)
                     {
                     if(intpage==1)
                     {%>
                            <a href="selectware.jsp?page=<%=intpage-1%>&selclass=<%=selclass%>&price=<%=price%>&selmode=<%=selmode%>&warename=<%=warename%>">上一页 </a> 
                            <%} else{%>
                            <a href="selectware.jsp?page=<%=1%>&selclass=<%=selclass%>&price=<%=price%>&selmode=<%=selmode%>&warename=<%=warename%>">最前页</a><a href="selectware.jsp?page=<%=intpage-1%>&selclass=<%=selclass%>&price=<%=price%>&selmode=<%=selmode%>&warename=<%=warename%>"> 上一页</a> 
                            <%}}%>
                            <%
                     if(intpage<allpage)
                     {
                     if(intpage==allpage)
                     {%>
                            <a href="selectware.jsp?page=<%=intpage+1%>&selclass=<%=selclass%>&price=<%=price%>&selmode=<%=selmode%>&warename=<%=warename%>">下一页</a> 
                            <%}else{%>
                            <a href="selectware.jsp?page=<%=intpage+1%>&selclass=<%=selclass%>&price=<%=price%>&selmode=<%=selmode%>&warename=<%=warename%>">下一页 </a><a href="selectware.jsp?page=<%=allpage%>&selclass=<%=selclass%>&price=<%=price%>&selmode=<%=selmode%>&warename=<%=warename%>">最后页</a> 
                            <%}}%>
                          </div>
                        </form></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td></td>
        </tr>
      </table></td>
    <td background="images/main_right_line.gif" width=7></td>
  </tr>
  <tr height=7> 
    <td background="images/main_bottom_line.gif" colSpan=3 height=7></td>
  </tr>
</table>

⌨️ 快捷键说明

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