<?php /* Smarty version 2.6.26, created on 2011-04-11 16:03:12
         compiled from result.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'color', 'result.htm', 25, false),)), $this); ?>
	
    <script type="text/javascript">var P = new Mo.Process();</script>
    
	<table id="result" border="0" cellpadding="3" cellspacing="1">
		
		<?php $_from = $this->_tpl_vars['form']['groups']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['gid'] => $this->_tpl_vars['group']):
?>
		
		<tr class="title">
			<td class="tag-id"></td>
			<td class="tag-option"><strong><?php echo $this->_tpl_vars['group']['name']; ?>
</strong></td>
			<td class="tag-scale"></td>
		</tr>

					
            <?php if ($this->_tpl_vars['group']['status'] > 0): ?>
            
            <script type="text/javascript">var G = new P.Group('<?php echo $this->_tpl_vars['group']['id']; ?>
');</script>
            
            <tr class="line">
                <td><?php echo $this->_tpl_vars['group']['id']; ?>
</td>
                <td>正确</td>
                <td>
                    <span class="count"><?php echo $this->_tpl_vars['group']['stat']; ?>
 票</span>
                    <span id="percent-<?php echo $this->_tpl_vars['group']['id']; ?>
-A">0%</span>
                    <div class="ratio"><span id="option-<?php echo $this->_tpl_vars['group']['id']; ?>
-A" style="background:<?php echo rand_color(array(), $this);?>
;" /></div>
                </td>
            </tr>
            <tr class="line">
                <td><?php echo $this->_tpl_vars['group']['id']; ?>
</td>
                <td>错误</td>
                <td>
                    <span class="count"><?php echo $this->_tpl_vars['form']['stat']-$this->_tpl_vars['group']['stat']; ?>
 票</span>
                    <span id="percent-<?php echo $this->_tpl_vars['group']['id']; ?>
-B">0%</span>
                    <div class="ratio"><span id="option-<?php echo $this->_tpl_vars['group']['id']; ?>
-B" style="background:<?php echo rand_color(array(), $this);?>
;" /></div>
                </td>
            </tr>            
            
            <script type="text/javascript">
				G.Option("<?php echo $this->_tpl_vars['group']['id']; ?>
-A",<?php echo $this->_tpl_vars['group']['stat']; ?>
);
				G.Option("<?php echo $this->_tpl_vars['group']['id']; ?>
-B",<?php echo $this->_tpl_vars['form']['stat']-$this->_tpl_vars['group']['stat']; ?>
);
			</script>            
            
            <?php endif; ?>

		<?php endforeach; endif; unset($_from); ?>
		
	</table>
	
	<div id='send'>
		<p>
		<input type='button' class='submit' name='button' onclick='location.href="?mode=<?php echo $this->_tpl_vars['mode']; ?>
&id=<?php echo $this->_tpl_vars['fid']; ?>
";' value='返回活动' />
		</p>
	</div>
    
    <script type="text/javascript">P.Show();</script>