<!--<?php print <<<EOT
-->
<script language="javascript">
	var charset = '$db_charset';
	var imgpath   = '$imgpath';
	var stylepath = '$stylepath';
	function addsmile(NewCode){
	    document.FORM.atc_content.value += ' [s:'+NewCode+'] ';
	}
	
	var version = navigator.appVersion.split(";");
	version = version[1].replace(/[ ]/g,"");
	if (navigator.appName == "Microsoft Internet Explorer" && version=="MSIE6.0") {
		window.onerror = function () {return true;}
	}
</script>
<!--
EOT;
if(R_P==D_P){print <<<EOT
-->
					<script language="JavaScript" src="data/bbscache/face.js"></script>
<!--
EOT;
}else{
$facedb=readover(D_P."data/bbscache/face.js");
print <<<EOT
-->
					<script language="JavaScript">
					$facedb
					</script>
<!--
EOT;
}print <<<EOT
-->
					<div id="menu_show" style="display:none;"></div>
					<div id="menu_face" class="menu" style="display:none;"></div>
					<script language="JavaScript" src="js/post.js"></script>
					<div id="comment_container">
					<div style="width:510px;">
						<form method="POST" name="FORM" action="" onsubmit="return false;">
						<div class="mt10">
                            <div class="o-editor mb10" style="width:510px;overflow:hidden;">
                                <div class="o-operation cc">
                                     <span class="createlink" title="插入url链接" onClick="createLinkBox();" id="createlinkid">插入url链接</span><span class="o-face" id="td_face" style="cursor:pointer;" onClick="showDefault();" align="absmiddle" unselectable="on">添加表情</span>
                                </div>
                               <div class="fl"><textarea maxlength="200" id="comm_input_{$comment_type}_{$comment_typeid}_0" name="atc_content"/></textarea></div>
                            </div>
                            <span class="button" style="margin:0;"><span><button type="submit" onclick="postComment('$comment_type',$comment_typeid,0,this.form);">评论</button></span></span>
					   </div>
					   </form>
					   <div id="linkbox" style="display:none;"></div>						
						<div class="o-commnet">
						<div id="createcommentbox"></div>
<!--
EOT;
foreach ($commentdb as $key => $comment) {print <<<EOT
-->
								<dl class="cc" id="commnet_{$comment[id]}">
									<dt><img src="$comment[face]" class="img-50" /></dt>
									<dd>
<!--
EOT;
if ($comment[uid]==$winduid || $winduid==$u || $groupid==3) { print <<<EOT
-->
									<a style="cursor: pointer;" onclick="pwConfirm('是否确定删除本条留言',this,function(){delComment('$comment[id]','0')})" title="删除" class="del fr">删除</a>
									<a style="cursor:pointer;" class="fr mr10" onclick="createCommnetInput('$comment_type',$comment_typeid,$comment[id])">回复</a>
<!--
EOT;
} print <<<EOT
-->
									<a href="u.php?uid=$comment[uid]" class="b">$comment[username]</a> <span class="gray">$comment[postdate] 评论道：</span>
									<p class="f14"> $comment[title] </p>
										
											<div id="commentbox_{$comment_typeid}_{$comment[id]}">
<!--
EOT;
foreach ($subcommentdb[$comment['id']] as $k => $subcomment) {print <<<EOT
-->
											<dl class="cc" id="subcommnet_{$subcomment[id]}">
												<dt><img src="$subcomment[face]" class="img-50" /></dt><dd class="dd60"><a href="u.php?uid=$subcomment[uid]">$subcomment[username]</a><span class="gray">$subcomment[postdate] </span>
<!--
EOT;
if ($subcomment['uid'] == $winduid || $groupid == 3) {print <<<EOT
-->
<a href="javascript:;" class="del" onclick="delComment($subcomment[id],'1')" >删除</a>
<!--
EOT;
}print <<<EOT
-->
											<p class="f14"> $subcomment[title] </p>	
											</dd>
											</dl>	
<!--
EOT;
}print <<<EOT
-->
										</div>
									</dd>

								</dl>
<!--
EOT;
}print <<<EOT
-->
						</div>
<div class="mt10 cc">$pages</div>
</div>
</div>
<!--
EOT;
?>