<!--{template 'default/head'}-->
<style type="text/css">
	.vote td{padding:5px 0}
</style>
<div class="main cbody margintop">
	<form onsubmit="return checkVote(this, {$subject['voteid']});" method="post" action="index.php?ac=vote&action=save&voteid={$subject['voteid']}" name="voteform-{$subject['voteid']}" id="voteform-{$subject['voteid']}">
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="vote">
			<tr align="center" bgcolor="#F3F3F3">
				<td colspan="3"><b>{$subject['subject']}</b></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td width="200" height="26" align="center">投票总数：<font color="red">{$num}</font></td>
				<td width="50">&nbsp;</td>
				<td width="360">开始日期：<font color="red">{$subject['addtime']}</font>&nbsp;&nbsp;&nbsp;&nbsp;结束日期：<font color="red">{$subject['totime']}</font></td>
			</tr>
			<!--{loop $options $i $option}-->
			<tr bgcolor="#FFFFFF">
				<td height="20" style="padding-right:20px;text-align:right;">
					<label for="vote-{$option['voteid']}-{$option['optionid']}" style="margin-right:6px;">{$option['voteoption']}</label>
					<!--{if $subject['type']}-->
						<input type="checkbox" name="option[]" value="{$option['optionid']}" id="vote-{$option['voteid']}-{$option['optionid']}" />
					<!--{else}-->
						<input type="radio" name="option" value="{$option['optionid']}" id="vote-{$option['voteid']}-{$option['optionid']}" />
					<!--{/if}-->
				</td>
				<td align="center">{$option['percent3']}%</td>
				<td>
					<table cellpadding="0" cellspacing="0" border="0" width="360" bgcolor="#e1e1e1">
						<tr>
							<td height="20" width="{$option['percent1']}" bgcolor="red"></td>
							<td width="{$option['percent2']}"  bgcolor="#999999"></td>
						</tr>
					</table>
				</td>
			</tr>
			<!--{/loop}-->
			<tr>
				<td align="right" style="padding-right:20px;">
					<input type="hidden" name="voteid" value="{$subject['voteid']}" />
					<!--{if $subject['status'] == true}-->
						<input type="submit" id="vote-submit-{$subject['voteid']}" class="f-button" value=" 提交投票 " />
					<!--{else}-->
						<input type="submit" id="vote-submit{$subject['voteid']}" disabled class="f-button" value=" 提交投票 " />
						<span style="margin-left:12px;">该投票已经结束</span>
					<!--{/if}-->
				</td>
				<td colspan="2"></td>
			</tr>
		</table>
	</form>
</div>
<!--{template 'default/foot'}-->
