root/dev/templates/battle_overview_table.tpl @ 188

Revision 188, 1.7 KB (checked in by exi, 14 years ago)

Changed default td width for options to 160px.
Added the appropiate timeframe to the fast contractlisttable.
Events now can also return a reference to a variable containing additional information.
Killlists now return a non formatted isk-value for losses/kills, please report any errors on other pages.
Added a custom user menu, able to be shownon every page.
Added some code for user logins, please ignore it for now.
Added a small battle statistics frame to the battle overview.
To login as admin now just leave user blank and use the admin password.

1<table class="kb-table" width="95%" align="center">
2    <tr class="kb-table-header">
3      <td class="kb-table-header" colspan="2" align="center">Pilot/Ship</td>
4      <td class="kb-table-header" align="center" style="min-width: 45%; width: 45%; max-width: 45%;">Corp/Alliance</td>
5    </tr>
6{cycle reset=true print=false name=ccl values="kb-table-row-even,kb-table-row-odd"}
7{foreach from=$loop item=a key=pilot}
8{foreach from=$a item=i key=b}
9    <tr class="{cycle name=ccl}"{if $i.destroyed} style="background-color: #EE4444;"{/if}>
10      <td width="32" height="32" style="max-width: 32px;">
11{if $i.destroyed}
12        <a href="?a=kill_detail&amp;kll_id={$i.kll_id}"><img src="{$i.spic}" width="32" height="32" border="0"></a>
14        <img src="{$i.spic}" width="32" height="32" border="0">
16      </td>
17{if $i.podded}
18    {if $config->getConfig('bs_podlink')}
19      <td class="kb-table-cell">
20        <b><a href="?a=pilot_detail&amp;plt_id={$pilot}">{$}</a>&nbsp;<a href="?a=kill_detail&amp;kll_id={$i.podid}">[Pod]</a></b><br/>{$i.ship}
21      </td>
22    {else}
23      <td class="kb-table-cell" style="background-image: url({$podpic}); background-repeat: no-repeat; background-position: right;">
24        <b><a href="?a=pilot_detail&amp;plt_id={$pilot}">{$}</a></b><br/>{$i.ship}
25      </td>
26    {/if}
28      <td class="kb-table-cell"><b><a href="?a=pilot_detail&amp;plt_id={$pilot}">{$}</a></b><br/>{$i.ship}</td>
30      <td class="kb-table-cell"><b><a href="?a=corp_detail&amp;crp_id={$i.cid}">{$i.corp}</a></b><br/><a href="?a=alliance_detail&amp;all_id={$i.aid}" style="font-weight: normal;">{$i.alliance}</a></td>
31    </tr>
Note: See TracBrowser for help on using the browser.