⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fgproductappraisal.jsp

📁 shopping home JSP system
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page contentType="text/html;charset=GBK" %>
<%@ taglib uri="/bean" prefix="bean" %>
<%@ taglib uri="/html" prefix="html" %>
<%@ taglib uri="/logic" prefix="logic" %>
<%@ taglib uri="/keyshop" prefix="keyshop" %>
<%@include file="/jsp/pub/pub.jsp"%>
<jsp:useBean id="fgproductAppraisalForm" class="com.keyshop.shop.product.controller.ProductAppraisalForm" scope="request"/>
<%
	ProductAppraisal fgproductAppraisal = (ProductAppraisal)fgproductAppraisalForm.getBean();
	Product product = (Product)fgproductAppraisalForm.getProduct();
%>
<%
String cssName = "";
com.keyshop.shop.system.model.SystemCss css = com.keyshop.shop.system.util.SystemConst.getSystemCss(request);
if(css != null) {
	cssName = css.getCssName();
}
com.keyshop.shop.system.model.ViewConfig viewConfigComm = com.keyshop.shop.system.manager.SystemManager.getViewConfig(request);
%>
<html>
<head>
<title><%=product.getName()%>用户评论</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link href="<%=CONTEXT%>/<%=cssName%>" rel="stylesheet" type="text/css">
<script>
	<%
		if(request.getAttribute("existed") != null) {
	%>
		alert("您已经对改商品发表过品论。")
	<%	
		}
	%>
</script>

<script>
	function submitForm() {
		if(document.all['bean.subject'].value == "") {
			alert("请填写主题。");
			document.all['bean.subject'].focus();
			return;
		}
		
		if(document.all['bean.appUser'].value == "") {
			alert("请填写评论人。");
			document.all['bean.appUser'].focus();
			return;
		}		
		if(document.all['bean.good'].value == "") {
			alert("请填写主题。");
			document.all['bean.good'].focus();
			return;
		}
		
		if(document.all['bean.shortArea'].value == "") {
			alert("请填写评论人。");
			document.all['bean.shortArea'].focus();
			return;
		}	
		
		fgproductAppraisalForm.submit();
	}
	
	<%
		if("true".equals(request.getAttribute("save_success"))) {
	%>
		alert("评论成功。")
	<%
		}
	%>
