";
// victim
$html .= "";
// involved
$html .= "";
$html .= "";
$odd = true;
foreach ($kill->involvedparties_ as $inv)
{
$pilot = new Pilot($inv->getPilotID());
$corp = new Corporation($inv->getCorpID());
$alliance = new Alliance($inv->getAllianceID());
$ship = $inv->getShip();
$weapon = $inv->getWeapon();
if ($odd)
{
$odd = false;
$rowclass = "kb-table-row-even";
}
else
{
$odd = true;
$rowclass = "kb-table-row-odd";
}
if ($pilot->getID() == $kill->getFBPilotID())
{
$imgclass = "class=finalblow ";
}
else
{
$imgclass = "";
}
$html .= "";
if ($corp->isNPCCorp())
{
$html .= " getPortraitURL(64) . "\" border=\"0\"> | ";
}
else
{
$html .= " getPortraitURL(64) . "\" border=\"0\"> | ";
}
$html .= " getImage(64) . "\" border=\"0\"> | ";
$html .= "getID() . "\">" . $pilot->getName() . " | ";
$html .= " ";
$html .= "getID() . "\">" . $corp->getName() . " | ";
$html .= "getID() . "\">" . $alliance->getName() . " | ";
$html .= "" . $ship->getName() . " | ";
if ($weapon->getName() != "Unknown" && $weapon->getName() != $ship->getName())
$html .= "" . $weapon->getName() . " | ";
else
$html .= "Unknown | ";
}
$html .= " ";
if ($config->getConfig('comments'))
{
include('common/comments.php');
}
$html .= " | | ";
// ship, ship details
$html .= "";
$html .= "";
$ship = $kill->getVictimShip();
$shipclass = $ship->getClass();
$html .= " getImage(64) . "\"> | ";
$html .= "Ship: | " . $ship->getName() . " (" . $shipclass->getName() . ") | ";
$html .= " ";
$system = $kill->getSystem();
$html .= "Location: | getID() . "', '', 620, 260, '' );\">" . $system->getName() . " (" . $system->getSecurity(true) . ") | ";
$html .= " ";
$html .= "Date: | " . $kill->getTimeStamp() . " | ";
$html .= " ";
$html .= " ";
// ship fitting
if (count($kill->destroyeditems_) > 0)
{
$html .= "";
$html .= "";
$imgid = 0;
if($page->isAdmin()) {
}
foreach($kill->destroyeditems_ as $destroyed)
{
$item = $destroyed->getItem();
switch ($destroyed->getLocationID())
{
case 4:
$location = "Cargo";
break;
case 6: // drone
$location = "Drone Bay";
break;
default:
switch ($item->getSlot())
{
case 1: // high
$location = "Fitted - High slot";
break;
case 2: // high
$location = "Fitted - Medium slot";
break;
case 3: // high
$location = "Fitted - Low slot";
break;
case 6: // drone
$location = "Drone Bay";
break;
}
break;
}
if ($location != $lastlocation)
{
$lastlocation = $location;
$html .= "";
$html .= " | ";
$html .= "" . $location . " | ";
$html .= "" . "Value" . " | ";
$html .= " ";
}
// item detail
//Coni
$html .= "";
$html .= $item->getIcon(32);
$html .= "" . $item->getName() . " | ";
$html .= "" . $destroyed->getQuantity() . " | ";
$value = $destroyed->getValue();
$value_single = $value;
if ($value > 0) {
$value = $destroyed->getValue() * $destroyed->getQuantity();
$TotalValue = $TotalValue + $value;
// Value Manipulation for prettyness.
if (strlen($value) >1) { // 1000's ?
$Formatted = number_format($value,2);
$Formatted = $Formatted . " isk";
}
if (strlen($value) >3) { // 1000's ?
$Formatted = round($value / 1000,2);
$Formatted = number_format($Formatted,2);
$Formatted = $Formatted . " K";
}
if (strlen($value) >6) { // Is this value in the millions?
$Formatted = round($value / 1000000,2);
$Formatted = number_format($Formatted,2);
$Formatted = $Formatted . " M";
}
}
if ($page->isAdmin())
{
$html .=" ";
}
else
$html .= "";
$html .= " |