root/dev/templates/standings.tpl @ 324

Revision 158, 1.3 KB (checked in by exi, 14 years ago)

Fix for ticket:34, wrong campaign duration calculation.
Contracts now end at 23:59:59 on the entered day, edit existing contracts for this change to take into account.
Converted the 3 different thumbnail creations into one thumbnail class, please leave a note on problems.
Added 40 more item classes to the autoupgrade code.
Changed http class to supress errors.
Fixed parser to properly check the victim against granted posting permissions.

Line 
1<table class="kb-table">
2{section name=opt loop=$standings}
3  <tr class="kb-table-header"><td colspan="5">{$standings[opt].name}</td></tr>
4  <tr class="kb-table-header"><td>&nbsp;</td><td>Name</td><td>Standing</td><td>Comment</td></tr>
5{section name=idx loop=$standings[opt].list}
6  <tr class="kb-table-row-even">
7{if $standings[opt].name=='Alliances'}
8    <td width="32" height="34" valign="top" align="right" style="background-image: url(?a=thumb&amp;type=alliance&amp;size=32&amp;id={$standings[opt].list[idx].pid});"><img src="img/sta_{$standings[opt].list[idx].icon}.png"/></td>
9    <td><b><a href="?a=alliance_detail&amp;all_id={$standings[opt].list[idx].id}">{$standings[opt].list[idx].text}</a></b>{$standings[opt].list[idx].descr}</td>
10{else}
11    <td width="32" height="34" valign="top" align="right" style="background-image: url(?a=thumb&amp;type=corp&amp;size=32&amp;id={$standings[opt].list[idx].id});"><img src="img/sta_{$standings[opt].list[idx].icon}.png"/></td>
12    <td><b><a href="?a=corp_detail&amp;crp_id={$standings[opt].list[idx].id}">{$standings[opt].list[idx].text}</a></b>{$standings[opt].list[idx].descr}</td>
13{/if}
14    <td align="right">{$standings[opt].list[idx].value}</td>
15    <td align="center">{$standings[opt].list[idx].comment}</td>
16{/section}
17{sectionelse}
18  <tr><td>None.</td></tr>
19{/section}
20</table>
Note: See TracBrowser for help on using the browser.