<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>
                      <td align="center" valign="bottom">
											  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="TopIndex_dh05">
                          <tr>
                            <td align="center">
														<%
								                	if("description".equals(displayType)) {
								                %>
                            		<strong>商品说明</strong>
	                            	<%
								                	} else {
								                %>	
								                 <a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=description#field" class="leftIndex_Title04">商品说明</a>
								                <%
								                	}
								                %>		
														
														</a></td>
                          </tr>
                        </table></td>
                      <td class="TopIndex_dh_1"></td>
                      <td  align="center" valign="bottom">
											  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="TopIndex_dh05">
                          <tr>
                            <td align="center">
														 <%
								                	if("field".equals(displayType)) {
								                %>
                            	<strong>相关配件</strong>
	                            	<%
								                	} else {
								                %>	
								                 <a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=field#field" class="leftIndex_Title04">相关配件</a>
								                <%
								                	}
								                %>		
														
														</a></td>
                          </tr>
                        </table></td>
                      <td class="TopIndex_dh_1"></td>
                      <td align="center" valign="bottom"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="TopIndex_dh05">
                          <tr> 
                            <td align="center">
														<%
								                	if("djdst".equals(displayType)) {
								                %>
                            		<strong>多角度视图</strong>
	                            	<%
								                	} else {
								                %>	
								                 <a href="<%=PRODUCTVIEW%>&bean.id=<%=bean.getId()%>&displayType=djdst#field" class="leftIndex_Title04">多角度视图</a>
								                <%
								                	}
								                %>	
														
														</a></td>
                          </tr>
                        </table></td>
                      <td class="TopIndex_dh_1"></td>
                      <td  align="center" valign="bottom"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="TopIndex_dh05">
                          <tr> 
                            <td align="center">
														<%
								                	if("yhpl".equals(displayType)) {
								                %>
                            		<strong>用户评论</strong>
	                            	<%
								                	} else {
								                %>	
								                 <a href="<%=CONTEXT%>/fg/product/fgproductAppraisal.do?actionType=fgadd&bean.productId=<%=bean.getId()%>" target="_blank" class="leftIndex_Title04">用户评论</a>
								                <%
								                	}
								                %>	
														
														</a></td>
                          </tr>
                        </table></td>
                      <td class="TopIndex_dh_1"></td>
                      <td  align="center" valign="bottom">
                      </td>
                      <td class="TopIndex_dh_1"></td>
                      <td class="TopIndex_dh_1"></td>
                      <td >&nbsp;<A NAME="field"/></td>
                    </tr>
                  </table>
                  <table width="97%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height=4 background="<%=CONTEXT%>/img/detai_dh_bg.gif" ></td>
                    </tr>
                  </table>
                  
                  <table width="97%" border="0" cellpadding="4" cellspacing="0">
                    <%
				                		if("description".equals(displayType))  {
				                	%>
				                	<tr> 
			                      <td><%=bean.getDescription() != null ? bean.getDescription() : ""%></td>
			                  	</tr>
                            <%
				                  	} else if("field".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())) {
													  %>
													  <tr> 
				                      <td width="20%"><b><%=field.getFieldName()%></b></td>
				                      <td width="80%"><%=field.getFieldValue()%></td>
				                    </tr>
														<%
																}
													  	} 
													  %>
													<%
				                  	} 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())) {
														  %>
														  <tr align="center"> 
					                      <td><strong><%=blobField.getFieldName()%></strong><br> 
					                      <%
														     	if(!StringUtil.isEmpty(blobField.getFieldValue())) {
														     %>
														      <img src="<%=CONTEXT%>/<%=blobField.getFieldValue()%>">
														     <%
														     	}
														     %> 
					                     	</td>
					                    </tr>
															<%
																	}
														  	} 
														  %>		
														<%
				                  	} else if("yhpl".equals(displayType)) {
				                  %>
				                 
														<%}%>
										
                  </table></td>
              </tr>
              				 <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> 
                    		   <%
                    	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);
                    %>
                   <br> <b>相关评论</b>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height=4 background="<%=CONTEXT%>/img/detai_dh_bg.gif" ></td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
								  <tr>
								    <td>
								    		<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
			                    <tr> 
			                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
			                          <tr>
			                            <td width="33%">姓名：<%=app.getAppUser()%></td>
			                            <td width="37%">发言时间：<%=app.getCreateTime()%></td>
			                            <td width="37%">总体评分：
			                            <%
															  		int level = app.getAppLevel() + 2;
															  		for(int j=0; j<level; j++) {
															  	%>
															  	<img src="<%=CONTEXT%>/img/star.gif"/>
															  	<%
															  		}
															  	%>
															  	<%
															  		int alevel = 4 - level;
															  		for(int j=0; j<alevel; j++) {
															  	%>
															  	<img src="<%=CONTEXT%>/img/halfstar.gif"/> 
															  	<%
															  		}
															  	%>
															  	</td>
			                          </tr>
			                        </table></td>
                    			</tr>
			                    <tr>
			                      <td height=2  background="<%=CONTEXT%>/img/detai_dh_bg.gif"></td>
			                    </tr>
                  			</table>
												<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
			                  	<tr>
			                    	<td valign="top">
			                    		<font color="#FF3300">标题：</font><%=app.getSubject()%> <br>
			                              <%=app.getDescription()%>  
			                      </td>
			                    </tr>
			                    <tr>
			                    	<td align="right">
			                    			<a href="<%=CONTEXT%>/fg/product/fgproductAppraisal.do?actionType=fgadd&bean.productId=<%=bean.getId()%>" target="_blank">更多评论&gt;&gt;</a>
			                      </td>
			                    </tr>
                        </table>
                      </td>
                    </tr>
									</table>
 										<%
                    		}
                    	}
                    %>
                    		<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>
																		 <tr> 
														          <TD width="100%" height=30> 总体评分：
														         		<html:radio property="bean.appLevel" value="-2"/>
														            差 
														            <html:radio property="bean.appLevel" value="-1"/>
														            较差 
														            <html:radio property="bean.appLevel" value="0"/>
														            一般 
														            <html:radio property="bean.appLevel" value="1"/>
														            不错 
														            <html:radio property="bean.appLevel" value="2"/>
														            很好<strong></strong>
														         	</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>