Show
Ignore:
Timestamp:
02/17/07 15:24:06 (14 years ago)
Author:
exi
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/kill_related.php

    r186 r188  
    367367$html .= $smarty->fetch(get_tpl('battle_overview')); 
    368368 
    369 $html .= "<div class=kb-kills-header>Related kills</div>"; 
     369$html .= '<div class="kb-kills-header">Battle Statistics</div>'; 
     370$html .= "<table class=kb-table width=\"100%\" border=\"0\" cellspacing=1><tr class=kb-table-row-even>"; 
     371 
     372$kill_summary = new KillSummaryTable($klist, $llist); 
     373$summary_html = $kill_summary->generate(); 
     374 
     375$html .= "<td class=kb-table-cell width=180><b>Kills:</b></td><td class=kl-kill>".$kill_summary->getTotalKills()."</td></tr>"; 
     376$html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Losses:</b></td><td class=kl-loss>".$kill_summary->getTotalLosses()."</td></tr>"; 
     377$html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($kill_summary->getTotalKillISK()/1000000, 2)."M</td></tr>"; 
     378$html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($kill_summary->getTotalLossISK()/1000000, 2)."M</td></tr>"; 
     379if ($kill_summary->getTotalKillISK()) 
     380{ 
     381    $efficiency = round($kill_summary->getTotalKillISK() / ($kill_summary->getTotalKillISK() + $kill_summary->getTotalLossISK()) * 100, 2); 
     382} 
     383else 
     384{ 
     385    $efficiency = 0; 
     386} 
     387 
     388$html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Efficiency:</b></td><td class=kb-table-cell><b>" . $efficiency . "%</b></td></tr>"; 
     389 
     390$html .= "</table>"; 
     391$html .= "<br/>"; 
     392 
     393 
     394$html .= "<div class=\"kb-kills-header\">Related kills</div>"; 
    370395 
    371396$ktable = new KillListTable($klist); 
    372397$html .= $ktable->generate(); 
    373398 
    374 $html .= "<div class=kb-losses-header>Related losses</div>"; 
     399$html .= "<div class=\"kb-losses-header\">Related losses</div>"; 
    375400 
    376401$ltable = new KillListTable($llist);