📄 itemsviewer.jsp
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@page import="netshop.util.*,netshop.businessobjects.*"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@taglib uri="/WEB-INF/struts-nested.tld" prefix="nested"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-template.tld" prefix="template"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<TABLE height=5 cellSpacing=0 cellPadding=0 width="98%" border=0>
<TBODY>
<TR>
<TD align="center" height=110><%--jsp:include page="general.jsp"--%>
<tiles:insert attribute="general" /></TD>
</TR>
<TR>
<TD align="center" height=2><%--jsp:include page="sort.jsp"--%> <%@include
file="/share/sort.jsp"%></TD>
</TR>
<TR>
<TD align="center" width="100%">
<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
<TBODY>
<TR>
<TD align="center" width="25%" height=134><!--jsp:include page=""-->
</TD>
</TR>
<!--logic:iterator-->
<logic:present name="<%=Constants.ITEM_CONTAINER_KEY%>"
scope="session">
<bean:define id="viewer" name="<%=Constants.ITEM_CONTAINER_KEY%>"
scope="session" type="netshop.util.ItemsViewer" />
<logic:iterate id="item" name="viewer" property="items"
offset="<%=new Integer(viewer.getBeginIndex()).toString()%>"
length="<%=new Integer(viewer.getItemCountPerPage()).toString()%>">
<TR>
<TD align="center" width="25%" height=134>
<TABLE cellPadding=0 width=760 border=0>
<TBODY>
<TR>
<TD align="center" width=180 height=100 rowSpan=6><html:link
page="/detailViewAction.do" target="blank"
styleClass="photo" paramId="itemId" paramName="item"
paramProperty="id">
<%--
<html:image height="80"
style="BORDER-RIGHT: #c0c0c0 0px solid; BORDER-TOP: #c0c0c0 0px solid; BORDER-LEFT: #c0c0c0 0px solid; BORDER-BOTTOM: #c0c0c0 0px solid"
border="0" page="<bean:write name="item" property="name"/>"
alt="" />
--%>
<html:img height="80"
style="
BORDER-RIGHT: #c0c0c0 0px solid; BORDER-TOP: #c0c0c0 0px
solid; BORDER-LEFT: #c0c0c0 0px
solid; BORDER-BOTTOM: #c0c0c0 0px
solid"
page="<%=((Item)pageContext.getAttribute("item")).getSmallImagePath() %>"
border="0"></html:img>
</html:link></TD>
<TD width=580 colSpan=2 height=25><html:link
page="/detailViewAction.do" target="blank" paramId="itemId"
paramName="item" paramProperty="id" target="blank"
style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; COLOR: #000080">
<bean:message key="item.name" />
<bean:write name="item" property="name" />
</html:link></TD>
</TR>
<TR>
<TD width=580 colSpan=2 height=25>
<P
style="MARGIN-TOP: 8px; MARGIN-BOTTOM: 8px; LINE-HEIGHT: 150%">
<bean:write name="item" property="feature" /></P>
</TD>
</TR>
<TR>
<TD style="FONT-SIZE: 10pt" width=580 colSpan=2 height=25><bean:message
key="item.baseprice" /> ¥ <bean:write name="item"
property="basePrice" />
<TR>
<TD width=290 height=7><html:link page="/orderAction.do"
paramId="itemId" paramName="item" paramProperty="id">
<html:img width="79" height="23" border="0"
page="/images/order.gif" />
</html:link> <html:link page="/main/main.jsp">
<html:img width="79" height="23" border="0"
page="/images/com.gif" />
</html:link></TD>
<TD width=290 height=7> </TD>
</TR>
<TR>
<TD width=580 background="<%=request.getContextPath()%>/images/spacer.gif" colSpan=2
height=2></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</logic:iterate>
</logic:present>
<!--logic:iterator-->
</TBODY>
</TABLE>
</TD>
</TR>
<logic:present name="<%=Constants.ITEM_CONTAINER_KEY%>"
scope="session">
<logic:notEmpty name="<%=Constants.ITEM_CONTAINER_KEY%>"
scope="session" property="items">
<html:form action="/showPagesAction.do?method=toPage">
<TR>
<TD align="center" width="98%" height=23><bean:message
key="item.viewer.page"
arg0="<%=new Integer(((ItemsViewer)pageContext.getAttribute("viewer")).getPageId()).toString()%>"
arg1="<%=new Integer(((ItemsViewer)pageContext.getAttribute("viewer")).getTotalPage()).toString()%>" />
<%ItemsViewer viewer = (ItemsViewer) pageContext.getAttribute("viewer"); %>
<%
if (viewer.hasPrevious()) {
pageContext.setAttribute("previous", "previous");
%> <html:link page="/showPagesAction.do" paramId="method"
paramName="previous">
<bean:message key="page.previous" />
</html:link> <%} else { %> <bean:message
key="page.previous" /> <%} %> <%
if (viewer.hasNext()) {
pageContext.setAttribute("next", "next");
%> <html:link page="/showPagesAction.do" paramId="method"
paramName="next">
<bean:message key="page.next" />
</html:link> <%} else { %> <bean:message
key="page.next" /> <%} %> <bean:message
key="page.turn.to" /> <html:text value="2" property="pageId"
style="TEXT-ALIGN: center" size="1" /> <html:image
property="submit" page="/images/go.gif" /></TD>
</TR>
</html:form>
</logic:notEmpty>
</logic:present>
</TBODY>
</TABLE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -