📄 itemshow.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String contextPath = request.getContextPath();
%>
<script>
function dobuy(id){
location.href="<%=contextPath%>/carServlet?task=add&itemid="+id;
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
<head>
<title>商品详细信息</title>
<link href="<%=contextPath%>/css/css.css" type="text/css" rel="stylesheet" />
<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">
</head>
<body>
<table width="100%" border="0" bordercolor="#000000" >
<c:if test="${item.filepath!=null}">
<tr align ="center">
<td align ="center" width="180" height="190">
<A href="${pageContext.request.contextPath}/${item.filepath}" target="_blank">
<img name="ds" src="${pageContext.request.contextPath}/${item.filepath}" width="180" height="190" alt="">
</A>
</td>
</tr>
<tr>
<td>
<img name="ds" src="${pageContext.request.contextPath}/image/big.gif" width="18" height="20" alt="">
<a href="${pageContext.request.contextPath}/${item.filepath}" target="_blank">
<b>点击查看大图片</b>
</a>
</td>
</tr>
</c:if>
<c:if test="${item.filepath==null}">
<tr align ="center">
<td align ="center" width="180" height="190"><A href="${pageContext.request.contextPath}/upload/nothing.jpg" target="_blank"><img name="ds" src="${pageContext.request.contextPath}/upload/nothing.jpg" width="180" height="190" alt=""></A></td>
</tr>
<tr>
<td colspan="3"><img name="ds" src="${pageContext.request.contextPath}/image/big.gif" width="18" height="20" alt="">
<a href="${pageContext.request.contextPath}/upload/nothing.jpg" target="_blank" >
<b>点击查看大图片</b></a></td>
</tr>
</c:if>
<tr ><td colspan="6" ><hr><td></tr>
<tr><td> <b>商品名称</b>: ${item.title}</td></tr>
<tr><td colspan="6" ><br><td></tr>
<tr><td> <b>商品大类名称</b>: ${item.classname}</td></tr>
<tr><td colspan="6" ><br><td></tr>
<tr><td> <b>商品小类名称</b>: ${item.nclassname}</td></tr>
<tr><td colspan="6" ><br><td></tr>
<tr><td> <b>商品描述</b>: ${item.content}</td></tr>
<tr><td colspan="6" ><br><td></tr>
<tr><td> <b>商品价格</b>: ${item.viewPrice}</td></tr>
<tr><td colspan="6" ><br><td></tr>
<tr><td> <b>商品备注</b>: ${item.remark}</td></tr>
<tr><td colspan="6" ><br><td></tr>
<tr><td> <b>商品添加时间</b>: ${item.addtime} # <a href="javascript:dobuy(${item.itemid});"><img name="ds" src="${pageContext.request.contextPath}/image/buycar.gif" alt=""></a></td></tr>
<tr ><td colspan="6" ><hr><td></tr>
<tr ><td colspan="6" align="center" ><INPUT type="button" class="button" onclick="history.back();" value="返回"><td></tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -