Kyberia v2.0
[mirrors/Kyberia-bloodline.git] / templates / sv / modules / show_poll.tpl~
1 {if $get_poll.question eq true}
2 <table width='66%' align='center' class='bordered'>
3 <tr><td colspan='3' align='center'><b>{$get_poll.question}</b></td></tr>
4 {foreach from=$get_poll.options item=option name=poll_option}
5 <tr><td>
6 {if $get_poll.voted eq 'yes'}
7 {$option.text}
8 {else}
9 <a href='/id/{$get_poll.node_id}/{$smarty.foreach.poll_option.iteration}'>{$option.text}</a>
10 {/if}
11
12 <td>{math equation="(x/y)*100" format="%.1f" x=$option.number y=$get_poll.total}%</td></tr>
13
14 {/foreach}
15 <tr><td colspan='3' align='center'><i>{$get_poll.total} voted</i></td></tr>
16 </table>
17 {/if}
18 <!--end of showing poll-->
This page took 0.258635 seconds and 4 git commands to generate.