getAlliance(); $klist = new KillList(); $tklist = new KillList(); $llist = new KillList(); $klist->addInvolvedCorp($corp); $tklist->addInvolvedCorp($corp); $tklist->setPodsNoobShips(false); $llist->addVictimCorp($corp); $klist->getAllKills(); $llist->getAllKills(); $page = new Page("Corporation details - " . $corp->getName()); $html .= "
";
if (file_exists("img/corps/".$corp->getID().".jpg"))
{
$html .= " | ";
}
else
{
$html .= "Alliance: | "; if ($alliance->getName() == "Unknown" || $alliance->getName() == "None") $html .= "" . $alliance->getName() . ""; else $html .= "getID() . "\">" . $alliance->getName() . ""; $html .= " | "; $html .= "
Kills: | " . $klist->getCount() . " |
Real kills: | " . $tklist->getCount() . " |
Losses: | " . $llist->getCount() . " |
Damage done (ISK): | " . $klist->getISK() . "M |
Damage received (ISK): | " . $llist->getISK() . "M |
Efficiency: | " . $efficiency . "% |
";
$html .= " This month ";
$list = new TopKillsList();
$list->addInvolvedCorp($corp);
$list->setPodsNoobShips(false);
$list->setMonth(date("m"));
$list->setYear(date("Y"));
$table = new TopPilotTable($list, "Kills");
$html .= $table->generate();
$html .= " | ";
$html .= " All time ";
$list = new TopKillsList();
$list->addInvolvedCorp($corp);
$list->setPodsNoobShips(false);
$table = new TopPilotTable($list, "Kills");
$html .= $table->generate();
$html .= " |
";
$html .= " This month ";
$list = new TopScoreList();
$list->addInvolvedCorp($corp);
$list->setPodsNoobShips(false);
$list->setMonth(date("m"));
$list->setYear(date("Y"));
$table = new TopPilotTable($list, "Points");
$html .= $table->generate();
$html .= " | ";
$html .= " All time ";
$list = new TopScoreList();
$list->addInvolvedCorp($corp);
$list->setPodsNoobShips(false);
$table = new TopPilotTable($list, "Points");
$html .= $table->generate();
$html .= " |
";
$html .= " This month ";
$list = new TopSoloKillerList();
$list->addInvolvedCorp($corp);
$list->setPodsNoobShips(false);
$list->setMonth(date("m"));
$list->setYear(date("Y"));
$table = new TopPilotTable($list, "Solokills");
$html .= $table->generate();
$html .= " | ";
$html .= " All time ";
$list = new TopSoloKillerList();
$list->addInvolvedCorp($corp);
$list->setPodsNoobShips(false);
$table = new TopPilotTable($list, "Solokills");
$html .= $table->generate();
$html .= " |
";
$html .= " This month ";
$list = new TopDamageDealerList();
$list->addInvolvedCorp($corp);
$list->setPodsNoobShips(false);
$list->setMonth(date("m"));
$list->setYear(date("Y"));
$table = new TopPilotTable($list, "Kills");
$html .= $table->generate();
$html .= " | ";
$html .= " All time ";
$list = new TopDamageDealerList();
$list->addInvolvedCorp($corp);
$list->setPodsNoobShips(false);
$table = new TopPilotTable($list, "Kills");
$html .= $table->generate();
$html .= " |
";
$html .= " This month ";
$list = new TopGrieferList();
$list->addInvolvedCorp($corp);
$list->setMonth(date("m"));
$list->setYear(date("Y"));
$table = new TopPilotTable($list, "Kills");
$html .= $table->generate();
$html .= " | ";
$html .= " All time ";
$list = new TopGrieferList();
$list->addInvolvedCorp($corp);
$table = new TopPilotTable($list, "Kills");
$html .= $table->generate();
$html .= " |
";
$html .= " This month ";
$list = new TopLossesList();
$list->addVictimCorp($corp);
$list->setPodsNoobShips(false);
$list->setMonth(date("m"));
$list->setYear(date("Y"));
$table = new TopPilotTable($list, "Losses");
$html .= $table->generate();
$html .= " | ";
$html .= " All time ";
$list = new TopLossesList();
$list->addVictimCorp($corp);
$list->setPodsNoobShips(false);
$table = new TopPilotTable($list, "Losses");
$html .= $table->generate();
$html .= " |
"; $shiplist = new TopShipList(); $shiplist->addInvolvedCorp($corp); $shiplisttable = new TopShipListTable($shiplist); $html .= $shiplisttable->generate(); $html .= " | "; $weaponlist = new TopWeaponList(); $weaponlist->addInvolvedCorp($corp); $weaponlisttable = new TopWeaponListTable($weaponlist); $html .= $weaponlisttable->generate(); $html .= " |
'; } $html .= ' | Pilot | '; if (strpos($clmn,"kll_pnts")) { $html .= 'Kill Points | '; } if (strpos($clmn,"dmg_dn")) { $html .= 'Dmg Done (isk) | '; } if (strpos($clmn,"dmg_rcd")) { $html .= 'Dmg Recived (isk) | '; } if (strpos($clmn,"eff")) { $html .= 'Efficiency | '; } if ($page->isAdmin()) { $html .= 'Admin - Move | '; } $html .= '
getID().'>'.$pilot->getName().' | '; if (strpos($clmn,"kll_pnts")) { $html .= ''.$points.' | '; } if (strpos($clmn,"dmg_dn")) { $html .= ''.round($plist->getISK(),2).'M | '; } if (strpos($clmn,"dmg_rcd")) { $html .= ''.round($pllist->getISK(),2).'M | '; } if (strpos($clmn,"eff")) { $html .= ''.$efficiency.'% | '; } if ($page->isAdmin()) { $html .= "Move | "; } $html .= '