<?php $title = '禁止用户 - 社区';?>
<?php include_once tpl('globalHeader');?>
<form action="<?php echo url('system',array('s'=>'bbs','c'=>'manage','a'=>'ban','tid'=>$tid,'uid'=>$uid));?>" method="post">
<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' />
<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/>
禁言原因:<textarea name="reason"></textarea>
<br/>
<input type="hidden" name="do" value="1" />
<input type="submit" value="提交" />
</form>
<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');?>
</html>