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

📄 quickly.jsp

📁 用JSP写的一个在线购物网站的代码
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312" import="java.sql.*,java.util.*,shop.buy.buy" %>
<jsp:useBean id="data" scope="page" class="shop.data.conn" />
<style type="text/css">
<!-- @import url(images/css.css); -->
</style>
<script language="JavaScript">
function wareshow(a)
{
  window.open("wareshow.jsp?action="+a,"body","scrollbars=yes,width=434,height=500");
}
</script>
<body bgcolor="#63bce6" leftmargin="0" topmargin="0">
<table border=0 cellPadding=0 cellSpacing=0 width=770>
  <tr height=7 background="images/main_top_line.gif"> 
    <td colSpan=3 height=7></td>
  </tr>
  <tr> 
    <td background="images/main_left_line.gif" width=7></TD>
    <td vAlign=top> <table width="756" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="95" valign="middle"><%@ include file="top.jsp"%></td>
        </tr>
        <tr> 
          <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
              <tr> 
                <td width="165"><%@ include file="left.jsp" %></td>
                <td width="14"></td>
                <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td height="25"><div align="right" class="darkbluetext"> 
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td width="560" height="25"><div align="right">HOME 
                                  > <font color="#FF0000">快速分类</font></div></td>
                              <td>&nbsp;</td>
                            </tr>
                          </table>
                        </div></td>
                    </tr>
                    <tr> 
                      <td height="20">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td><table width="560" height="35" border="0" cellpadding="0" cellspacing="0" background="images/quickly.gif">
                          <tr> 
                            <td>&nbsp;</td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td><table border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td width="560" height="20"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td height="20"></td>
                                </tr>
                                <tr> 
                                  <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                                      <tr bgcolor="#CCCCCC">
										  <td height="5"></td>
									  </tr>
									  <tr>
                                        <td> 
                                          <%
								          sql="select * from class_big where habitus='"+"0"+"' and dustbin='"+"0"+"' order by id desc";
								          rs=data.executeQuery(sql);
								          int big=0;
								          String namebig="";
								          while(rs.next())
								         {
								          big=rs.getInt("id");
								          namebig=rs.getString("name");
								          %>
										  <table align="center" width="98%" cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF">
                                          <tr>
										  <td width="20%" height="20"><div align="center"><a href="showclass.jsp?big=<%=big%>&small=all"><font color="#FF0000"><%=namebig%></font></a></div></td>
										  <td width="80%">
										  <table align="center" width="96%" cellpadding="0" cellspacing="0" border="0">
										  <%
										  String small="select * from class_small where bigid='"+big+"' and dustbin='"+"0"+"' and habitus='"+"0"+"' order by id desc";
										  ResultSet srs=data.executeQuery(small);
										  int introw=0;
										  int intsmall=0;
										  String namesmall="";
										  while(srs.next())
										  {
										  introw++;
										  intsmall=srs.getInt("smallid");
										  namesmall=srs.getString("name");
										  %>
										  <%if(introw%6==1){%>
										  <tr>
										  <%}%>
										  <td height="20" width="16%"><a href="showclass.jsp?big=<%=big%>&small=<%=intsmall%>"><%=namesmall%></a></td>
										  <%if(introw%6==0){%>
										  </tr>
										  <%}}%>
										  </table>
										  </td>
										  </tr>
										  <tr bgcolor="#CCCCCC">
										  <td height="5" colspan="2"></td>
										  </tr>
										  </table>
										  <%}%>
                                        </td>
                                      </tr>
                                    </table> </td>
                                </tr>
                              </table></td>
                            <td></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td height="15"></td>
                    </tr>
                    <tr> 
                      <td> </td>
                    </tr>
                    <tr> 
                      <td>&nbsp; </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 + -