0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
templates
/
[
Home
]
File: tiki-poll_results_bar.tpl
{if $showtitle eq 'y'} <div class="poll-title"> <strong>{$poll_info.title|escape}</strong> </div> {/if} <div class="pollresults"> {cycle values="even,odd" print=false} <table class="pollresults"> {section name=ix loop=$poll_info.options} <tr class="{cycle}"> <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} {tr}votes{/tr}<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>