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