root/dev/templates/battle_overview_table.tpl @ 491

Revision 213, 1.7 KB (checked in by ralle030583, 14 years ago)

All files (i hope i havent forgott something) was modified to use the the config in this way:
- config::get($key)
- config::del($key)
- config::set($key,value)

Exception Templates/Smarty?:
The templates still uses $config->get($key) and $config->set($key,$value) cause
it seems that smarty dont like the :: notification

Line 
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>
13{else}
14        <img src="{$i.spic}" width="32" height="32" border="0">
15{/if}
16      </td>
17{if $i.podded}
18    {if $config->get('bs_podlink')}
19      <td class="kb-table-cell">
20        <b><a href="?a=pilot_detail&amp;plt_id={$pilot}">{$i.name}</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}">{$i.name}</a></b><br/>{$i.ship}
25      </td>
26    {/if}
27{else}
28      <td class="kb-table-cell"><b><a href="?a=pilot_detail&amp;plt_id={$pilot}">{$i.name}</a></b><br/>{$i.ship}</td>
29{/if}
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>
32{/foreach}
33{/foreach}
34</table>
Note: See TracBrowser for help on using the browser.