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