<?php include_once tpl('header');?>
<card title="禁止用户 - <?php echo setting('webname');?>">
<p align="left">
<select name="utype" value="uid">
	<option value="uid">UID</option>
    <option value="username">昵称</option>
</select>
<input type='text' name='user' value='<?php echo $uid;?>' maxlength='16' format='M*m' />
<br/>
禁止类型:<select name="type">
	<?php if ($isBanPost):?><option value="post">禁止发言</option><?php endif;?>
	<?php if ($isBanVisit):?><option value="visit">禁止访问</option><?php endif;?>
</select>
<br/>
有效期:
<select name="expiry">
    <option value="0">永久</option>
    <option value="1">一天</option>
    <option value="3">三天</option>
    <option value="5">五天</option>
    <option value="7">一周</option>
    <option value="14">两周</option>
    <option value="30">一月</option>
    <option value="60">两月</option>
    <option value="90">三月</option>
    <option value="180">半年</option>
    <option value="365">一年</option>
</select>
<br/>
范围:<select name="range">
	<?php if ($isBanPost || $isBanVisit):?><option value="<?php echo $fid;?>">本版块</option><?php endif;?>
	<?php if ($isBanPost && 2 == $isBanPost || $isBanVisit && 2 == $isBanVisit):?><option value="0">整个社区</option><?php endif;?>
</select>
<br/>
禁言原因:<input type='text' name='reason' maxlength='200' />
<br/>
<anchor><go href='<?php echo url('system',array('s'=>'bbs','c'=>'manage','a'=>'ban','tid'=>$tid,'uid'=>$uid));?>' accept-charset='utf-8' method='post'>
	<postfield name='user' value='$(user)'/>
	<postfield name='utype' value='$(utype)'/>
	<postfield name='type' value='$(type)'/>
	<postfield name='expiry' value='$(expiry)'/>
	<postfield name='range' value='$(range)'/>
	<postfield name='reason' value='$(reason)'/>
	<postfield name='do' value='1'/>
</go>提交</anchor>
<br/>
<br/>
返回<?php echo backLink('上级')?>/<?php echo ilink('版块',url('system',array('s'=>'bbs','a'=>'forum','fid'=>$fid)));?>
<br/>
时间：<?php echo date('n/d H:i:s');?>
<br/>    
</p>
</card>
</wml>