{?set jieqi_page_rows = "10"?}
{?set $jieqi_contenttitle = "书评回复"?}

{?if $newpost > 0?}
<div class="textbox hot" id="postresult">{?$postresult?}</div>
<script type="text/javascript">
setTimeout(function(){$_('postresult').hide()}, 3000);
</script>
{?/if?}

<div class="block">
<div class="blocktitle"><a class="db" href="{?$url_articleinfo?}">{?$articlename?}</a></div>
<div class="blockcontent">
<ul class="ullist">
{?section name=i loop=$replyrows?}
	<li>
	<em>{?$replyrows[i].posttime|date:Y-m-d H:i:s?}</em><b>{?if $replyrows[i].posterid > 0?}{?$replyrows[i].username?}{?else?}游客{?/if?}：</b>
	<p>{?$replyrows[i].posttext?}</p>
	</li>
{?/section?}
</ul>
<div class="pages">{?$url_jumppage?}</div>
</div>
</div>

<a name="postnew"></a>
{?if $enablepost == 1?}
<script type="text/javascript">
function frmpost_validate(){
  if(document.frmpost.pcontent.value == ""){
    alert("请输入内容");
    document.frmpost.pcontent.focus();
    return false;
  }
}
</script>

<div class="block">
	<div class="blocktitle">回复书评</div>
	<div class="blockcontent">
	{?if $jieqi_userid > 0?}
		<form class="cf" name="frmpost" id="frmpost" method="post" action="{?$article_dynamic_url?}/reviewshow.php?tid={?$topicid?}&aid={?$articleid?}" onsubmit="return frmpost_validate();" enctype="multipart/form-data">
		<fieldset>
		<div class="frow">
		<textarea class="textarea" name="pcontent" id="pcontent" style="width:100%;height:5em;"></textarea>
		</div>
		{?if $postcheckcode > 0?}
		<div class="frow">验证码：<input type="text" class="text" style="width:6em;" name="checkcode" id="checkcode" onfocus="if(this.form.imgccode.style.display == 'none'){this.form.imgccode.src = '{?$jieqi_url?}/checkcode.php?rand={?$jieqi_time?}';this.form.imgccode.style.display = '';}" title="点击显示验证码"><img name="imgccode" src="" style="cursor:pointer;vertical-align:middle;margin-left:3px;display:none;" onclick="this.src='{?$jieqi_url?}/checkcode.php?rand='+Math.random();" title="点击刷新验证码"></div>
		{?/if?}
		<div class="frow">
		<input type="hidden" name="act" value="newpost" />{?$jieqi_token_input?}
		<button type="button" name="Submit" class="button" style="cursor:pointer;" onclick="postsubmit();"> 回复书评 </button>
		</div>
		</fieldset>
		</form>
	{?else?}
		<br />您需要 <a href="{?$jieqi_url?}/login.php">登录</a> 才能回复书评！<br /><br />
	{?/if?}
	</div>
</div>

{?/if?}