Beispiel #1
0
<?php

require_once get_file_loc('council.inc');
require_once get_file_loc('menu.inc');
if (!isset($var['race_id'])) {
    SmrSession::updateVar('race_id', $player->getRaceID());
}
$raceID = $var['race_id'];
$template->assign('PageTopic', 'Ruling Council Of ' . Globals::getRaceName($raceID));
$template->assign('RaceID', $raceID);
create_council_menu($raceID);
// check for relations here
modifyRelations($raceID);
checkPacts($raceID);
Beispiel #2
0
include get_file_loc("council.inc");
include get_file_loc('menue.inc');
$race_id = $var["race_id"];
if (empty($race_id)) {
    $race_id = $player->race_id;
}
$db->query("SELECT * FROM race " . "WHERE race_id = {$race_id}");
if ($db->next_record()) {
    print_topic("RULING COUNCIL OF " . $db->f("race_name"));
}
$president = getPresident($race_id);
print_council_menue($race_id, $president);
// check for relations here
modifyRelations($race_id);
checkPacts($race_id);
print "<div align=\"center\" style=\"font-weight:bold;\">President</div>";
if ($president->account_id > 0) {
    print "<p><table border=\"0\" class=\"standard\" cellspacing=\"0\" align=\"center\" width=\"75%\">";
    print "<tr>";
    print "<th>Name</th>";
    print "<th>Race</th>";
    print "<th>Alliance</th>";
    print "<th>Experience</th>";
    print "</tr>";
    print "<tr>";
    print "<td valign=\"top\">President ";
    $container = array();
    $container["url"] = "skeleton.php";
    $container["body"] = "trader_search_result.php";
    $container["player_id"] = $president->player_id;