WebContent/qiantai/goods/goodsDetail.jsp

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<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 href="<%=path %>/css/layout.css" type="text/css" rel="stylesheet" />
		
		<script language="JavaScript" src="<%=path %>/js/public.js" type="text/javascript"></script>
		<script type="text/javascript">
	        function buy1()
	        {
	            <s:if test="#session.user==null">
	                  alert("请先登录");
	            </s:if>
	            <s:else>
	            if(document.buy.quantity.value=="")
	            {
	                alert("请输入购买数量");
	                return false;
	            }
	            document.buy.submit();
	            </s:else>
	        }
	    </script>
	</head>

	<body>
		<jsp:include flush="true" page="/qiantai/inc/incTop.jsp"></jsp:include>
		<div class="page_row">
			<!--左边的 -->
			<div class="page_main_msg left">		
		        <div class="left_row">
		            <div class="list pic_news">
		  	                <div class="list_bar">&nbsp;详情</div>
						  	<form action="<%=path %>/addToCart.action" method="post" name="buy">
                                  <table border="0" cellpadding="6">
                                      <tr><td width="30"></td><td style="font-size: 11px;">品名:</td><td style="font-size: 11px;"><s:property value="#request.goods.goodsName"/></td></tr>
                                      <tr><td width="30"></td><td style="font-size: 11px;">简介:</td><td style="font-size: 11px;"><s:property value="#request.goods.goodsMiaoshu" escape="false"/></td></tr>
                                      <tr><td width="30"></td><td style="font-size: 11px;">价格:</td><td style="font-size: 11px;"><s:property value="#request.goods.goodsShichangjia"/></td></tr>
                                      <tr><td width="30"></td><td style="font-size: 11px;">图片:</td><td style="font-size: 11px;"><img width="300xp" height="300xp" src="<%=basePath %>/<s:property value="#request.goods.goodsPic"/>"/></td></tr>
                                      
                                     
                                     
                                      <tr><td width="30"></td><td style="font-size: 11px;">评价:</td><td style="font-size: 11px;">
                                       <s:iterator value="#request.pingItemList" id="ping">
                                        <hr style="border: 1px dashed #ccc; width: 100%; height: 1px;" />
                                        <s:property value="#ping.info"/>&nbsp;&nbsp;&nbsp;<s:property value="#ping.adddate"/> &nbsp;&nbsp;&nbsp; <s:property value="#ping.loginname"/>
后面还有 66 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。