<!--<?php
if($_viewer->rootList) {
foreach($_viewer->rootList as $rootid => $value) {
print <<<EOT
-->
		<dl class="cc dl">
			<dt class="dt"><a href="u.php?uid={$value['uid']}" class="img_50" target="_blank"><img src="{$value['faceurl']}" /></a></dt>
			<dd class="dd">
				<div class="title"><span class="fr">
<!--
EOT;
if($_viewer->right['del'] == 1) {print <<<EOT
-->
					<a href="javascript:;" onclick="comment.doCheckDel('{$_viewer->baseName}&c=info&a=delcomment&id={$_viewer->dianpuid}&page={$_viewer->page}&commentid={$value['commentid']}&productid={$_viewer->productid}');" class="mr10">删除</a>
<!--
EOT;
}
if($_viewer->right['comment'] == 1){
    if($_viewer->right['reply'] == 1 && $value['state'] == 1 ){print <<<EOT
-->
<!--
EOT;
}else{print <<<EOT
-->					<a href="javascript:;" onclick="comment.focusReply('{$value['commentid']}','{$value['commentid']}','{$value['username']}')">回复</a>
<!--
EOT;
}}print <<<EOT
-->
				    </span>
					<a href="u.php?uid={$value['uid']}" target="_blank">{$value['username']}</a> 留言于:{$value['postdate']}
			    </div>
				<div>{$value['content']}</div>
<!--
EOT;
if($_viewer->childList[$rootid]){
  foreach($_viewer->childList[$rootid] as $key => $child){
print <<<EOT
-->
				<dl class="cc dl2">
					<dt class="dt"><a href="u.php?uid={$child['uid']}" class="img_50" target="_blank"><img src="{$child['faceurl']}" /></a></dt>
					<dd class="dd2">
						<div class="title"><span class="fr">
<!--
EOT;
if($_viewer->right['del'] == 1) {print <<<EOT
-->
							<a href="javascript:;" onclick="comment.doCheckDel('{$_viewer->baseName}&c=info&a=delcomment&id={$_viewer->dianpuid}&page={$_viewer->page}&commentid={$child['commentid']}&productid={$_viewer->productid}');" class="mr10">删除</a>
<!--
EOT;
}
if($_viewer->right['comment'] == 1 && $_viewer->right['reply'] == 1 && $child['isanswer'] == 0 && $child['state'] == 0) {print <<<EOT
-->
							<a href="javascript:;" onclick="comment.focusReply('{$child['commentid']}','{$child['commentid']}','{$child['username']}')">回复</a>
<!--
EOT;
}print <<<EOT
--> 
							</span>
							<a href="u.php?uid={$child['uid']}" target="_blank">{$child['username']}</a> 留言于:{$child['postdate']}
						</div>
						<div>{$child['content']}</div>
					</dd>
				</dl>
<!--
EOT;
}}
print <<<EOT
-->
			  </dd></dl>
<!--
EOT;
}}
print <<<EOT
-->
			<div class="c mb10"> </div>
			<div class="cc mb10">{$_viewer->pager}</div>
			<input type="hidden" name="page" value="{$_viewer->page}" id="page">
<!--
EOT;
?>