Show
Ignore:
Timestamp:
03/31/08 10:20:31 (12 years ago)
Author:
ralle030583
Message:

-Ticket 81 : german translation
-fixes in forum mod files
-fixes in known member mod files

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/forum_post/class.killsummarytable.php

    r227 r325  
    77    { 
    88        $this->klist_ = $klist; 
    9         $this->llist_ = $llist; 
    10  
     9            $this->llist_ = $llist; 
    1110        $this->verbose_ = false; 
    1211        $this->filter_ = true; 
     
    8685    function getkills() 
    8786    { 
    88         global $config; 
    8987        if ($this->mixedinvolved_) 
    9088        { 
     
    141139            $this->tkisk_ += $row['kisk']; 
    142140        } 
     141 
    143142 
    144143        $sql = 'SELECT count(*) AS lnb, scl_id, scl_class,'; 
     
    232231        $odd = false; 
    233232        $prevdate = ""; 
     233        $width = round($this->break_/count($entry)*100); 
     234        $width_abs = round($this->break_/count($entry)*600); 
     235 
    234236        $html .= "<table class=kb-subtable width=\"100%\" border=\"0\" cellspacing=0>"; 
    235237        if ($this->break_) 
    236             $html .= "<tr><td valign=top><table class=kb-table cellspacing=\"1\" width=\"100%\">"; 
     238            $html .= "<tr><td valign=top width=\"$width%\"><table class=kb-table cellspacing=\"1\" width=\"100%\">"; 
    237239        $counter = 1; 
    238240 
    239241        if ($this->verbose_) 
    240242        { 
    241             $header = "<tr class=kb-table-header><td class=kb-table-cell width=110>Ship class</td><td class=kb-table-cell width=60 align=center>Kills</td><td class=kb-table-cell width=60 align=center>ISK (M)</td><td class=kb-table-cell width=60 align=center>Losses</td><td class=kb-table-cell width=60 align=center>ISK (M)</td></tr>"; 
     243            $header = "<tr class=kb-table-header><td class=kb-table-cell width=\"$width_abs\">Ship class</td><td class=kb-table-cell width=60 align=center>Kills</td><td class=kb-table-cell width=60 align=center>ISK (M)</td><td class=kb-table-cell width=60 align=center>Losses</td><td class=kb-table-cell width=60 align=center>ISK (M)</td></tr>"; 
    242244        } 
    243245        else 
    244246        { 
    245             $header = "<tr class=kb-table-header><td class=kb-table-cell width=110>Ship class</td><td class=kb-table-cell width=30 align=center>K</td><td class=kb-table-cell width=30 align=center>L</td></tr>"; 
    246         } 
     247            $header = "<tr class=kb-table-header><td class=kb-table-cell width=\"$width_abs\">Ship class</td><td class=kb-table-cell width=30 align=center>K</td><td class=kb-table-cell width=30 align=center>L</td></tr>"; 
     248        } 
     249 
    247250        $html .= $header; 
    248251 
     
    254257            { 
    255258                $html .= "</table></td>"; 
    256                 $html .= "<td valign=top><table class=kb-table cellspacing=\"1\">"; 
     259                $html .= "<td valign=top width=\"$width%\"><table class=kb-table cellspacing=\"1\">"; 
    257260                $html .= $header; 
    258261                $counter = 1; 
     
    285288                $lclass = "kl-loss"; 
    286289 
    287             if ($this->verbose_) 
    288             { 
    289                 $kclass .= "-bg"; 
    290                 $lclass .= "-bg"; 
    291             } 
    292  
    293290            $html .= "<tr class=".$class.">"; 
    294291 
     
    299296                $qrystring .= '&view='.$this->view_; 
    300297            } 
    301             $html .= "<td class=kb-table-cell><b>"; 
     298            $html .= "<td nowrap class=kb-table-cell><b>"; 
    302299 
    303300            if ($this->filter_) $html .= "<a class=kb-shipclass".$highlight." href=\"?".$qrystring."&scl_id=".$v['id']."\">"; 
     
    312309            if ($this->verbose_) 
    313310                $html .= "<td class=".$kclass." align=center>".round($v['kills_isk']/1000000, 2)."</td>"; 
     311 
    314312            $html .= "<td class=".$lclass." align=center>".$v['losses']."</td>"; 
    315             if ($this->verbose_) 
    316                 $html .= "<td class=".$lclass." align=center>".round($v['losses_isk']/1000000, 2)."</td>"; 
     313                if ($this->verbose_) 
     314                    $html .= "<td class=".$lclass." align=center>".round($v['losses_isk']/1000000, 2)."</td>"; 
    317315 
    318316            $html .= "</tr>"; 
    319317 
    320318            $counter++; 
     319 
    321320            $this->tkcount_ += $kcount; 
     321            $this->tkisk_ += $kisk; 
     322            $this->tkpoints_ += $kpoints; 
    322323            $this->tlcount_ += $lcount; 
    323             $this->tkisk_ += $kisk; 
    324324            $this->tlisk_ += $lisk; 
    325             $this->tkpoints_ += $kpoints; 
    326325            $this->tlpoints_ += $lpoints; 
    327326        } 
     
    335334            $html .= '<table width=100% border=0 cellspacing=2>' 
    336335                     .'<tr align=center><td width=51%><span align=right class="killcount">' 
    337                      .$this->tkcount_.' Ships killed ('.round($this->tkisk_/1000000, 2).'M ISK)</span></td><td width=49%><span class="losscount">' 
    338                      .$this->tlcount_.' Ships lost ('.round($this->tlisk_/1000000, 2).'M ISK)</span></td></tr></table>'; 
    339         } 
     336                     .$this->tkcount_.' Ships killed ('.round($this->tkisk_/1000000, 2).'M ISK)</span></td><td width=49%><span class="losscount">'.$this->tlcount_.' Ships lost ('.round($this->tlisk_/1000000, 2).'M ISK)</span></td></tr></table>'; 
     337        } 
     338 
    340339        if ($_GET['scl_id'] != "") 
    341340        {