<?
	$comment_sql = "select * from ls_comments where proID = ".$id;
	$comment_query=$opendb->query($comment_sql);

?>

<tr bgcolor="#f4f4f4">
	<td width="9%" style="padding-left:15px;">该产品评论</td>
	<td colspan="2" ><table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
			<tr bgcolor="#B9DAFF">
				<td width="6%" height="25" align="center" >编号</td>
				<td width="74%"  align="center" >评论内容</td>
				<td width="10%" align="center" >删除</td>
				<td width="10%" align="center" >允许</td>
			</tr>
<?
	$enable = "";
	while($comment_rows=mysql_fetch_assoc($comment_query)){
		if($comment_rows['enable']==1){
			$enable = "<a href='?id=".$id."&page=".$page."&cateid=".$cateid."&midcateid=".$midcateid."&subcateid=".$subcateid."&comment_id=".$comment_rows['ID']."&ls=unenable' title='显示'><img src='images/enable.gif' border='0'></a>";
		}
		if($comment_rows['enable']==0){
			$enable = "<a href='?id=".$id."&page=".$page."&cateid=".$cateid."&midcateid=".$midcateid."&subcateid=".$subcateid."&comment_id=".$comment_rows['ID']."&ls=enable' title='不显示'><img src='images/unenable.gif' border='0'></a>";
		}
		$delete = "<a href='?id=".$id."&page=".$page."&cateid=".$cateid."&midcateid=".$midcateid."&subcateid=".$subcateid."&comment_id=".$comment_rows['ID']."&ls=del' onclick='return ConfirmDelSubCate();' title='删除'><img src='images/b_drop.png' border='0'></a>";
?>
			<tr bgcolor='#f0f0f0' onMouseOver=this.style.backgroundColor='#CCFFCC' 	onMouseOut=this.style.backgroundColor='#f0f0f0' >
				<td align='center'>	<?=$comment_rows['ID']?> </td>
				<td style='padding-left:10px;'> <?=$comment_rows['cmtContent']?> </td>
				<td align='center'><?=$delete?></td>
				<td align='center'><?=$enable?></td>
			</tr>
			<?
	}
?>
		</table></td>
</tr>
