<?php $title = $this->filter($forum['name']) . ' - 社区';?>
<?php include_once tpl('globalHeader');?>
<?php if ($num):?>
<div class="nav">投票项目</div>
<form action="<?php echo url('system',array('s'=>'bbs','c'=>'thread','a'=>'polls','fid'=>$fid));?>" method="post">
<div class="comment">
投票有效天:
<input type="text" name="days" value="10" format="*N" size="4" />天
<br/>
是否多选:<select name="multiple" value="0"><option value="0">否</option><option value="1">是</option></select>
<br/>
是否允许修改选项:<select name="edit" value="0"><option value="0">否</option><option value="1">是</option></select>
<br/>
最多选<input type="type" name="max" value="1" format="*N" size="4" />个
<br/>
最少选<input type="type" name="min" value="1" format="*N" size="4" />个
</div>
<div class="comment">
<?php for ($i = 1; $i <= $num; $i++):?>
	选项<?php echo $i;?>.<input name="option_<?php echo $i;?>" size="8" /><br/>
<?php endfor;;?>
</div>
<div class="comment">
标题:(3-20字)
<br/>
<input type="text" name="subject" maxlength="20" />
<br/>
<input type="text" name="rpdays" value="0" maxlength="3" size="3" />天内有回复短信通知(0表示不通知,最多不超过10天)
<br/>
<?php $this->widget('bbs.widgets.ThreadTypeWidget',array('fid'=>$forum['fid']));?>
内容:(20-50000字)
<textarea style="width: 99%" name="content" rows="8"></textarea>
</div>
<input type="submit" value="确定发表" />
</form>
<?php else:?>
<form action="<?php echo url('system',array('s'=>'bbs','c'=>'thread','a'=>'polls','fid'=>$fid));?>" method="get">
<input type="hidden" name="s" value="bbs" />
<input type="hidden" name="c" value="thread" />
<input type="hidden" name="a" value="polls" />
<input type="hidden" name="fid" value="<?php echo $fid;?>" />
<input type="hidden" name="sid" value="<?php echo $this->sid();?>" />
<input type="hidden" name="st" value="2" />
请输入你的投票项目数最多10条:
<br/>
<input type="text" name="num" value="3" size="4" />
<br/>
<input type="submit" value="确定" />
</form>
<?php endif;?>
<?php echo date('n/d H:i:s');?>
<br/>
<?php echo $this->nav($forum['fid']);?>
</html>