<%@page contentType="text/html;charset=GBK" %>
<!--商品信息-->
<script>
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--
var bV=parseInt(navigator.appVersion);
var NS4=(document.layers) ? true : false;
var IE4=((document.all)&&(bV>=4))?true:false;
var ver4 = (NS4 || IE4) ? true : false;
function expandIt(){return}
function expandAll(){return}
function nomsg(){self.status="";}
if(ver4){
  document.write("<SCR"+"IPT LANGUAGE=\"JavaScript\" SRC=\"rsmenu.js\"></SCR"+"IPT>");
}
//-->
</SCRIPT>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
      <td align="right" valign="top">
      	<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr HIGHT="25"> 
            <td width="3%">&nbsp;</td>
            <!--商品分类导航-->
            <td width="97%">
	           <a href="<%=CONTEXT%>/index.jsp" class="leftIndex_txt01">首页</a>-> 
						<%
						List parentCategoryList = (List)request.getAttribute("categoryList");
						if(parentCategoryList != null && parentCategoryList.size()  >0 ) {
							for(int i=parentCategoryList.size()-1; i>=0; i--) {
							  String[] cs = (String[])parentCategoryList.get(i);
							if(i != parentCategoryList.size()-1) {
							  %>
								&gt;
								<%
								}													
								if(i == 0 && !StringUtil.isEmpty(cs[1]) && !StringUtil.isEmpty(cs[0])) {							
								%>
								<a href="<%=PRODUCTLIST%>&categoryId=<%=cs[0]%>" class="leftIndex_txt0001" > <%=cs[1]%> </a>
								<%
								} else if(!StringUtil.isEmpty(cs[1]) && !StringUtil.isEmpty(cs[0])){
									String url = PRODUCTLIST + "&categoryId=" + cs[0];
									
									if (!StringUtil.isEmpty(cs[2])) {
										url = CONTEXT + "/" + cs[2];
									}
								%>
								<a href="<%=url%>" class="leftIndex_txt01"> <%=cs[1]%> </a>
								<%
									    }
										}
									}
							%>
            </td>
          </tr>
          <tr> 
            <td colspan="2" height=5></td>
          </tr>
        </table>
        <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="43%" valign="top">
            	<table width="294" height="294" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="294" height="294" valign="top" background="<%=CONTEXT%>/img/detail_bg.gif">
                  	<table width="100%" height="294" border="0" cellspacing="0" cellpadding="4">
                      <tr> 
                        <td align="center"> 
								             <%
								                String pid = "";
											         	if(!StringUtil.isEmpty(bean.getBigPicture())) {
											         		pid = bean.getBigPicture();
											         	}else{
											         		if(!StringUtil.isEmpty(bean.getCenterPicture())){
											         		pid = bean.getCenterPicture();
											         		}
											         	}
											         %> 
								               <%
											         	if(!StringUtil.isEmpty(pid)) {
											         %>
											          <img src="<%=CONTEXT%>/<%=bean.getCenterPicture()%>" border="0">
											         <%
											         	} else {
											         %> 
											         
											         <%
											         	}
											         %>     
                       </td>
                      </tr>
                      <tr> 
                        <td align="center">
                        	<table width="95%" border="0" cellspacing="0" cellpadding="0">
                            <tr align="center"> 
                              <td align="center">
                              	<img src="<%=CONTEXT%>/img/detai_tb.gif" width="11" height="9"> 
                                <a onclick="javascript:window.external.addFavorite(window.location,'<%=bean.getName()%>')" href="#" class="leftIndex_txt01">收藏</a></td>
                              <td><img src="<%=CONTEXT%>/img/detail_tb_1.gif" width="11" height="11"> 
                                <a href="#" class="leftIndex_txt01"  
                                	onclick="javascript:var leftn=screen.width/2-320; var topn=50;
                                	 MM_openBrWindow('zoom.jsp?id=<%=pid%>','','left=' + 
                                	 leftn+',top='+topn+',scrollbars=yes,width=640,height=640')"
                                	  >
                                	 放大</a> </td>
                              <td><img src="<%=CONTEXT%>/img/detai_tb02.gif" width="18" height="11"> 
                                <a href="<%=CONTEXT%>/fg/product/productCommand.do?actionType=list&bean.id=<%=bean.getId()%>" class="leftIndex_txt01" >推荐
                                </a> 
                              </td>
                              <td><img src="<%=CONTEXT%>/img/detai_tb02.gif" width="18" height="11"> 
                                <a href="<%=CONTEXT%>/fg/product/fgproductAppraisal.do?actionType=fgadd&bean.productId=<%=bean.getId()%>" class="leftIndex_txt01" >
                                评论
                                </a> 
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="4">
                <tr> 
                  <td>
                  	<br>
                      <font color="#FF0000">
                      <%if(!StringUtil.isEmpty(viewConfig.getSys_tel())){%> 
                    	订购电话：
                    	<%=viewConfig.getSys_tel()%><br>
                      <%}%>
                      <%if(!StringUtil.isEmpty(viewConfig.getSys_qq())){%> 
                    	客 服 QQ：
                    	<%=viewConfig.getSys_qq()%><br>
                      <%}%>
                      <%if(!StringUtil.isEmpty(viewConfig.getSys_address())){%> 
                      公司地址:
                      <%=viewConfig.getSys_address()%>
                      <%}%>
                      </font>
                  </td>
                </tr>
              </table>
            </td>
            <td width="57%" valign="top">
            	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td valign="top">
                  	<table width="255" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td><font color="#FF0000"><strong>
                        	<%=bean.getName()%>
                        	</strong></font><br>
                        	<%if(!StringUtil.isEmpty(bean.getModel())){%> 
                        	型号:<%=bean.getModel()%>
                        	<%}%>
                        	<%if(!StringUtil.isEmpty(bean.getProductNo())){%>
                        	编号：<%=bean.getProductNo()%>
                        	<%}%> 
                        	<%if(!StringUtil.isEmpty(bean.getSpec())){%>
                        	品牌: <%=bean.getSpec()%>
                        	<%}%>
                        </td>
                      </tr>
                      <tr> 
                        <td><img src="<%=CONTEXT%>/img/line_2.gif" width="255" height="1"></td>
                      </tr>
                      <tr> 
                        <td valign="top" bgcolor="F8F8F8">
                        	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                        		<%if(!StringUtil.isEmpty(bean.getSpecValue1())){%>
                        		<tr> 
			                        <td colspan=3><%=bean.getSpecName1()%>：<%=bean.getSpecValue1()%></td>
			                      </tr>
			                      <%}%>
			                      
			                      <%if(!StringUtil.isEmpty(bean.getSpecValue2())){%>
			                      <tr> 
			                        <td colspan=3><%=bean.getSpecName2()%>：<%=bean.getSpecValue2()%></td>
			                      </tr>
			                      <%}%>
                        		<tr> 
			                        <td colspan=3>商品产地：<%=bean.getProducingArea()%><br><br></td>
			                      </tr>
                            <tr> 
                              <td width="95%">
                              	市 场 价:<%=bean.getListPrice()%><br>
                                热 卖 价:<font color="#FF0000">
                                	<strong>
                                		<%=bean.getUnitPrice()%>￥
                                	</strong><br>
	                            	会 员 价:<font color="#FF0000">
	                            	<strong>
	                            		<%=bean.getUnitPrice()%>￥
	                            	</strong>
                                </font> </td>
                            </tr>
                            <tr> 
                              <td width="100%" colspan="2">
                              	<font color="#FF0000">
                                	<strong>
                                		<%=bean.getExtField1()%>
                                	</strong>
                                </font>
                              </td>
                            </tr>
                            <tr> 
                              <td width="100%" colspan="2">
                              	<%=bean.getNote()%>
                              </td>
                            </tr>
                          </table>
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr align="center"> 
                              <td>
                              	<a href="#">
                              		<img onclick="javascript:window.location='<%=CONTEXT%>/index.jsp'"   src="<%=CONTEXT%>/img/gw.gif" width="85" height="18" border="0">
                              	</a>
                              </td>
                              <DIV ID="keyParent" CLASS=parent style="margin-left: 0.1px">
                              <td>
                              	<A HREF="#" style="color:#000000; text-decoration:none;" 
                              		onClick="expandIt('key'); return false">
                              		<img src="<%=CONTEXT%>/img/pldg.gif" width="85" height="18" border="0">
                              	</a>
                              </td>
                              </div>
                              <td>
                              	<a href="<%=CART%>&actionType=addproduct&productId=<%=bean.getId()%>&channelId=<%=request.getParameter("channelId")%>">
                              		<img src="<%=CONTEXT%>/img/js.gif" width="85" height="18" border="0">
                              	</a>
                              </td>
                            </tr>
                            <tr align="center"> 
                              <td colspan="3">
															<jsp:useBean id="myAlipayObj" scope="page" class="com.keyshop.pub.util.alipay.myAlipay"/>
															  <%
																String goodsBid,sellerEmail,goodsTitle,securityCode,Cmd,Subject,Body,sDate;
																String ResponseTxt;
																Cmd	= "0001";//命令编号
																Subject	= bean.getName();//商品名称
																Body =bean.getName();//商品描述
																goodsTitle= DateUtil.getSysDateTimestamp().toString();//订单编号
																goodsBid = String.valueOf(bean.getUnitPrice());//商品价格
																
																PayConfig alipayInfoConfig = (PayConfig)SystemManager.getAlipayInfoConfig(request);//系统中的支付宝机制，参考自OrderAction.java
														 		String alipaySellerEmail=alipayInfoConfig.getSellerEmail();
															  String alipaySecurityCode=alipayInfoConfig.getSecurityCode();
															  
																sellerEmail	=alipaySellerEmail;//merchanttool@alipay.com 您的支付宝认证Email,必须通过支付宝认证才可以
																securityCode =alipaySecurityCode;//wnqrsxq4n91x7ny637vdgtuutkt5n65h安全校验码,在支付宝网站“商家工具”那里可以获得
																
																ResponseTxt= myAlipayObj.generatePaytoURL(Cmd,Subject,Body,goodsTitle,goodsBid,sellerEmail,securityCode);
																%>
																	<a href=<%=ResponseTxt%> target=_blank><img src="<%=CONTEXT%>/img/alipay_bosl.gif" border="0"></a>
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      	<!--批量定购-->
      	<DIV ID="keyChild" CLASS=child style="margin-left: 0.5px">
        <table width="640" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td align="center">
            	<table width="640" 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"><img src="<%=CONTEXT%>/img/QQ/i02.gif" width="10" height="10"></td>
							  </tr>
							  <tr>
							    <td background="<%=CONTEXT%>/img/QQ/i04.gif">&nbsp;</td>
							    <td>
										<html:form  method="post" action="/fg/order/groupStock">
										<html:hidden property="channelId" value="<%=currentChannel.getId()%>"/>
										<html:hidden property="actionType" value="fgsave"/>
										<html:hidden property="pageType"/>
										<table width="100%" height="41" border="0" cellpadding="0" cellspacing="0" >
										  <tr>
										    <td>&nbsp;&nbsp;<span class="type01"><b>批量定购</b></span></td>
										  </tr>
										</table>
										<TABLE width="600" height="193" border=0 cellPadding=0 cellSpacing=0>
										  <TBODY>
										    <TR > 
										      <TD width="189" align=right>商品编号：</TD>
										      <TD width="451" align=left>
										      	<html:text property="bean.productId" size="20" />
										      </TD>
										    </TR>
										    <TR > 
										      <TD align=right>商品名称：</TD>
										      <TD align=left><html:text property="bean.productName" size="20"/></TD>
										    </TR>
										    <TR > 
										      <TD align=right>订购数量：</TD>
										      <TD align=left><html:text property="bean.contact"    size="20"/>  </TD>
										    </TR>
										    <TR > 
										      <TD height="17" align=right>联系电话：</TD>
										      <TD align=left><html:text property="bean.phone"    size="20"/> </TD>
										    </TR>
										    <TR > 
										      <TD align=right>备注：</TD>
										      <TD align=left><html:textarea property="bean.note"   cols="50" rows="3"/></TEXTAREA> 
										      </TD>
										    </TR>
										    <TR align=middle vAlign=bottom > 
										      <TD height=40 colSpan=2>
											      <INPUT name=Submit33 type=button class="cssboard04" 
											      onclick=javascript:submitForm() value=提交> 
											      <INPUT name=Submit322 type=reset class="cssboard04" value=取消>
										      </TD>
										    </TR>
										  </TBODY>
										</TABLE>
										</html:form>
										<script>
											function submitForm() {
												if(document.all['bean.productName'].value == "") {
													alert("请填写订购信息。");
													return;
												}
												fggroupStockForm.submit();
											}
											<%
												if("true".equals(request.getAttribute("save_success"))) {
											%>
												alert("订购信息添加成功。")
											<%
												}
											%>
										</script>
							    </td>
							    <td background="<%=CONTEXT%>/img/QQ/i05.gif"></td>
							  </tr>
							  <tr>
							    <td height="10"><img src="<%=CONTEXT%>/img/QQ/i06.gif" width="10" height="10"></td>
							    <td background="<%=CONTEXT%>/img/QQ/i08.gif"></td>
							    <td><img src="<%=CONTEXT%>/img/QQ/i07.gif" width="10" height="10"></td>
							  </tr>
							</table>
            </td>
          </tr>
        </table>
        </div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td align="center" valign="top">
            	<table border="0" cellpadding="0" cellspacing="0">
                <tr> 
                  <td >&nbsp;</td>
					        <%
					        	if("description".equals(displayType)) {
					        %>
                  <td align="center"  class="TopIndex_dh04">
                  	<a href="#" class="leftIndex_txt01"><strong>商品描述</strong></a></td>
					        <%
					        	} else {
					        %>	
			            <td align="center"  class="TopIndex_dh04">
			            	<a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=description#field" 
			            		class="leftIndex_txt01">商品描述</a>
			            </td>
					
					        <%
					        	}
					        %>
					        <%
					        	if("djdst".equals(displayType)) {
					        %>
                  <td align="center" class="TopIndex_dh04">
                  	<a href="#" class="leftIndex_txt01"><strong>多角度视图</strong></a>
                  </td>
					        <%
					        	} else {
					        %>	
			         		<td align="center" class="TopIndex_dh04">
			         			<a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=djdst#field" class="leftIndex_txt01">
			         				多角度视图</a>
			         		</td>
					        <%
					        	}
					        %>	
					        <%
					        	if("cppj".equals(displayType)) {
					        %>
			            <td align="center"  class="TopIndex_dh04">
			            	<a href="#" class="leftIndex_txt01"><strong>产品配件</strong></a>
			            </td>
					      	<%
					        	} else {
					        %>	
			        		<td align="center"  class="TopIndex_dh04"><a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=cppj#field" class="leftIndex_txt01">产品配件</a></td>
					        <%
					        	}
					        %>	
					        <%
					        	if("sptx".equals(displayType)) {
					        %>            
					        <td align="center" class="TopIndex_dh04"><a href="#" class="leftIndex_txt01"><strong>商品特性</strong></a></td>
					      	<%
					        	} else {
					        %>	
					        <td align="center"  class="TopIndex_dh04"><a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=sptx#field" class="leftIndex_txt01">商品特性</a></td>
					        <%
					        	}
					        %>
					         <%
					        	if("sms".equals(displayType)) {
					        %>            
					        <td align="center" class="TopIndex_dh04">
					        	<a href="#" class="leftIndex_txt01"><strong>产品说明书</strong></a></td>
					      	<%
					        	} else {
					        %>	
					        <td align="center"  class="TopIndex_dh04">
					        	<a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=sms#field" class="leftIndex_txt01">
					        		产品说明书</a></td>
					        <%
					        	}
					        %>
					        <%
					        	if("lscp".equals(displayType)) {
					        %>  
			            <td align="center" class="TopIndex_dh04">
			            	<a href="#" class="leftIndex_txt01"><strong>孪生产品</strong></a></td>
					        <%
					        	} else {
					        %>	
			         		<td align="center" class="TopIndex_dh04">
			         			<a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=lscp#field" class="leftIndex_txt01">
			         				孪生产品</a>
			         	  </td>
					        <%
					        	}
					        %>	 
					              
					        <%
					        	if("yhpl".equals(displayType)) {
					        %>           
					        <td align="center" class="TopIndex_dh04">
					        	<a href="#" class="leftIndex_txt01"><strong>相关评论</strong></a></td>
					      	<%
					        	} else {
					        %>	
			         		<td align="center" class="TopIndex_dh04">
			         			<a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=yhpl#field" class="leftIndex_txt01">
			         				相关评论</a>
			         	  </td>
					        <%
					        	}
					        %>	            
				        </tr>
				      </table>
              <table width="100%"  border="0" cellpadding="3" cellspacing="1"  class="lefttitle_bg01">
                <tr> 
                  <td width="100%" valign="top" bgcolor="#FFFFFF">
                      <%
		                		if("description".equals(displayType))  {
		                	%>
		                	<%=bean.getDescription() != null ? bean.getDescription() : ""%>
		                	
		                 <%
		                  	} 
		                  	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())) {
												     %>
												     <%=blobField.getFieldName()%>:<br>
												      <img src="<%=CONTEXT%>/<%=blobField.getFieldValue()%>"><br>
												     <%
												    }     
												  	} 
    		                  	} else if("yhpl".equals(displayType)) {
		                  %>
		            <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>
		            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                 <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>			  
									<br>
									<table width="90%" border="0" align="center" cellpadding="4" cellspacing="2">
									<%
									List appraisals = ProductHelper.getProductAppraisal(bean.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%>楼:<br>
												用户名：<font color="8A8A8A"><%=app.getAppUser()%></font><br>
												评 论 ：<font color="47803C"><%=app.getDescription()%></font> 
											</td>
									  </tr>
									<%
										}
									}
									%>
									</table> 
								<%
                	} else if("sptx".equals(displayType)) {

                		TemplateCategory category = ProductHelper.getTemplateCategoryById("1");
                      if(category!=null){	
								  	//按照各个分类显示字段数据
								  	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()%>:<br>
		                     <%=field.getFieldValue()%><br>
									<%
										}
								  	} 
								  }else{
								  	%>
								  	本产品没有商品特性信息
								  	<%
								  	}
	                }else if("sms".equals(displayType)) {

                		TemplateCategory category = ProductHelper.getTemplateCategoryById("2");
                      if(category!=null){	
								  	//按照各个分类显示字段数据
								  	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()%>:<br>
		                     <%=field.getFieldValue()%><br>
									<%
										}
								  	} 
								  }else{
								  	%>
								  	本产品没有商品说明书
								  	<%
								  	}
	                }else if("cppj".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("pldg".equals(displayType)) {
	                  %>
	                  <!--批量定购-->
                     <%@include file="/fg/order/order_sub/fggroupStockAdd_sub.jsp"%>
	                  <%
	                  } else if("lscp".equals(displayType)) {
											 List productRelation = (List)request.getAttribute("existedlist");
											   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 {
								      		%>
								      		缺少商品图片
								      		<%
								      			}
								      		%>
								      		</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>
										    <%
											}else{
												%>
											暂无孪生产品
											<%}
										   }
										   %>
                  </td>
                </tr>
              </table> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
			          <tr> 
			            <td align="right">&nbsp;</td>
			          </tr>
			        </table>
            </td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td align="right">&nbsp;</td>
          </tr>
        </table>
      </td>
    </tr>
  </table>