{template 'header.html'}
<div id="c">
<div id="position">
<span><a title="{get('sitename')}" href="{$base_url}">{get('sitename')}</a><a title="{lang(commentlist)}" href="#">{lang(commentlist)}</a></span><strong>{lang(nowposition)}</strong>
</div>
{template 'left.html'}

<div id="right">

<div id="text">
<style>
/****************评论*/
#comment {
  margin-top:20px;
}

#comment .input {
  width:108px;
  height:27px;
  border:none;
  background:url({$skin_path}/search_btn.gif) left top no-repeat;
  font-weight:bold;
  color:#0D61BA;
  font-size:12px;
}

.comm {
  height:28px;
  line-height:28px;
  padding-left:35px;
  border-top:1px solid #ccc;
  background:url({$skin_path}/comment.gif) 10px 7px no-repeat;
}

#textarea {
  width:100%;
  height:50px;
  background:#FFF url({$skin_path}/cmslogo.gif) right bottom no-repeat;
  border:1px solid #ccc;
}
</style>

<div class="blank10"></div>
<!-- 评论 -->
<div id="comment">
<form action="<?php echo url('comment/add'); ?>" method="POST" name="comment_form">
<div class="comm">
<!--<a href='<?php echo url('comment/list/aid/'.$archive['aid']); ?>' style="float:right;padding-right:20px;font-size:12px;color:#cc0000;">已有<span id="commentnumber">{comment::countcomment($archive['aid'])}</span>位网友发表评论&nbsp;&nbsp;<strong>点击查看</strong></a>--><strong>{lang(docomment)}:</strong> <?php if(hasflash()) { ?>
<?php echo showflash(); ?>
<?php } ?></div>
<div class="blank5"></div>
<textarea name="content" id="textarea"></textarea>
<div style="margin-top:10px;line-height:34px;"><input type="hidden" name="aid" value="{$aid}"/>
{lang(username)}：<input type="text" name="username" class="key" value="<?php echo get('username');?>"/> &nbsp;&nbsp;{lang(verifycode)}： &nbsp;<input type="text" name="verify" value="" size="4" /> <?php echo verify();?><br /><br /><input name="submit" class="input" value="{lang(docomment)}" type="submit"/>
</div>
</form>
</div>
<div class="blank30"></div>
<div class="blank30"></div>
<div class="t_2 mb10"><div><h5>{lang(commentlist)}</h5></div></div>
<ul class="news_list">
{pagination::html($record_count)}
{loop $comments $comment}
<li><a href="#">{$comment[username]}</a><span class="date">{sdate($comment[adddate],'Y-m-d H:i')}</span>
<p>{strip_tags($comment[content])}</p></li>
<?php if(!isset($i)) $i=0;  $i++; if($i<count($comments)) {echo "<br>";} else unset($i); ?>
{/loop}
</ul>
<div class="blank30"></div>
<div class="pages">
 {pagination::html($record_count)}
</div>

<div class="blank30"></div>
<a title="{lang(gotop)}" href="#" class="clear floatright"><img alt="{lang(gotop)}" src="{$skin_url}/gotop.gif"></a>
<div class="blank30"></div>

</div>
</div>
<div class="clear"></div>
</div>


<script> 
function resizeImg(obj)
{ 
var obj = document.getElementById(obj); 
var objContent = obj.innerHTML;
var imgs = obj.getElementsByTagName('img'); 
if(imgs==null) return; 
for(var i=0; i<imgs.length; i++) 
{ 
if(imgs[i].width>parseInt(obj.style.width)) 
{ 
imgs[i].width = parseInt(obj.style.width);
} 
} 
} 
window.onload = function() {resizeImg('text');
} 
</script>
{template 'footer.html'}