<!--<?php
include_once PrintEot('m_header');
include_once PrintEot('user_space');
print <<<EOT
-->
		<div id="content" class="fr" style="width:760px;">
			<div id="content-main">
				<div class="cc p-info">
					<h1><strong class="f24 blue"><a href="u.php?uid=$u">$username</a></strong> <span class="f24 gray">/</span> <span class="red b f16">留言</span> <span class="gray">( {$count}条 )</span></h1>
				</div>
				<div class="breadCrumb">
				<a href="u.php?uid=$uid" class="gray">&laquo;返回首页继续浏览</a>
				</div>
				<div class="cc">
					<div class="w500 fl">
						<div class="message-b" id="board_container">
						<h2 class="cc">留言板</h2>
<!--
EOT;
if ($ismyfriend) { print <<<EOT
-->
						<form method="POST" name="FORM" action="mode.php?m=o&q=ajax&a=commreply" onsubmit="return false;">
						<div class="m10">
						<div class="o-editor mb10" style="width:540px;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>
							<p class="fl"><textarea maxlength="200" rows="5" id="board" name="atc_content"/></textarea></p>
							<input type="hidden" id="board_uid" value="$u">
						</div>
						<span class="button" style="margin-left:0;"><span><button type="submit" onclick="postBoard();">留言</button></span></span>
						</div>
                        <div id="linkbox" style="display:none;"></div>
						</form>
<!--
EOT;
}print <<<EOT
-->
            <div class="cc"></div>
<!--
EOT;
if (!empty($boards)){print <<<EOT
-->
						<div style="width:530px;padding:10px 0 30px 0;">
						<div class="o-commnet">
            <div id="createboardbox"></div>

<!--
EOT;
foreach ($boards as $value) { print <<<EOT
-->
            <dl class="cc" id="board_{$value[id]}">
                 <dt>
                    <a href="u.php?uid=$value[uid]"><img src="$value[face]" class="img-50" style="margin-left:0;" /></a>
                 </dt>
                 <dd class="dd60">
<!--
EOT;
if ($value[uid]==$winduid || $winduid==$u || $groupid==3) { print <<<EOT
-->
                 <a style="cursor:pointer;" class="fr" onclick="createCommnetInput('board','$value[id]',0)">回复</a><a style="cursor: pointer;" onclick="pwConfirm('是否确定删除本条留言',this,function(){delBoard('$value[id]')})" title="删除" class="del fr mr10">删除</a>
<!--
EOT;
} print <<<EOT
-->
                    <a href="u.php?uid=$value[uid]" class="b">$value[username]</a> <span class="gray">$value[postdate] 留言道:</span>
                    <p class="f14"> $value[title] </p>

                    <div id="commentbox_$value[id]_0">
<!--
EOT;
foreach ($commentdb[$value['id']] as $key => $comment) {print <<<EOT
-->
                        <dl class="cc" id="com_board_{$comment[id]}">
                             <dt>
                                <img src="$comment[face]" class="img-50" />
                             </dt>
                             <dd class="dd60">
                                <a href="u.php?uid=$comment[uid]">$comment[username]</a>
                                <span class="gray">$comment[postdate] 留言道:</span>

<!--
EOT;
if ($comment['uid'] == $winduid || $groupid == 3) {print <<<EOT
-->
<a href="javascript:;" class="del" onclick="delComment('$comment[id]','2')" >x</a>
<!--
EOT;
}print <<<EOT
-->
                                <p class="f14">$comment[title]</p>
                             </dd>
                         </dl>
<!--
EOT;
}print <<<EOT
-->
                    </div>
                    </dd>
                </dl>
<!--
EOT;
}print <<<EOT
-->
           		</div>
							</div>
							<div class="mt10">$pages</div>
<!--
EOT;
}else{print <<<EOT
-->
				<div class="dynamic-dl">暂无留言</div>
<!--
EOT;
}print <<<EOT
-->
             </div>
<div id="menu_show" style="display:none;"></div>
<script language="javascript">
	var imgpath   = '$imgpath';
	var stylepath = '$stylepath';
	function addsmile(NewCode){
	    getObj('board').value += ' [s:'+NewCode+'] ';
	}
</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
-->
<script language="JavaScript" src="js/app_comment.js"></script>
<script language="JavaScript" src="mode/o/js/board.js"></script>
<!--
EOT;
if ($ismyfriend) { print <<<EOT
-->
<script language="JavaScript" src="js/post.js"></script>
<!--
EOT;
}print <<<EOT
-->
<div id="menu_face" class="menu" style="display:none;"></div>
					</div>
				</div>
			</div>
		</div>
</div>
</div>
<div class="y-bg2"></div>
<div class="y-bg"></div>
<!--
EOT;
?>-->