<?php 
!empty($permission) && extract($permission);
!empty($editadminset) && $editadminset = explode(',',$editadminset);
!empty($deladminset) && $deladminset = explode(',', $deladminset);
?>
<fieldset>
    <legend></legend>
    <table class="tab">
        <tr>
    		<th>允许警告用户</th>
    		<td><?php echo CHtml::radioButtonList('p[iswarning]',$iswarning,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台主题贴留言</th>
    		<td><?php echo CHtml::radioButtonList('p[isleaveadmin]',$isleaveadmin,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
        <tr>
    		<th>前台主题允许标记“已阅”</th>
    		<td><?php echo CHtml::radioButtonList('p[isthreadmark]',$isthreadmark,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台回复已锁贴</th>
    		<td><?php echo CHtml::radioButtonList('p[isrplock]',$isrplock,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台帖子移动</th>
    		<td><?php echo CHtml::radioButtonList('p[ismovepost]',$ismovepost,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台帖子加精</th>
    		<td><?php echo CHtml::radioButtonList('p[isdigestadmin]',$isdigestadmin,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台帖子取消精华</th>
    		<td><?php echo CHtml::radioButtonList('p[isundigestadmin]',$isundigestadmin,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台帖子锁定</th>
    		<td><?php echo CHtml::radioButtonList('p[islockadmin]',$islockadmin,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台帖子取消锁定</th>
    		<td><?php echo CHtml::radioButtonList('p[isunlockadmin]',$isunlockadmin,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台帖子下沉</th>
    		<td><?php echo CHtml::radioButtonList('p[issinkadmin]',$issinkadmin,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台帖子提前</th>
    		<td><?php echo CHtml::radioButtonList('p[ispushadmin]',$ispushadmin,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台帖子提前时间上限(小时)</th>
    		<td><?php echo CHtml::textField('p[pushtime]',$pushtime,array('size'=>6));?></td>
    	</tr>
    	<tr>
    		<th>前台帖子置顶</th>
    		<td><?php echo CHtml::radioButtonList('p[istopadmin]',$istopadmin,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?>(这个开启才能使用下面的置顶权限)</td>
    	</tr>
    	<tr>
    		<th>前台帖子置顶1(版块内)</th>
    		<td><?php echo CHtml::radioButtonList('p[istop1admin]',$istop1admin,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台帖子置顶3(全局)</th>
    		<td><?php echo CHtml::radioButtonList('p[istop3admin]',$istop3admin,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台删除主题贴</th>
    		<td><?php echo CHtml::radioButtonList('p[isdelpost]',$isdelpost,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台修改主题贴</th>
    		<td><?php echo CHtml::radioButtonList('p[iseditpost]',$iseditpost,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台续写主题贴</th>
    		<td><?php echo CHtml::radioButtonList('p[isappendpost]',$isappendpost,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台删除回复</th>
    		<td><?php echo CHtml::radioButtonList('p[isdelreply]',$isdelreply,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台删除附件</th>
    		<td><?php echo CHtml::radioButtonList('p[isdelatt]',$isdelatt,array(1=>'开启',0=>'关闭'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台禁止发言</th>
    		<td><?php echo CHtml::radioButtonList('p[isbanpost]',$isbanpost, array(0=>'无禁言权限',1=>'单一版块',2=>'所有版块'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>前台禁止访问</th>
    		<td><?php echo CHtml::radioButtonList('p[isbanvisit]',$isbanvisit, array(0=>'无禁止权限',1=>'单一版块',2=>'所有版块'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>可编辑的管理组帖子</th>
    		<td><?php echo CHtml::checkBoxList('p[editadminset]',$editadminset,CHtml::listData($admin,'groupid','grouptitle'),array('separator'=>' '));?></td>
    	</tr>
    	<tr>
    		<th>可删除的管理组帖子</th>
    		<td><?php echo CHtml::checkBoxList('p[deladminset]',$deladminset,CHtml::listData($admin,'groupid','grouptitle'),array('separator'=>' '));?></td>
    	</tr>
	</table>
</fieldset>