sell_resultten.jsp

来自「JAVA诚信网络购物中心源码」· JSP 代码 · 共 98 行

JSP
98
字号
<%@ page contentType="text/html; charset=gb2312" %>
<%@page import="java.util.*"%>
<%@page import="com.domain.GoodsForm"%>
<jsp:useBean id="goods" scope="page" class="com.dao.GoodsDao"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>电子商城</title>
<style type="text/css">
<!--
.style1 {
	font-size: 16px;
	font-weight: bold;
}
-->
</style>
</head>

<body>
<table width="755" height="150%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="98"><div align="center">
    <jsp:include page="topOne.jsp"/></div>    </td>
  </tr>
  <tr>
    <td height="43" align="center" valign="middle" background="image/daohang.jpg"><jsp:include page="topTwo.jsp"/></td>

  </tr>
  <tr>
    <td height="847"><table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="193" height="638" rowspan="2" valign="top" background="image/zuocedaohangbeijing.jpg">

		<jsp:include page="left.jsp"/>		</td>
		<%
        List list=goods.selectGoodsNumber();
		int number=list.size();
		if(number>10){
		number=10;
		}%>
        <td width="75%" height="50" align="center" valign="middle" background="image/link.jpg" bgcolor="#FFFFFF"><span class="style1">销售商品排行 TOP<%=number%></span></td>

      </tr>
      <tr bgcolor="#FFFFFF">
        <td valign="top"  height="613">
		<br>

	
    
		
		
		
		    <%  for(int i=0;i<number;i++){
          GoodsForm form=(GoodsForm)list.get(i);
        %>
        &nbsp;&nbsp;<strong>NO <%=i+1%></strong>
        <table width="99%" height="149"  border="2" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC"   >
          <tr>
            <td height="145" bordercolor="#666666" >
              <table width="96%" height="120"  border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#EFEFEF" >
                <tr>
                  <td width="36%" rowspan="4" height="120"><div align="center">
                      <input name="pricture<%=i%>" type="image" src="<%=form.getPicture()%>" width="110" height="100">
                  </div></td>
                  <td width="64%" height="30"><div align="center"><%=form.getName()%></div></td>
                </tr>
                <tr>
                  <td height="30"><div align="center"><font color="#F14D83">单价:<%=form.getNowPrice()%>元</font></div></td>
                </tr>
                <tr>
                  <td height="30"><div align="center"><%=form.getIntroduce()%></div></td>
                </tr>
                <tr>
                  <td height="30" class="linkBlack"><div align="center">
                      <%if(session.getAttribute("form")!=null||session.getAttribute("id")!=null){%>
                      <a href="#" onClick="window.open('goodsAction.do?action=16&id=<%=form.getId()%>','','width=500,height=200');">查看详细内容</a></div>
                      <%}else{%>
                      <div align="center">登录后才能购买</div></td>
                  <%}%>
                </tr>
            </table></td>
          </tr>
        </table>
		<br>
		<%}%>
		
		
		</td>
      </tr>
    </table></td>
  </tr>
  <tr  bgcolor="#FFFFFF">
    <td height="100"><p align="center"><jsp:include page="downNews.jsp"/></p></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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