示例#1
0
 public function ActiveFleets()
 {
     return Fleet::GetFleetsForAlliance($this->Id);
 }
示例#2
0
if ($notTrusted) {
    $brow->RequireTrust();
}
$otherAlliances;
if ($trusted) {
    $otherAlliances = Alliance::GetAlliancesOtherThanMineWithFleets($brow->AllianceID());
} else {
    $otherAlliances = Alliance::GetAlliancesOtherThanMineWithFleets(-1);
}
$otherFleets = array();
foreach ($otherAlliances as $a) {
    $otherFleets[$a->Id] = $a->ActiveFleets();
}
$myFleets;
if ($trusted) {
    $myFleets = Fleet::GetFleetsForAlliance($brow->AllianceId());
}
DataManager::GetInstance()->CloseConnection();
function printAllianceFleets($name, $fleets, $myFleet = TRUE)
{
    echo '<h2>' . $name . '</h2>';
    foreach ($fleets as $f) {
        echo gmdate('H:i', $f->Added);
        echo ' ';
        if ($myFleet) {
            echo '<a href="gang:' . $f->Id . '">' . htmlspecialchars($f->Name) . '</a>';
            echo ' <a href="DeleteFleet.php?id=' . $f->Id . '">[Delete]</a>';
        } else {
            echo htmlspecialchars($f->Name);
        }
        echo '<br />';