You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
1.2 KiB

{* $Id$ *}
{if $showtitle eq 'y'}
<div class="poll-title">
<strong>{$poll_info.title|escape}</strong>
</div>
{/if}
<div class="pollresults">
<table class="pollresults">
{section name=ix loop=$poll_info.options}
<tr>
<td class="pollr">
{if $smarty.section.x.total > 1}<a href="tiki-poll_results.php?{if !empty($scoresort_desc)}scoresort_asc{else}scoresort_desc{/if}={$smarty.section.ix.index}">{/if}
{$poll_info.options[ix].title|escape}
{if $smarty.section.x.total > 1}</a>{/if}
</td>
<td class="pollr">
{quotabar length=$poll_info.options[ix].width} {$poll_info.options[ix].percent}%{if $showtotal ne 'n'} ({$poll_info.options[ix].votes}){/if}
</td>
</tr>
{/section}
</table>
<br>
{if $showtotal ne 'n'}
{tr}Number of votes:{/tr} {$poll_info.votes}<br><br>
{/if}
{if is_numeric($poll_info.total)}
{tr}Total:{/tr} {$poll_info.total}<br>
{tr}Average:{/tr} {math equation="x/y" x=$poll_info.total y=$poll_info.votes format="%.2f"}
{/if}
</div>