{template 'phpcms','header'}
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkop()
{	var checkedCount=0;	
	for(var i=0;i<document.forms["votefrom"].elements.length;i++){
		if(document.forms["votefrom"].elements[i].checked) checkedCount++;
	}
	if(checkedCount<1){
		alert("你没有选择选项");
		return false;
	}
	return true;
}
//-->
</SCRIPT>
<div class="position">当前位置：<a href="{PHPCMS_PATH}">首页</a> >><!--{if $channelid}--><a href="{$channelurl}">{$channelname}</a> >><!--{/if}--> <a href="{PHPCMS_PATH}vote/">投票列表</a> >>{$subject}</div>
<div class="border_6">
<div class="memberborder_2">
<h1>{$subject}</h1>
<table cellpadding="0" cellspacing="0" class="righttable">
  <tr>
    <td colspan="2" class="td_left">
投票人数：{$votenumber} <!--{if ($MOD['vistor'])}-->（<a href="?voteid={$voteid}&showmember=1">查看参与投票的会员</a>）<!--{/if}-->&nbsp;&nbsp;&nbsp;&nbsp;总票数：{$totalnumber} &nbsp;&nbsp;&nbsp;&nbsp;起始日期：{$fromdate}&nbsp;&nbsp;&nbsp;&nbsp;结束日期：{$todate}</td>
  </tr>
<form action="{$MOD[linkurl]}vote.php" method="post" name="votefrom" onsubmit="return checkop();">
 <!--{loop $ops $op}-->
  <tr>
   <td width="30%"  class="td_left"><input name="op[]" type="{$type}" value="{$op[optionid]}"> {$op[option]} </td>
   <td class="td_left">
<img src="{PHPCMS_PATH}images/bar/bar{$op[i]}.gif" width="{$op[lenth]}" height="11">&nbsp;
<b>{$op[number]}</b>&nbsp;({$op[per]})
   </td>
 </tr>
<!--{/loop}-->
<tr>
<td class="td_left" colspan=2>&nbsp;&nbsp;
<input name="voteid" type="hidden" value="{$voteid}" />
<input name="submit" type="submit" value=" 投 票 ">
</td>
</tr>
</form>

<!--{if $MOD['vistor'] && $showmember}-->
  <tr>
    <td colspan="2" class="td_center">参与投票的会员列表</td>
  </tr>
   <tr>
<td colspan="2" class="td_left" style="word-break:break-all">
<!--{loop $memberdata $v}-->
{$v['voteuser']} 投票次数：（{$v['number']}）次
<!--{/loop}-->
</td>
  </tr>
{/if}

</table>
</div>
</div>
{template 'phpcms','footer'}