<?php include_once tpl('header');?>
<card title="书会置顶贴 - <?php echo setting('webname');?>">
<p align="left">
<?php if (!empty($sticks)):?>
	<?php $x = 1;?>
	<?php foreach ($sticks as $stick):?>
		<?php echo $x;?>.<a href="<?php echo url('system',array('s'=>'forum','c'=>'stick','a'=>'view','id'=>$bookid, 'tid'=>$stick['id']));?>"><?php echo filter_content($stick['subject']);?></a> <a href="<?php echo url('system',array('s'=>'forum','c'=>'stick', 'a'=>'edit', 'id'=>$bookid, 'tid'=>$stick['id']));?>">修改</a>|<a href="<?php echo url('system',array('s'=>'forum','c'=>'stick','a'=>'delete','id'=>$bookid, 'tid'=>$stick['id']));?>">删除</a>|排序:<?php echo $stick['sort'];?><br/>
		<?php $x++;?>
	<?php endforeach;?>
<?php else:?>
	本书会暂无置顶贴<br/>
<?php endif;?>
<br/>
-----------
<br/>
新置顶贴
<br/>
标题：<input type='text' name='subject' maxlength='200' format='M*m' />
<br/>
内容：<input type='text' name='content' format='M*m' />
<br/>
排序：<input type='text' name='sort' format='M*m' value='1' />
<br/>
<anchor><go href='<?php echo url('system', array('s'=>'forum','c'=>'stick','a'=>'create','id'=>$bookid));?>' accept-charset='utf-8' method='post'>
<postfield name='subject' value='$(subject)'/>
<postfield name='content' value='$(content)'/>
<postfield name='sort' value='$(sort)'/>
</go>提交</anchor>    
<br/>

注：
<br/>
1.每个书会最多只能添加3个置顶贴
<br/>
2.排序值越高的排的越上
<br/>

---------------
<br/>
返回<a href="<?php echo url('system',array('s'=>'forum','c'=>'manage','id'=>$bookid));?>">管理</a>.<a href="<?php echo url('system',array('s'=>'forum','id'=>$bookid));?>">书会</a>.<a href="<?php echo url('system',array('s'=>'member'));?>">书房</a>
<br/>
<?php include_once tpl('footer');?>