Changeset 377
- Timestamp:
- 06/20/09 07:25:06 (13 years ago)
- Location:
- dev/common/includes
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/includes/class.killsummarytable.php
r376 r377 472 472 { 473 473 $efficiency = round($this->tkisk_ / (($this->tkisk_ + $this->tlisk_) == 0 ? 1 : ($this->tkisk_ + $this->tlisk_)) * 100, 2); 474 474 if($this->tkisk_ + $this->tlisk_ < 2000000000) 475 475 $html .= '<table style="text-align:center; width:90%;" border=0 cellspacing=2>' 476 476 .'<tr align=center> … … 480 480 </tr> 481 481 </table>'; 482 else 483 $html .= '<table style="text-align:center; width:90%;" border=0 cellspacing=2>' 484 .'<tr align=center> 485 <td width=30%><span style="text-align:right;" class="killcount">' .$this->tkcount_.' Ships killed ('.round($this->tkisk_/1000000000, 2).'B ISK)</span></td> 486 <td width=30%><span style="text-align:center;" class="losscount">'.$this->tlcount_.' Ships lost ('.round($this->tlisk_/1000000000, 2).'B ISK)</span></td> 487 <td width=30%><span style="text-align:left;" class="efficency">'.$efficiency.'% Efficiency (ISK)</span></td> 488 </tr> 489 </table>'; 482 490 } 483 491 else 484 492 { 485 $html .= '<table style="width:100%" border=0 cellspacing=2>' 486 .'<tr align=center><td style="width:51%;"><span style="text-align:right;" class="killcount">' 487 .$this->tkcount_.' Ships killed ('.round($this->tkisk_/1000000000, 2).'B ISK)</span></td><td style="width:49%;"><span class="losscount">'.$this->tlcount_.' Ships lost ('.round($this->tlisk_/1000000000, 2).'B ISK)</span></td></tr></table>'; 493 if($this->tkisk_ + $this->tlisk_ < 2000000000) 494 $html .= '<table style="width:100%" border=0 cellspacing=2>' 495 .'<tr align=center><td style="width:51%;"><span style="text-align:right;" class="killcount">' 496 .$this->tkcount_.' Ships killed ('.round($this->tkisk_/1000000, 2).'M ISK)</span></td><td style="width:49%;"><span class="losscount">'.$this->tlcount_.' Ships lost ('.round($this->tlisk_/1000000, 2).'M ISK)</span></td></tr></table>'; 497 else 498 $html .= '<table style="width:100%" border=0 cellspacing=2>' 499 .'<tr align=center><td style="width:51%;"><span style="text-align:right;" class="killcount">' 500 .$this->tkcount_.' Ships killed ('.round($this->tkisk_/1000000000, 2).'B ISK)</span></td><td style="width:49%;"><span class="losscount">'.$this->tlcount_.' Ships lost ('.round($this->tlisk_/1000000000, 2).'B ISK)</span></td></tr></table>'; 488 501 } 489 502 } -
dev/common/includes/class.killsummarytable.public.php
r370 r377 200 200 if (config::get('summarytable_summary')) 201 201 { 202 $html .= '<table width=100% border=0 cellspacing=2>' 203 .'<tr align=center><td class="killcount">' 204 .$this->tkcount_.' Ships killed ('.round($this->tkisk_/1000000, 2).'M ISK)</td></tr></table>'; 202 $html .= '<table width=100% border=0 cellspacing=2>' 203 .'<tr align=center><td class="killcount">'; 204 if($this->tkisk_ < 1000000000) 205 $html .= $this->tkcount_.' Ships killed ('.round($this->tkisk_/1000000, 2).'M ISK)</td></tr></table>'; 206 else 207 $html .= $this->tkcount_.' Ships killed ('.round($this->tkisk_/1000000000, 2).'B ISK)</td></tr></table>'; 208 205 209 } 206 210