Advertisement
Guest User

killstable.tpl

a guest
Dec 16th, 2011
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.80 KB | None | 0 0
  1. <!-- killlistable.tpl -->
  2. {if function_exists('getCynoList') && config::get('cc_cyno')}
  3.     {$cynos = call_user_func('getCynoList')}   
  4. {/if}
  5. {if function_exists('getCloakList') && config::get('cc_cloak')}
  6.     {$cloaks = call_user_func('getCloakList')}
  7. {/if}
  8.  
  9. <div class="kltable">
  10.     {section name=day loop=$killlist}
  11.         {if $daybreak}
  12.             <div class="kb-date-header">{"l, F jS"|date:$killlist[day].date}</div><br />
  13.         {/if}
  14.         <table class="kb-table kb-kl-table kb-table-rows">
  15.             <thead>
  16.                 <tr class="kb-table-header">
  17.                     <td class="kl-shiptype" colspan="{if isset($cynos) || isset($cloaks)}3{else}2{/if}">Ship type</td>
  18.                     <td colspan="2" class="kl-victim">Victim</td>
  19.                     <td class="kl-finalblow">Final blow</td>
  20.                     <td class="kl-location">Location</td>
  21.                 </tr>
  22.             </thead>
  23.             <tbody>
  24.                 {section name=kill loop=$killlist[day].kills}
  25.                     {assign var="k" value=$killlist[day].kills[kill]}                  
  26.                     {assign var="killid" value=preg_split('/kll_id=/', $k.urldetail)}
  27.                    
  28.                     {if $k.loss}
  29.                         <tr class="kb-table-row-loss" onclick="window.location.href='{$k.urldetail}';">
  30.                         {elseif $k.kill}
  31.                         <tr class="kb-table-row-kill" onclick="window.location.href='{$k.urldetail}';">
  32.                         {else}
  33.                         <tr onclick="window.location.href='{$k.urldetail}';">
  34.                         {/if}
  35.                         <td class="kb-table-imgcell">
  36.                             <img src='{$k.victimshipimage}' style="width: 32px; height: 32px;" alt="" />
  37.                         </td>
  38.                         {if isset($cynos) || isset($cloaks)}
  39.                             <td class="kl-cyno-cloak-mod{if isset($cloaks)} cloak{/if}{if isset($cynos)} cyno{/if}">
  40.                                 {if isset($cloaks)}
  41.                                     <img src=http://image.eveonline.com/InventoryType/11370_32.png {if in_array((int)$killid[1], $cloaks)}style="opacity:1;"{/if} alt="" />
  42.                                 {/if}
  43.                                 {if isset($cynos)}
  44.                                     <img src=http://image.eveonline.com/InventoryType/21096_32.png {if in_array((int)$killid[1], $cynos)}style="opacity:1;"{/if} alt="" />
  45.                                 {/if}
  46.                             </td>
  47.                         {/if}
  48.                         <td class="kl-shiptype-text">
  49.                             <div class="no_stretch kl-shiptype-text">
  50.                                 <b>{$k.victimshipname}</b>
  51.                                 <br />
  52.                                 {$k.victimshipclass}
  53.                             </div>
  54.                         </td>
  55.                         {if !$k.allianceexists}
  56.                             <td class="kb-table-imgcell">&nbsp;</td>
  57.                         {else}
  58.                             <td class="kb-table-imgcell"><img src="{$k.victimallianceicon}" style="border: 0px; width: 32px; height: 32px;" title="{$k.victimalliancename}" alt="{$k.victimalliancename}" /></td>
  59.                             {/if}
  60.                         <td class="kl-victim-text">
  61.                             <div class="no_stretch kl-victim-text">
  62.                                 {if $k.loss}
  63.                                     <a href="{$k.urlvictim}"><b>{$k.victim}</b></a>
  64.                                     <br />
  65.                                     <a href="{$k.urlvictimcorp}">{$k.victimcorp}</a>
  66.                                 {else}
  67.                                     {if $k.victimalliancename != "None" && $k.victimalliancename != "NONE"}
  68.                                         <a href="{$k.urlvictim}"><b>{$k.victim}</b></a><br /><a href="{$k.urlvictimall}">{$k.victimalliancename}</a>
  69.                                     {else}
  70.                                         <a href="{$k.urlvictim}"><b>{$k.victim}</b></a><br /><a href="{$k.urlvictimcorp}">{$k.victimcorp}</a>
  71.                                     {/if}
  72.                                 {/if}
  73.                             </div>
  74.                         </td>
  75.                         <td class="kl-finalblow">
  76.                             <div class="no_stretch kl-finalblow">
  77.                                 <a href="{$k.urlfb}"><b>{$k.fb}</b></a>
  78.                                 <br />
  79.                                 <a href="{$k.urlfbcorp}">{$k.fbcorp}</a>
  80.                             </div>
  81.                         </td>
  82.                         <td class="kb-table-cell kl-location">
  83.                             <div class="no_stretch kl-location">
  84.                                 {if $config->get('killlist_regionnames')} {$k.region}, {$k.system}{else}<b>{$k.system}</b>{/if} ({if $k.loss || $k.kill}{$k.systemsecurity|max:0|string_format:"%01.1f"}{else}<span style="color:{if $k.systemsecurity >= 0.5}green{elseif $k.systemsecurity < 0.05}red{else}orange{/if};">{$k.systemsecurity|max:0|string_format:"%01.1f"}</span>{/if})<br /></div>
  85.                                 {if $k.inv || $comments_count}
  86.                                     <div class="kl-inv-comm">
  87.                                         {if $k.inv}<img src="{$theme_url}/img/involved10_10.png"  alt="I:" /> {$k.inv}{/if}
  88.                                         {if $comments_count}<span {if  !$k.commentcount}style="visibility: hidden"{/if}><img src="{$theme_url}/img/comment_white13_10.gif" alt="C:" /> {$k.commentcount}</span>{/if}
  89.                                     </div>
  90.                                 {/if}
  91.                             <div class="kl-date">
  92.                                 {if $daybreak}
  93.                                     {if $k.urlrelated}
  94.                                         <a href="{$k.urlrelated}"><b>{$k.timestamp|date_format:"%H:%M"}</b></a>
  95.                                     {else}
  96.                                         <b>{$k.timestamp|date_format:"%H:%M"}</b>
  97.                                     {/if}
  98.                                 {else}
  99.                                     {if $k.urlrelated}
  100.                                         <a href="{$k.urlrelated}"><b>{$k.timestamp|date_format:"%y-%m-%d"} {$k.timestamp|date_format:"%H:%M"}</b></a>
  101.                                     {else}
  102.                                         <b>{$k.timestamp|date_format:"%y-%m-%d"} {$k.timestamp|date_format:"%H:%M"}</b>
  103.                                     {/if}
  104.                                 {/if}
  105.                             </div>
  106.                         </td>
  107.                     </tr>
  108.                 {/section}
  109.             </tbody>
  110.         </table>
  111.     {sectionelse}
  112.         <p>No data.</p>
  113.     {/section}
  114. </div>
  115. <!-- /killlistable.tpl -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement