root/dev/templates/killlisttable.tpl @ 491

Revision 487, 4.5 KB (checked in by kovell, 11 years ago)

Fixes: date, alliance = None for killlist tables. Added: CCPDB update code from EDK3

Line 
1 <!-- killlistable.tpl -->
2{section name=day loop=$killlist}
3    {if $daybreak}
4<div class="kb-date-header">{"l, F jS"|date:$killlist[day].date}</div><br>
5    {/if}
6<div style="text-align: center;"><table class="kb-table" style="width: 100%; margin-left: auto; margin-right: auto; text-align: left;" cellspacing="1">
7    <tr class="kb-table-header">
8        <td class="kb-table-header" colspan="2" align="center">Ship type</td>
9        <td class="kb-table-header"{if $config->get('killlist_alogo')} colspan="2"{/if}>Victim</td>
10        <td class="kb-table-header">Final blow</td>
11        <td class="kb-table-header" align="center">System</td>
12        {if $config->get('killlist_involved')}
13                        <td class="kb-table-header" align="center">Inv.</td>
14                {/if}
15        <td class="kb-table-header" align="center">Time</td>
16    {if $comments_count}
17        <td class="kb-table-header" align="center"><img src="{$img_url}/comment{$comment_white}.gif" alt="comments"></td>
18    {/if}
19    </tr>
20    {cycle reset=true print=false name=ccl values="kb-table-row-even,kb-table-row-odd"}
21    {section name=kill loop=$killlist[day].kills}
22        {assign var="k" value=$killlist[day].kills[kill]}
23{if $k.loss}
24<tr class="{cycle name=ccl}-loss" onClick="window.location.href='?a=kill_detail&amp;kll_id={$k.id}';">
25{elseif $k.kill}
26<tr class="{cycle name=ccl}-kill" onClick="window.location.href='?a=kill_detail&amp;kll_id={$k.id}';">
27{else}
28<tr class="{cycle advance=false name=ccl}" onmouseout="this.className='{cycle name=ccl}';" style="height: 34px; cursor: pointer;"
29onmouseover="this.className='kb-table-row-hover';" onClick="window.location.href='?a=kill_detail&amp;kll_id={$k.id}';">
30{/if}
31        <td style="width: 32px" align="center"><img src="{$k.victimshipimage}" style="border-width: 0; width: 32px; height: 32;" alt=""></td>
32        <td style="height: 34px; width: 180px; vertical-align: middle;"><div class="kb-shiptype"><b>{$k.victimshipname|truncate:21:"...":true}</b><br>{$k.victimshipclass|truncate:24:"...":true}</div><div class="kb-shipicon"><img src="{$k.victimshipindicator}" style="border-width: 0px;" alt=""></div></td>
33        {if $config->get('killlist_alogo')}
34            {if $k.allianceexists}
35            <td style="width: 32px" align="center"><img src="{$img_url}/alliances/{$k.victimallianceicon}.png" style="border-width: 0px; width: 32px; height: 32px;" title="{$k.victimalliancename}" alt="{$k.victimalliancename}"></td>
36            {elseif strcasecmp ( $k.victimalliancename, "None" ) != 0 }
37            <td style="width: 32px" align="center"><img src="{$img_url}/alliances/default.gif" style="border-width: 0px; width: 32px; height:32px;" title="{$k.victimalliancename}" alt="{$k.victimalliancename}"></td>
38            {else}
39            <td style="width: 32px" align="center">&nbsp;</td>
40            {/if}
41        {/if}
42{if $k.loss}
43        <td style="width: 235px" class="kb-table-cell"><b>{$k.victim}</b><br>{if $config->get('corpalliance-name')}<b>Corp:</b> {$k.victimcorp|truncate:27}{else}{$k.victimcorp|truncate:31}{/if}</td>
44{else}
45        {if $config->get('corpalliance-name')}
46                        {if strcasecmp ( $k.victimalliancename, "None" ) != 0 }
47                        <td style="width: 235px" class="kb-table-cell"><b>{$k.victim}</b><br><b>Alliance:</b> {$k.victimalliancename|truncate:27}</td>
48                        {else}
49                        <td style="width: 235px" class="kb-table-cell"><b>{$k.victim}</b><br><b>Corp:</b> {$k.victimcorp|truncate:30}</td>
50                        {/if}
51                {else}
52                        <td style="width: 235px" class="kb-table-cell"><b>{$k.victim}</b><br>{$k.victimcorp|truncate:35}</td>
53                {/if}
54{/if}
55        <td style="width: 190px" class="kb-table-cell"><b>{$k.fb}</b><br>{$k.fbcorp|truncate:27}</td>
56        <td style="width: 100px" class="kb-table-cell" align="center"><b>{$k.system|truncate:10}</b><br>({$k.systemsecurity|max:0|string_format:"%01.1f"})</td>
57        {if $config->get('killlist_involved')}
58                        <td style="width: 30px" align="center" class="kb-table-cell"><b>{$k.inv}</b></td>
59                {/if}
60        {if $daybreak}
61        <td class="kb-table-cell" align="center"><b>{$k.timestamp|date_format:"%H:%M"}</b></td>
62        {else}
63        <td class="kb-table-cell" align="center" width=80><b>{$k.timestamp|date_format:"%Y-%m-%d"}<br>{$k.timestamp|date_format:"%H:%M"}</b></td>
64        {/if}
65        {if $comments_count}
66        <td style="width: 10px" class="kb-table-cell" align="center"><b>{$k.commentcount}</b></td>
67        {/if}
68    </tr>
69    {/section}
70</table></div>
71{sectionelse}
72<p>No data.
73{/section} <!-- /killlistable.tpl -->
Note: See TracBrowser for help on using the browser.