📄 prodocts.jsp
字号:
<%@ page language="java" import="java.util.*,com.accpedu.LHcompany.dao.*,com.accpedu.LHcompany.entity.*" pageEncoding="gbk"%>
<html>
<head>
<style type="text/css">
#Layer2 {
position:absolute;
width:200px;
height:220px;
left:30px;
top:220;
z-index:1;
}
#Layer3 {
position:absolute;
width:200px;
height:115px;
left:0px;
top:0px;
z-index:1;
}
#Layer4 {
position:absolute;
width:200px;
height:115px;
left:200px;
top:15px;
z-index:1;
border-left:solid;
border-left-width:2px;
border-left-color:#CCFFFF;
}
.STYLE3 {font-family: "宋体"; font-size: 12px; }
.STYLE5 {font-family: "宋体"; font-size: 12px; color: red; }
-->
</style>
</head>
<body>
<%@ include file="top.jsp" %>
<div id="Layer2">
<span class="STYLE5">首页>商品展示>详细信息</span><br>
<div id="Layer3">
<%@ include file="left.jsp" %>
</div>
<%
int x=Integer.parseInt(request.getParameter("id"));
productDao pd=new productDao();
ArrayList<product> al=pd.select2(x);
int MaxPages=pd.selectPage();
%>
<div id="Layer4" >
<%
for(int i=0;i<al.size();i++)
{
%>
<table width=500>
<tr>
<td align="center"><img src="image/<%=al.get(i).getPicture() %>"></td>
<td>
<table width="236" height="165" border=2 cellpadding="0" cellspacing="0" bordercolor="#99FFCC" style="border-style:double; border-color:#CCFFFF; border-width:2px;">
<tr>
<td width="87"><span class="STYLE3" >产品编号</span></td>
<td width="121"><span class="STYLE3"><%=al.get(i).getProductID() %></span></td>
</tr>
<tr>
<td><span class="STYLE3">产品名称</span></td>
<td><span class="STYLE3"><%=al.get(i).getName() %></span></td>
</tr>
<tr>
<td><span class="STYLE3">产品品牌</span></td>
<td><span class="STYLE3"><%=al.get(i).getBrand() %></span></td>
</tr>
<tr>
<td><span class="STYLE3">产品型号</span></td>
<td><span class="STYLE3"><%=al.get(i).getModel() %></span></td>
</tr>
<tr>
<td><span class="STYLE3">产品价格</span></td>
<td><span class="STYLE3"><%=al.get(i).getPrice() %></span></td>
</tr>
<tr>
<td><span class="STYLE3">产品介绍</span></td>
<td><span class="STYLE3"><%=al.get(i).getDescription() %></span></td>
</tr>
</table>
<%} %>
</td></tr>
</table>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -