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

📄 casioproductview.jsp

📁 shopping home JSP system
💻 JSP
字号:
<br>
      <table width="550" border="0" cellspacing="0" cellpadding="0">
        <tr>
         
          <%
            	if("description".equals(displayType)) {
            %>
        		<td width="87" height="20" align="center" background="<%=CONTEXT%>/img/casio_pic44.gif">商品描述</td>
          	<%
            	} else {
            %>	
             <td width="87" height="20" align="center" background="<%=CONTEXT%>/img/casio_pic47.gif">
             	<a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=description#field">商品描述</a></td>
             
            <%
            	}
            %>
            
            <%
            	if("spsx".equals(displayType)) {
            %>
        		<td width="87" height="20" align="center" background="<%=CONTEXT%>/img/casio_pic44.gif">商品备注</td>
          	<%
            	} else {
            %>	
             <td width="87" height="20" align="center" background="<%=CONTEXT%>/img/casio_pic47.gif">
             	<a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=spsx#field">商品备注</a></td>
             
            <%
            	}
            %>	
            
            <%
            	if("djdst".equals(displayType)) {
            %>
        		<td width="87" height="20" align="center" background="<%=CONTEXT%>/img/casio_pic44.gif">多角度视图</td>
          	<%
            	} else {
            %>	
             <td width="87" height="20" align="center" background="<%=CONTEXT%>/img/casio_pic47.gif">
             	<a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=djdst#field">多角度视图</a></td>
             
            <%
            	}
            %>	
            
            <%
            	if("yhpl".equals(displayType)) {
            %>
        		<td width="87" height="20" align="center" background="<%=CONTEXT%>/img/casio_pic44.gif">用户评论</td>
          	<%
            	} else {
            %>	
             <td width="87" height="20" align="center" background="<%=CONTEXT%>/img/casio_pic47.gif">
             	<a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=yhpl#field">用户评论</a></td>
             
            <%
            	}
            %>	
            
            <%
            	if("xgpj".equals(displayType)) {
            %>
        		<td width="87" height="20" align="center" background="<%=CONTEXT%>/img/casio_pic44.gif">相关配件</td>
          	<%
            	} else {
            %>	
             <td width="87" height="20" align="center" background="<%=CONTEXT%>/img/casio_pic47.gif">
             	<a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=xgpj#field">相关配件</a></td>
             
            <%
            	}
            %>	
            	
           <%
            	if("spsx1".equals(displayType)) {
            %>
        		<td width="87" height="20" align="center" background="<%=CONTEXT%>/img/casio_pic44.gif">商品属性</td>
          	<%
            	} else {
            %>	
             <td width="87" height="20" align="center" background="<%=CONTEXT%>/img/casio_pic47.gif">
             	<a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=spsx1#field">商品属性</a></td>
             
            <%
            	}
            %>
		  <td width="28"></td>
        </tr>
      </table>
      <table width="550" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td bgcolor="CCCBCB" height=1></td>
        </tr>
        <tr>
          <td align="center" background="<%=CONTEXT%>/img/casio_pic46.gif">
            
            <table width="100%"  border="0" cellspacing="0" cellpadding="10">
            <tr>
              <td align="left">
              <%
				                		if("description".equals(displayType))  {
				                	%>
				                	<%=bean.getDescription() != null ? bean.getDescription() : ""%>
				                	
				       <%
				                  	} else if("spsx".equals(displayType)) {
				                  %>
				                  <%=bean.getNote() != null ? bean.getNote() : ""%>
				                 	<%
				                  	} else if("djdst".equals(displayType)) {
				                  		TemplateCategory category = ProductHelper.getTemplateCategoryById("4");
				                  %>
				                  	<%
														  	//按照各个分类显示字段数据
														  	List fieldDatas = bean.getFieldsData(category.getId(), category.getType());
														  	
														  	Iterator it= fieldDatas.iterator();
																								
														  	while(it.hasNext()) {
														  		 TemplateBlobField blobField = (TemplateBlobField)it.next();
														  		 
														  %>														  
					                      <%
														     	if(!StringUtil.isEmpty(blobField.getFieldValue())) {
														     %>
														      <img src="<%=CONTEXT%>/<%=blobField.getFieldValue()%>">
														     <%
														     	}
														     %>             
															<%
																
														  	} 
														  %>	
									      	<%
				                  	} else if("yhpl".equals(displayType)) {
				                  %>
				                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <SCRIPT>
	                  	function submitForm() {
							    			if(document.all['bean.subject'].value == "") {
							    				alert("请填写评论人主题。");
							    				document.all['bean.subject'].focus();
							    				return false;
							    			}
							    			
							    			if(document.all['bean.appUser'].value == "") {
							    				alert("请填写评论主题。");
							    				document.all['bean.appUser'].focus();
							    				return false;
							    			}
							    			
							    			fgproductAppraisalForm.submit();
							    		}
						    		</SCRIPT>
                    <TR> 
                    	<html:form  method="post" action="/fg/product/fgproductAppraisal" target="_blank">
				        	 		<html:hidden property="channelId" value="<%=currentChannel.getId()%>"/>
											<input type="hidden" name="actionType" value="fgsave"/>
											<html:hidden property="bean.productId" value="<%=bean.getId()%>"/>
											<html:hidden property="currentPageNo"/> 
                    	<TD vAlign=top align=center> 
                    		<TABLE class=detaiIndex_table01 height=25 cellSpacing=0 cellPadding=0 width="95%" align=center border=0>
													<TR> 
	                         	<TD>
                            	<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                              	<tr>
                                	<td><FONT color=#ff3300>※ </FONT><STRONG>发表评论</STRONG></td>
                                </tr>
                                </table>
                              </TD>
                            </TR>
                          </TABLE>
                          <TABLE cellSpacing=0 cellPadding=0 width="95%" border=0>
                          	<TR> 
                            	<TD width="4%"> 
                            		<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                                   <TR> 
                                   	 <TD width="100%" height=30>  评论人: 
                                    		<html:text property="bean.appUser"  size="15" maxlength="32"/>
																				主题: <html:text property="bean.subject"  size="25" maxlength="32"/>
																			</TD>
																		</TR>
                                </TABLE></TD>
                                </TR>
                                <TR> 
                                  <TD align=middle><html:textarea property="bean.description" cols="75" rows="6"/></TEXTAREA> 
                                  </TD>
                                </TR>
                                <TR> 
                                  <TD align=center height=30><INPUT name="button" type=button onclick=javascript:submitForm() value=提交></TD>
                                </TR>
                              
                            </TABLE>
							</TD>
							</html:form> 
                        </TR>
                    
                  </TABLE>			  
                    					<%
				                  	} else if("xgpj".equals(displayType)) {
				                  		TemplateCategory category = ProductHelper.getTemplateCategoryById("3");
				                  %>
				                  	<%
														  	//按照各个分类显示字段数据
														  	List fieldDatas = bean.getFieldsData(category.getId(), category.getType());
														  	Iterator it= fieldDatas.iterator();
																								
														  	while(it.hasNext()) {
														  		 TemplateTextField field = (TemplateTextField)it.next();
														  		 if(!StringUtil.isEmpty(field.getFieldValue())) {
														  %>
														  <%=field.getFieldName()%> ->
					                     <%=field.getFieldValue()%>
					                    
															<%
																	}
														  	} 
														  %>
														   <%
				                  	} else if("spsx1".equals(displayType)) {
				                  %>
				                  <%=bean.getNote() != null ? bean.getNote() : ""%>	
                          <%
				                  	}
				                  %>
              </td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td><img src="<%=CONTEXT%>/img/casio_pic45.gif" width="550" height="29"></td>
        </tr>
      </table>
    <br>
    
    <%
			 List productRelation = (List)request.getAttribute("existedlist");
			%>
    <table width="550"  border="0" cellspacing="0" cellpadding="4">
     
      <tr>
        <td align="left" bgcolor="f2f2f2"><img src="<%=CONTEXT%>/img/pic44.gif" width="20" height="14" align="absmiddle">相关商品</td>
      </tr>
	   <tr>
          <td height=1 bgcolor="e1e1e1"></td>
        </tr>
    </table>
    
    <%
						   if(productRelation!=null&& productRelation.size()>0)
						   {
                           %>
    <table width="550"  border="0" cellspacing="2" cellpadding="0">
       <%
                           for(int i=0;i<Math.ceil((double)productRelation.size() / 4.0);i++){
							   
						  %>
      
      <tr>
      	<%
      	    for(int j=0;j<4&&j<productRelation.size();j++){
      	    Product product = null;
						if(i * 4 + j < productRelation.size()) {
	        				
      	  product = (Product)productRelation.get( 4 * i + j);
      	%>
        <td align="center">
        	
        	
        	
        	<a href="<%=PRODUCTVIEW%>&bean.id=<%=product.getId()%>"target="_blank"><%
							          			if(!StringUtil.isEmpty(product.getPopPicture())) {
							          		%><img src="<%=CONTEXT%>/<%=product.getPopPicture()%>" border="0"><%
							          			} else {
							          		%><img src="userfiles/product/nophoto.gif" border="0">
							          		<%
							          			}
							          		%></a>
            <br>       
        	<a href="<%=PRODUCTVIEW%>&bean.id=<%=product.getId()%>"  class="shop" target="_blank"><%=FormatHelper.substring(product.getName(), 18)%></a><br>
            <font color="red"> ¥<%=product.getListPrice()%></font></td>
            	<%
            	}
            }	
            	%>
        </tr>
       <%
        }
        %>
    </table>
    <%
    }
    %>

⌨️ 快捷键说明

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