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