📄 goodbrowse.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ page import="eshopsys.goodtype.biz.*" %>
<%@ page import="eshopsys.goodtype.model.*" %>
<%@ page import="eshopsys.good.biz.*" %>
<%@ page import="eshopsys.good.model.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setCharacterEncoding("gb2312");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'showGoodTypeBrowse.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type="text/css">
<!--
.STYLE5 {font-size: 12px}
.STYLE7 {color: #003300; font-weight: bold; }
.STYLE8 {font-size: 14px}
-->
</style>
</head>
<body>
<jsp:include page="showGoodTypeBrowse.jsp"></jsp:include><hr><br>
<%
int goodtype=Integer.parseInt(request.getParameter("goodtype").trim());
GoodTypeBiz goodtypebiz= new GoodTypeBiz();
GoodTypeEntity[] goodtypes=(GoodTypeEntity[])(goodtypebiz.findByQueryString("select * from tbl_goodtype where goodtypeid="+goodtype));
goodtypebiz.CloseConnection();
%>
<span class="STYLE5"><span class="STYLE8">具体商品信息:
<%if(goodtypes!=null)
out.println(goodtypes[0].getGoodType());
%>
</span><br>
<%
GoodBiz goodbiz= new GoodBiz();
GoodEntity[] goods=(GoodEntity[])(goodbiz.findByQueryString("select * from tbl_good where goodtypeid="+goodtype));//
goodbiz.CloseConnection();
%>
</span>
<table width="681" border="1" cellpadding="0" cellspacing="1">
<tr>
<td width="44" bgcolor="#999999" class="STYLE5"><div align="center" class="STYLE7">编号</div></td>
<td width="127" bgcolor="#999999" class="STYLE5"><div align="center" class="STYLE7">名称</div></td>
<td width="66" bgcolor="#999999" class="STYLE5"><div align="center" class="STYLE7">原价</div></td>
<td width="72" bgcolor="#999999" class="STYLE5"><div align="center" class="STYLE7">优惠价</div></td>
<td width="62" bgcolor="#999999" class="STYLE5"><div align="center" class="STYLE7">库存数量</div></td>
<td width="144" bgcolor="#999999" class="STYLE5"><div align="center" class="STYLE7">产地</div></td>
<td width="55" bgcolor="#999999" class="STYLE5"><div align="center" class="STYLE7">图片</div></td>
<td width="59" bgcolor="#999999" class="STYLE5"><div align="center" class="STYLE7">详细介绍</div></td>
</tr>
<%
if(goods!=null)
{
for(int i=0;i<goods.length;i++)
{
%>
<tr>
<td class="STYLE5"><div align="center"><%=goods[i].getGoodId() %></div></td>
<td class="STYLE5"><div align="center"><%=goods[i].getGoodName() %></div></td>
<td class="STYLE5"><div align="center"><%=goods[i].getGoodUnitPrice() %></div></td>
<td class="STYLE5"><div align="center"><%=goods[i].getGoodPromotionPrice() %></div></td>
<td class="STYLE5"><div align="center"><%=goods[i].getGoodStorageNum() %></div></td>
<td class="STYLE5"><div align="center"><%=goods[i].getGoodPlace() %></div></td>
<td class="STYLE5"><div align="center"><a href='<%="/Eshop/SysManager/Good/showImage.jsp?image="+goods[i].getGoodImage()+"&goodtype="+goodtype %>'>查看图片</a></div></td>
<td class="STYLE5"><div align="center"><a href='<%="/Eshop/SysManager/Good/showGoodDetail.jsp?goodid="+goods[i].getGoodId()+"&goodtype="+goodtype %>'>详细介绍</a></div></td>
</tr>
<%}
}
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -