<!--{template 'default/head'}-->
<script type="text/javascript" src="{W_P}plugin/comment/comment.js"></script>
<div class="main cbody margintop">
	<div class="pleft">
		<h3 class="b"><span><a href="{$info['url']}">{$info['subject']}</a></span></h3>
		<div class="comment" style="border-top:0">
			<div class="commentbox">
			<!--{loop $comments $v}-->
				<dl>
					<dt>网友：{$v['username']}，{$v['ip']}  发表于：{$v['addtime']} <span class="c"></span></dt>
					<dd>
						<!--{if $v['is_pass']}-->
							<p style="word-break: break-all"><!--{echo nl2br($v['content'])}--></p>
						<!--{else}-->
							<p style="color:#999">该评论需要审核</p>
						<!--{/if}-->
					</dd>
				</dl>
			<!--{/loop}-->
			</div>
			<!--{if $pager}-->
				<div  class="pager" style="height: 30px; margin-left: 15px;">{$pager}</div><div class="clear"></div>
			<!--{/if}-->
			<div class="posttitle" style="margin-top: 0px;"><strong>发表评论</strong></div>
            <form class="label" action="{W_P}plugin.php?plugin=comment&channelid={$channelid}&id={$id}" method="post" name="replyForm" id="replyForm" onsubmit="return commentCheck()">
				<div class="postbox">
					<div class="txtbox">
						<strong>评论内容：</strong>不能超过250字，<!--{if $channel[$channelid]['coment_pass'] == 0}--><font color='blue'>需要审核</font>，<!--{/if}-->请自觉遵守互联网相关政策法规。
						<textarea name="content" id="content" cols="60" rows="6" class="f-text" onkeyup="return Form.autoSend(event, 'replyForm')"></textarea>
					</div>
					<div class="userbox">
						<!--{if $user_info['uid']}-->
						<p><label for="f-label">账号：</label>{$user_info['username']}</p>
						<!--{else}-->
						<p>
							<label for="username">账号：</label><input type="text" name="username" id="username" class="f-text" type="text" maxlength="20" /> 
							<label for="password">密码：</label><input type="password" name="password" id="password" class="f-text" type="text" maxlength="20" />
						</p>
						<p style="color:#666;margin-top:10px;">还没有一个账号？<a href="###" onclick="this.href='{W_P}user.php?ac=reg&forward='+encodeURIComponent(window.location.href);return true;">点这里注册</a></p>
						<!--{/if}-->
						<p style="margin-top:10px;"><input name="myFormAc" type="hidden"  value="update" /><input type="submit" id="reply-submit" class="f-button" value=" 评论 " /></p>
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="pright">
		<div class="classbox">
			<h3><span>热点关注</span></h3>
			<div class="rbox">
				<ul>
					<!--{cms $_obj = cmsQuery("channelid={$channelid}&&order=views desc&pagesize=20&cacheTime=3600");}-->
					<!--{loop $_obj['data'] $v}-->
					<li><a href="{$v['url']}" title="{$v['subject']}"><!--{eval echo qbase::substrs($v['subject'], 40);}--></a></li>
					<!--{/loop}-->
				</ul>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<!--{template 'default/foot'}-->