Kyberia v2.3 - 1st revision from SVN (Without patches of kyberia.sk team)
[mirrors/Kyberia-bloodline.git] / data / templates / own_templates / 1549834.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>{if $get_poll.voted eq 'yes'}{$option.text}{else}
10 <form method='post' action='/id/{$get_poll.node_id}'>{$option.text}&nbsp;<input type='submit' name='event' value='vote'><input type='hidden' name='poll_option' value='{$smarty.foreach.poll_option.iteration}'></form>{/if}</td><td>
11 <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></td><td>{math equation="(x/y)*100" format="%.1f" x=$option.number y=$get_poll.total}%</td></tr>
12 {/foreach}
13 <tr><td colspan='3' align='center'><i>{$get_poll.total} voted</i></td></tr>
14 </table>
15 {/if}
16 <!--end of showing poll-->
17
This page took 0.27268 seconds and 4 git commands to generate.