</script> 
</head>
<body leftmargin="0" topmargin="0">
	<br><br><br>
	<table align="center" border="0" cellpadding="0" cellspacing="0">
	  <tr>
	    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i01.gif" width="10" height="10"></td>
	    <td  background="<%=CONTEXT%>/img/QQ/i03.gif"></td>
	    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i02.gif" width="10" height="10"></td>
	  </tr>
	  <tr>
	    <td  background="<%=CONTEXT%>/img/QQ/i04.gif">&nbsp;</td>
	    <td>
	    	<table width="650" border="0" align="center" cellpadding="4" cellspacing="0">
				  <tr>
				    <td width="266"><img src="<%=CONTEXT%>/<%=viewConfigComm.getLog_image()%>" ></td>
				    <td valign="bottom"><font color="red"><b>
				    	      <%
											if(viewConfigComm.getSys_tel() != null) {
										%>
										  订购电话:
											<%=viewConfigComm.getSys_tel()%><br>
										<%
											}
										%>
				            <%
											if(viewConfigComm.getSys_qq() != null) {
										%>
				             客 服 QQ:
											<%=viewConfigComm.getSys_qq()%><br>
										<%
											}
										%>
				      </b></font></td>    
				  </tr>
				</table><br>
				<table width="650" border="0" align="center">
				  <tr>
				    <td>
				    	您要评论的商品是:
				    	<font color="red"><%=product.getName()%></font><br>
				    	<%if(!StringUtil.isEmpty(product.getModel())){%> 
          	型号:<font color="red"><%=product.getModel()%></font>
          	<%}%>
          	<%if(!StringUtil.isEmpty(product.getProductNo())){%>
          	编号:<font color="red"><%=product.getProductNo()%></font>
          	<%}%> 
          	<%if(!StringUtil.isEmpty(product.getSpec())){%>
          	品牌: <font color="red"><%=product.getSpec()%></font>
          	<%}%><br>
				     售价:<font color="red">¥<%=product.getUnitPrice()%></font></td>
				  </tr>
				</table>
				<table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
				  <tr>
				    <td height="25" bgcolor="2B579E" align=center><font color=white size=2><b>商品评论</b></font></td>
				  </tr>
				</table>
				<html:form  method="post" action="/fg/product/fgproductAppraisal" target="_blank">
			  <input type="hidden" name="actionType" value="fgsave"/>
				<table width="100%"  border="0" cellpadding="0" cellspacing="0">
		      <tr> 
		        <td align="right">评论等级:</td>
		        <td> 
		        	<input type="radio" name="bean.appLevel" value="-2">
		          <input type="radio" name="bean.appLevel" value="-1">
		          较差 
		          <input type="radio" name="bean.appLevel" value="0" checked="checked">
		          一般 
		          <input type="radio" name="bean.appLevel" value="1">
		          不错 
		          <input type="radio" name="bean.appLevel" value="2">
		          很好<strong></strong>
		         </td>
		      </tr>
		      <tr> 
		        <td align="right">主题:</td>
		        <td> <input type="text" name="bean.subject" maxlength="32" size="20" value=""> 
		          <strong><font color="#FF9900">* </font></strong>(50个字符以内)</td>
		      </tr>
		      <tr> 
		        <td align="right">产品优点:</td>
		        <td> <input type="text" name="bean.good" maxlength="32" size="20" value=""> 
		          <strong> <strong><font color="#FF9900">* </font></strong></strong>(100个字符以内)</td>
		      </tr>
		      <tr> 
		        <td align="right">产品缺点:</td>
		        <td> <input type="text" name="bean.shortArea" maxlength="32" size="20" value=""> 
		          <strong><font color="#FF9900">* </font></strong>(100个字符以内)</td>
		      </tr>
		      <tr> 
		        <td align="right">详细评论:</td>
		        <td> <textarea name="bean.description" cols="50" rows="4"></textarea> 
		        </td>
		      </tr>
		      <tr> 
		        <td align="right">评论人:</td>
		        <td> <input type="text" name="bean.appUser" maxlength="32" size="10" value=""> 
		        </td>
		      </tr>
		      <tr align="center"> 
		        <td height="40" colspan="2">
		        	<input name="button" type="button" onclick="javascript:submitForm()" value="提交"> 
		          <input type="reset" name="Submit2" value="取消"></td>
		      </tr>
		    </table>
		    </html:form>
			  <table width="90%" border="0" align="center" cellpadding="4" cellspacing="2">
				<%
				List appraisals = ProductHelper.getProductAppraisal(product.getId(), new Pager());
				if(appraisals != null && appraisals.size() > 0) {
				for(int i=0; i<appraisals.size(); i++) {
				ProductAppraisal app = (ProductAppraisal)appraisals.get(i);
				%>
				  <tr>
						<td width="97%" colspan="3" align="left">
							第<%=i+1%>楼,<font color="8A8A8A"><%=app.getAppUser()%></font>,<strong><%=app.getSubject()%></strong>
							<br>
							评 论 :<font color="47803C"><%=app.getDescription()%></font> 
						</td>
				  </tr>
				<%
					}
				}
				%>
				</table>  
	    </td>
	    <td background="<%=CONTEXT%>/img/QQ/i05.gif"></td>
	  </tr>
	  <tr>
	    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i06.gif" width="10" height="10"></td>
	    <td background="<%=CONTEXT%>/img/QQ/i08.gif"></td>
	    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i07.gif" width="10" height="10"></td>
	  </tr>
	</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -