📄 8062f2a89e0a001c1ab6bb783faf21cc
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.*"%>
<%@ page import="com.car.bean.*"%>
<%@ page import="java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="images/CSS.CSS" rel="stylesheet" type="text/css">
<link href="images/css1.css" rel="stylesheet" type="text/css">
<link href="images/style.css" rel="stylesheet" type="text/css">
</head>
<jsp:useBean id="cart" scope="request" class="com.car.bean.Productbean"/>
<body>
<table width="530" border="0" cellspacing="0">
<tr>
<th height="22" colspan="2" scope="col"><div align="left" class="style4"><img src="images/Star.gif" width="13" height="13"> 首页推荐</div></th>
</tr>
<%! int p=0 ;%>
<%
String sql="select * from product_tab";
ArrayList rs=cart.getProduct(sql);
int count=1;int p=0;
for (int i=0;i<rs.size()/2;i++){
%>
<tr>
<%for (int j=1;j<=2;j++){
Productbean temp=(Productbean)rs.get(p);
%>
<td width="257" height="98" align="left" valign="top">
<table width="257" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" rowspan="5" scope="col"><div align="left"><img src="<%= temp.getImage1() %>" width="150" height="50"></div></td>
<td width="10" class="diyColor3" scope="col"> </td>
<td width="96" class="diyColor3" scope="col">
<%= temp.getProductname() %>
</td>
</tr>
<tr>
<td></td>
<td>市场价:<%= temp.getMarketprice() %></td>
</tr>
<tr>
<td> </td>
<td>会员价:<%= temp.getMemberprice() %></td>
</tr>
<tr>
<td> </td>
<td>节省:<%= temp.getMarketprice()-temp.getMemberprice()%></td>
</tr>
<tr>
<td> </td>
<td><div align="left"><a href="/Shoppingcar/carservlet?name=<%= temp.getProductname() %>&marketprice=<%= temp.getMarketprice() %>&memberprice=<%= temp.getMemberprice() %>"><img src="images/addto.gif" width="96" height="24" border="0"></a><br>
<br>
<br>
</div></td>
</tr>
</table></td>
<% p++;
if (p>=8){p=7;}
} %>
</tr>
<%
}%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -