<?php include_once tpl('header');?>
<card title="<?php echo $this->filter($forum['name']);?> - 社区">
<p align="left">
<?php if ($num):?>
=投票项目=
<br/>
投票有效天:
<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" />个
<br/>
--------------
<br/>
<?php for ($i = 1; $i <= $num; $i++):?>
	选项<?php echo $i;?>.<input name="option_<?php echo $i;?>" size="8" /><br/>
<?php endfor;;?>
--------------
<br/>
标题:(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字)
<br/>
<input type="text" name="content" value="" format="M*m" />
<br/>
<anchor title="确定发表">确定发表<go method="post" href="<?php echo url('system',array('s'=>'bbs','c'=>'thread','a'=>'polls','fid'=>$fid));?>">
	<postfield name="subject" value="$(subject)" />
	<postfield name="content" value="$(content)" />
	<postfield name="days" value="$(days)" />
	<postfield name="rpdays" value="$(rpdays)" />
	<postfield name="type" value="$(type)" />
	<postfield name="max" value="$(max)" />
	<postfield name="min" value="$(min)" />
	<postfield name="edit" value="$(edit)" />
	<postfield name="multiple" value="$(multiple)" />
	<?php for($i = 1; $i <= $num; $i++):?>
	<postfield name="option_<?php echo $i;?>" value="$(option_<?php echo $i;?>)" />
	<?php endfor;?>
</go>
</anchor>
<?php else:?>
请输入你的投票项目数最多10条:
<br/>
<input type="text" name="num" value="3" size="4" /><a href="<?php echo url('system',array('s'=>'bbs','c'=>'thread','a'=>'polls','fid'=>$fid));?>&amp;num=$(num)">确定</a>
<br/>
<?php endif;?>
<br/>
<br/>
<?php echo date('n/d H:i:s');?>
<br/>
-----------------------
<br/>
<?php echo $this->nav($forum['fid']);?>
</p>
</card>
</wml>