Changeset 188

Show
Ignore:
Timestamp:
02/17/07 15:24:06 (13 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.

Location:
dev
Files:
6 added
19 modified

Legend:

Unmodified
Added
Removed
  • dev/common/cc_detail.php

    r167 r188  
    1919    $title = "Contract details"; 
    2020 
    21 $page = new Page($title . " - " . $contract->getName()); 
     21$page = new Page($title." - ".$contract->getName()); 
    2222 
    2323$html .= "<table align=center class=kb-table width=\"100%\" height=\"80\" border=\"0\" cellspacing=1><tr class=kb-table-row-even><td rowspan=5 align=center width=80 height=80>"; 
    2424// table class=kb-subtable cellspacing=0><tr class=kb-table-row-even><td width=80 height=80 align=center>"; 
    2525if ($contract->getCampaign()) 
    26     $html .= "<img src=\"" . IMG_URL . "/campaign-big.gif\" align=center>"; 
    27 else 
    28     $html .= "<img src=\"" . IMG_URL . "/contract-big.gif\" align=center>"; 
     26    $html .= "<img src=\"".IMG_URL."/campaign-big.gif\" align=center>"; 
     27else 
     28    $html .= "<img src=\"".IMG_URL."/contract-big.gif\" align=center>"; 
    2929 
    3030$html .= "</td>"; 
     
    3535else 
    3636    $ended = substr($contract->getEndDate(), 0, 10); 
    37 $html .= "<td class=kb-table-cell><b>Start date:</b></td><td class=kb-table-cell width=120><b>" . substr($contract->getStartDate(), 0, 10) . "</b></td><td class=kb-table-cell><b>End date:</b></td><td class=kb-table-cell width=120><b>" . $ended . "</b></td></tr>"; 
    38 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Kills:</b></td><td class=kl-kill>" . $contract->getKills() . "</td><td class=kb-table-cell><b>Losses:</b></td><td class=kl-loss>" . $contract->getLosses() . "</td></tr>"; 
    39 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>" . $contract->getKillISK() . "M</td><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>" . $contract->getLossISK() . "M</td></tr>"; 
    40 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Runtime:</b></td><td class=kb-table-cell><b>" . $contract->getRunTime() . " days</b></td><td class=kb-table-cell><b>Efficiency:</b></td><td class=kb-table-cell><b>" . $contract->getEfficiency() . "%</b></td></tr>"; 
     37$html .= "<td class=kb-table-cell><b>Start date:</b></td><td class=kb-table-cell width=120><b>".substr($contract->getStartDate(), 0, 10)."</b></td><td class=kb-table-cell><b>End date:</b></td><td class=kb-table-cell width=120><b>".$ended."</b></td></tr>"; 
     38$html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Kills:</b></td><td class=kl-kill>".$contract->getKills()."</td><td class=kb-table-cell><b>Losses:</b></td><td class=kl-loss>".$contract->getLosses()."</td></tr>"; 
     39$html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($contract->getKillISK()/1000000, 2)."M</td><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($contract->getLossISK()/1000000, 2)."M</td></tr>"; 
     40$html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Runtime:</b></td><td class=kb-table-cell><b>".$contract->getRunTime()." days</b></td><td class=kb-table-cell><b>Efficiency:</b></td><td class=kb-table-cell><b>".$contract->getEfficiency()."%</b></td></tr>"; 
    4141$html .= "</table>"; 
    4242// $html .= "</td></tr></table>"; 
     
    6363            $summary->setView('combined'); 
    6464 
    65             $html .= "<br><div class=kb-contract-target-header>Target " . $target->getType() . " - "; 
     65            $html .= "<br><div class=kb-contract-target-header>Target ".$target->getType()." - "; 
    6666            switch ($target->getType()) { 
    6767                case "corp": 
    68                     $html .= "<a class=kb-contract href=\"?a=" . $target->getType() . "_detail&crp_id=" . $target->getID() . "\">" . $target->getName() . "</a>"; 
     68                    $html .= "<a class=kb-contract href=\"?a=".$target->getType()."_detail&crp_id=".$target->getID()."\">".$target->getName()."</a>"; 
    6969                    break; 
    7070                case "alliance": 
    71                     $html .= "<a class=kb-contract href=\"?a=" . $target->getType() . "_detail&all_id=" . $target->getID() . "\">" . $target->getName() . "</a>"; 
     71                    $html .= "<a class=kb-contract href=\"?a=".$target->getType()."_detail&all_id=".$target->getID()."\">".$target->getName()."</a>"; 
    7272                    break; 
    7373                case "system": 
    74                     $html .= "<a class=kb-contract href=\"?a=" .$target->getType() . "_detail&sys_id=" . $target->getID() . "\">" . $target->getName() . "</a>"; 
     74                    $html .= "<a class=kb-contract href=\"?a=" .$target->getType()."_detail&sys_id=".$target->getID()."\">".$target->getName()."</a>"; 
    7575                    break; 
    7676                case "region": 
     
    9090            $bar = new BarGraph($efficiency, 100, 120); 
    9191            $html .= "<table class=kb-table cellspacing=1 border=\"0\" width=\"100%\"><tr class=kb-table-row-even>"; 
    92             $html .= "<td class=kb-table-cell width=108><b>Totals:</b></td><td class=kl-kill-bg width=60 align=center>" . $summary->getTotalKills() . "</td><td class=kl-kill-bg width=60 align=center>" . $summary->getTotalKillISK() . "M</td>"; 
    93             $html .= "<td class=kl-loss-bg width=64 align=center>" . $summary->getTotalLosses() . "</td><td class=kl-loss-bg width=60 align=center>" . $summary->getTotalLossISK() . "M</td></tr></table>"; 
     92            $html .= "<td class=kb-table-cell width=108><b>Totals:</b></td><td class=kl-kill-bg width=60 align=center>".$summary->getTotalKills()."</td><td class=kl-kill-bg width=60 align=center>".round($summary->getTotalKillISK()/1000000, 2)."M</td>"; 
     93            $html .= "<td class=kl-loss-bg width=64 align=center>".$summary->getTotalLosses()."</td><td class=kl-loss-bg width=60 align=center>".round($summary->getTotalLossISK()/1000000, 2)."M</td></tr></table>"; 
    9494 
    9595            $html .= "</td><td align=left>"; 
    9696 
    9797            $html .= "<table class=kb-table cellspacing=1 border=\"0\"><tr class=kb-table-row-even>"; 
    98             $html .= "<td class=kb-table-cell width=108><b>Efficiency:</b></td><td class=kb-table-cell align=center colspan=2 width=120><b>" . $efficiency . "%</b></td>"; 
    99             $html .= "<td class=kb-table-cell colspan=2 width=120>" . $bar->generate() . "</td></tr>"; 
     98            $html .= "<td class=kb-table-cell width=108><b>Efficiency:</b></td><td class=kb-table-cell align=center colspan=2 width=120><b>".$efficiency."%</b></td>"; 
     99            $html .= "<td class=kb-table-cell colspan=2 width=120>".$bar->generate()."</td></tr>"; 
    100100            $html .= "</tr></table>"; 
    101101 
     
    201201$menubox->setIcon("menu-item.gif"); 
    202202$menubox->addOption("caption","Overview"); 
    203 $menubox->addOption("link","Target overview", "?a=cc_detail&ctr_id=" . $_GET['ctr_id']); 
     203$menubox->addOption("link","Target overview", "?a=cc_detail&ctr_id=".$_GET['ctr_id']); 
    204204$menubox->addOption("caption","Kills & losses"); 
    205 $menubox->addOption("link","Recent activity", "?a=cc_detail&ctr_id=" . $_GET['ctr_id'] . "&view=recent_activity"); 
    206 $menubox->addOption("link","All kills", "?a=cc_detail&ctr_id=" . $_GET['ctr_id'] . "&view=kills"); 
    207 $menubox->addOption("link","All losses", "?a=cc_detail&ctr_id=" . $_GET['ctr_id'] . "&view=losses"); 
     205$menubox->addOption("link","Recent activity", "?a=cc_detail&ctr_id=".$_GET['ctr_id']."&view=recent_activity"); 
     206$menubox->addOption("link","All kills", "?a=cc_detail&ctr_id=".$_GET['ctr_id']."&view=kills"); 
     207$menubox->addOption("link","All losses", "?a=cc_detail&ctr_id=".$_GET['ctr_id']."&view=losses"); 
    208208 
    209209$page->addContext($menubox->generate()); 
     
    221221else 
    222222    $campaign = "contract"; 
    223 $tkbox = new AwardBox($tklist, "Top killers", "kills in this " . $campaign, "kills", "eagle"); 
     223$tkbox = new AwardBox($tklist, "Top killers", "kills in this ".$campaign, "kills", "eagle"); 
    224224 
    225225$page->addContext($tkbox->generate()); 
     
    237237 
    238238    $tklist->generate(); 
    239     $tkbox = new AwardBox($tklist, "Top scorers", "points in this " . $campaign, "points", "redcross"); 
     239    $tkbox = new AwardBox($tklist, "Top scorers", "points in this ".$campaign, "points", "redcross"); 
    240240    $page->addContext($tkbox->generate()); 
    241241} 
  • dev/common/class.box.php

    r177 r188  
    2626    function generate() 
    2727    { 
    28         global $config, $smarty; 
     28        global $smarty; 
    2929 
    3030        $smarty->assign('count', count($this->box_array)); 
  • dev/common/class.contract.php

    r187 r188  
    596596                $sql .= " and kll.kll_all_id in ( ".join(',', $contract->klist_->vic_all_)." )"; 
    597597 
     598            if ($contract->klist_->timeframe_) 
     599            { 
     600                $sql .= $contract->klist_->timeframe_; 
     601            } 
     602 
    598603            $result = $qry->execute($sql); 
    599604            $kdata = $qry->getRow($result); 
     
    645650            if ($contract->llist_->vic_all_) 
    646651                $sql .= " and kll.kll_all_id in ( ".join(',', $contract->llist_->vic_all_)." )"; 
     652 
     653            if ($contract->llist_->timeframe_) 
     654            { 
     655                $sql .= $contract->llist_->timeframe_; 
     656            } 
    647657 
    648658            $result = $qry->execute($sql); 
  • dev/common/class.event.php

    r181 r188  
    4848                    else 
    4949                    { 
    50                         call_user_func($cb, null); 
     50                        call_user_func($cb, $object); 
    5151                    } 
    5252                } 
  • dev/common/class.killlist.php

    r187 r188  
    147147                $this->sql_ .= " and kll.kll_system_id = ".$rrow['kll_system_id']." 
    148148                           and kll.kll_timestamp <= 
    149                                date_add( '".$rrow['kll_timestamp']."', INTERVAL '15:0' MINUTE_SECOND ) 
     149                               date_add( '".$rrow['kll_timestamp']."', INTERVAL '60:0' MINUTE_SECOND ) 
    150150                           and kll.kll_timestamp >= 
    151                                date_sub( '".$rrow['kll_timestamp']."', INTERVAL '15:0' MINUTE_SECOND )"; 
     151                               date_sub( '".$rrow['kll_timestamp']."', INTERVAL '60:0' MINUTE_SECOND )"; 
    152152            } 
    153153            // timeframe 
     
    266266            } 
    267267 
    268             $this->killisk_ += $row['scl_value'] / 1000000; 
     268            $this->killisk_ += $row['scl_value']; 
    269269            $this->killpoints_ += $row['kll_points']; 
    270270 
     
    281281            $kill->setVictimShipExternalID($row['shp_externalid']); 
    282282            $kill->setVictimShipClassName($row['scl_class']); 
    283             $kill->setVictimShipValue(round($row['scl_value'] / 1000000, 2)); 
     283            $kill->setVictimShipValue($row['scl_value']); 
    284284            $kill->setVictimID($row['kll_victim_id']); 
    285285            $kill->setFBPilotName($row['fbplt_name']); 
  • dev/common/class.killsummarytable.php

    r158 r188  
    293293            } 
    294294 
    295             $html .= "<tr class=" . $class . ">"; 
     295            $html .= "<tr class=".$class.">"; 
    296296 
    297297            $qrystring = preg_replace("/&scl_id=([0-9]?[0-9])/", "", $_SERVER['QUERY_STRING']); 
     
    303303            $html .= "<td class=kb-table-cell><b>"; 
    304304 
    305             if ($this->filter_) $html .= "<a class=kb-shipclass" . $highlight . " href=\"?" . $qrystring . "&scl_id=" . $v['id'] . "\">"; 
     305            if ($this->filter_) $html .= "<a class=kb-shipclass".$highlight." href=\"?".$qrystring."&scl_id=".$v['id']."\">"; 
    306306 
    307307            $html .= $k; 
     
    311311            $html .= "</b></td>"; 
    312312 
    313             $html .= "<td class=" . $kclass . " align=center>" . $v['kills'] . "</td>"; 
     313            $html .= "<td class=".$kclass." align=center>".$v['kills']."</td>"; 
    314314            if ($this->verbose_) 
    315                 $html .= "<td class=" . $kclass . " align=center>" . $v['kills_isk'] . "</td>"; 
    316             $html .= "<td class=" . $lclass . " align=center>" . $v['losses'] . "</td>"; 
     315                $html .= "<td class=".$kclass." align=center>".round($v['kills_isk']/1000000, 2)."</td>"; 
     316            $html .= "<td class=".$lclass." align=center>".$v['losses']."</td>"; 
    317317            if ($this->verbose_) 
    318                 $html .= "<td class=" . $lclass . " align=center>" . $v['losses_isk'] . "</td>"; 
     318                $html .= "<td class=".$lclass." align=center>".round($v['losses_isk']/1000000, 2)."</td>"; 
    319319 
    320320            $html .= "</tr>"; 
     
    337337            $html .= "<table align=center><tr><td align=center valign=top class=weeknav>"; 
    338338            $qrystring = preg_replace("/&scl_id=([0-9]?[0-9])/", "", $_SERVER['QUERY_STRING']); 
    339             $html .= "[<a href=\"?" . $qrystring . "\">clear filter</a>]</td></tr></table>"; 
     339            $html .= "[<a href=\"?".$qrystring."\">clear filter</a>]</td></tr></table>"; 
    340340        } 
    341341 
  • dev/common/class.page.php

    r181 r188  
    4040    } 
    4141 
     42    function error($message) 
     43    { 
     44        global $smarty; 
     45 
     46        $smarty->assign('error', $message); 
     47        $this->setContent($smarty->fetch(get_tpl('error'))); 
     48        $this->generate(); 
     49    } 
     50 
    4251    function generate() 
    4352    { 
    44         global $config, $smarty; 
     53        global $smarty; 
    4554 
    4655        $smarty->assign('kb_title', KB_TITLE.' Killboard - '.$this->title_); 
     
    129138        $smarty->assign('profile', KB_PROFILE); 
    130139        $smarty->assign('content_html', $this->contenthtml_); 
     140        if (config::get('user_showmenu')) 
     141        { 
     142            $this->contexthtml_ = user::menu().$this->contexthtml_; 
     143        } 
    131144        $smarty->assign('context_html', $this->contexthtml_); 
    132145        $smarty->display(get_tpl('index')); 
     
    183196        $this->cachetime_ = $cachetime; 
    184197    } 
    185  
    186     function error($errormsg) 
    187     { 
    188         echo $errormsg; 
    189         exit; 
    190     } 
    191198} 
    192199 
  • dev/common/class.session.php

    r181 r188  
    11<?php 
    2 require_once('db.php'); 
    32 
    43class Session 
     
    98        { 
    109            session_start(); 
     10            if (isset($_SESSION['user'])) 
     11            { 
     12                user::loggedin(true); 
     13            } 
    1114        } 
    1215    } 
     
    2225    } 
    2326 
    24     function create($super) 
     27    function create($admin = false) 
    2528    { 
    2629        session_start(); 
    27         $_SESSION['admin'] = 1; 
    28         $_SESSION['admin_super'] = $super; 
     30        $_SESSION['admin'] = $admin; 
    2931    } 
    3032 
  • dev/common/index.php

    r182 r188  
    22// many ppl had issues with pear and relative paths 
    33require_once('common/db.php'); 
     4require_once('smarty/Smarty.class.php'); 
    45require_once('class.killboard.php'); 
    5 require_once('smarty/Smarty.class.php'); 
    66require_once('class.event.php'); 
    77require_once('class.roles.php'); 
     8require_once('class.user.php'); 
    89 
    9 // smarty doesnt like it (i either) 
     10// smarty doesnt like it 
    1011@set_magic_quotes_runtime(0); 
    1112 
     
    6869foreach ($mods_active as $mod) 
    6970{ 
    70     // load all modules which need initialization 
     71    // load all active modules which need initialization 
    7172    if (file_exists('mods/'.$mod.'/init.php')) 
    7273    { 
  • 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); 
  • dev/common/kills.php

    r149 r188  
    102102$page->addContext($tkbox->generate()); 
    103103 
    104 $killboard = $page->killboard_; 
    105 $config = $killboard->getConfig(); 
    106 if ($config->getKillPoints()) 
     104if (config::get('kill_points')) 
    107105{ 
    108106    $tklist = new TopScoreList(); 
  • dev/common/login.php

    r92 r188  
    11<?php 
    2 require_once("db.php"); 
    3 require_once("class.page.php"); 
     2require_once('class.page.php'); 
     3require_once('class.user.php'); 
    44 
    5 $page = new Page("Login"); 
     5$page = new Page('Login'); 
    66 
    7 if (trim($_POST['password'])) 
     7if (trim($_POST['usrpass'])) 
    88{ 
    9     if ($_POST['password'] == ADMIN_PASSWORD || $_POST['password'] == SUPERADMIN_PASSWORD) 
     9    if ($_POST['usrlogin'] == '' && $_POST['usrpass'] == ADMIN_PASSWORD) 
    1010    { 
    11         if ($_POST['password'] == SUPERADMIN_PASSWORD) 
     11        $page->session_->create(1); 
     12 
     13        header('Location: ?a=admin'); 
     14    } 
     15    else 
     16    { 
     17        $result = user::login($_POST['usrlogin'], $_POST['usrpass']); 
     18        if ($result) 
    1219        { 
    13             $redir = "admin"; 
    14             $super = 1; 
     20            header('Location: ?a=home'); 
    1521        } 
    1622        else 
    1723        { 
    18             $redir = "admin"; 
    19             $super = 0; 
     24            $smarty->assign('error', 'Login error, please check your username and password.'); 
    2025        } 
    21  
    22         $page->session_->create($super); 
    23  
    24         header("Location: ?a=" . $redir); 
    2526    } 
    26     else 
    27         $html .= "Invalid password.<br><br>"; 
    2827} 
    2928 
    30 $html .= "<form name=login id=login method=post action=?a=login>"; 
    31 $html .= "Admin password: <input name=password id=password type=password>&nbsp;<input type=\"submit\" name=submit id=submit name=Go value=Go>"; 
    32 $html .= "</form>"; 
    33  
    34 $page->setContent($html); 
     29$page->setContent($smarty->fetch(get_tpl('user_login'))); 
    3530$page->generate(); 
    3631?> 
  • dev/templates/admin_options_checkbox.tpl

    r177 r188  
    11{strip} 
    2 <tr><td width="120"><b>{$opt.descr}:</b></td><td> 
     2<tr><td width="160"><b>{$opt.descr}:</b></td><td> 
    33<input type="checkbox" id="option[{$opt.name}]" name="option[{$opt.name}]" 
    44{if $config->getConfig($opt.name)} checked="checked"{/if}> 
  • dev/templates/admin_options_custom.tpl

    r177 r188  
    11{strip} 
    2 <tr><td width="120"><b>{$opt.descr}:</b></td><td> 
     2<tr><td width="160"><b>{$opt.descr}:</b></td><td> 
    33{$opt.html} 
    44</td></tr> 
  • dev/templates/admin_options_edit.tpl

    r181 r188  
    11{strip} 
    2 <tr><td width="120"><b>{$opt.descr}:</b></td><td> 
     2<tr><td width="160"><b>{$opt.descr}:</b></td><td> 
    33<input type="edit" id="option[{$opt.name}]" name="option[{$opt.name}]" 
    44value="{$config->getConfig($opt.name)}" size="{$options.size}" maxlength="{$options.maxlength}"> 
  • dev/templates/admin_options_field_foot.tpl

    r177 r188  
    11<div class="block-header2">Save changes</div> 
    22<table class="kb-subtable"> 
    3 <tr><td width="120"></td><td><input type="submit" name="submit" value="Save"></td></tr> 
     3<tr><td width="160"></td><td><input type="submit" name="submit" value="Save"></td></tr> 
    44</table> 
    55</form> 
  • dev/templates/admin_options_select.tpl

    r177 r188  
    11{strip} 
    2 <tr><td width="120"><b>{$opt.descr}:</b></td><td> 
     2<tr><td width="160"><b>{$opt.descr}:</b></td><td> 
    33<select id="option[{$opt.name}]" name="option[{$opt.name}]"> 
    44{foreach from=$options key=key item=i} 
  • dev/templates/battle_overview_table.tpl

    r185 r188  
    11<table class="kb-table" width="95%" align="center"> 
    22    <tr class="kb-table-header"> 
    3       <td class="kb-table-header" colspan="2" align="center">Ship/Pilot</td> 
     3      <td class="kb-table-header" colspan="2" align="center">Pilot/Ship</td> 
    44      <td class="kb-table-header" align="center" style="min-width: 45%; width: 45%; max-width: 45%;">Corp/Alliance</td> 
    55    </tr> 
  • dev/templates/contractlisttable.tpl

    r187 r188  
    2525{/if} 
    2626  <td class="kl-kill" align="center">{$i.kills}</td> 
    27   <td class="kl-kill" align="center">{$i.killisk/1000000}</td> 
     27  <td class="kl-kill" align="center">{$i.killisk/1000000|string_format:"%.2f"}</td> 
    2828  <td class="kl-loss" align="center">{$i.losses}</td> 
    29   <td class="kl-loss" align="center">{$i.lossisk/1000000}</td> 
     29  <td class="kl-loss" align="center">{$i.lossisk/1000000|string_format:"%.2f"}</td> 
    3030  <td class="kb-table-cell" align="center" width="40"><b>{$i.efficiency}</b></td> 
    3131  <td class="kb-table-cell" align="left" width="75">{$i.bar}</td>