コード例 #1
0
ファイル: hall_of_fame_new.php プロジェクト: smrealms/smrv2.0
function category($name, $options, $row)
{
    global $var;
    $i = 0;
    //table name thing goes here
    print "<tr>";
    print "<td align=center>{$name}</td>";
    $container = array();
    $container["url"] = "skeleton.php";
    $container["body"] = "hall_of_fame_new_detail.php";
    $container["category"] = $name;
    $container["row"] = $row;
    if (isset($var["game_id"])) {
        $container["game_id"] = $var["game_id"];
    }
    print_form($container);
    print "<td align=center valign=middle>";
    foreach ($options as $print) {
        $i++;
        list($one, $two) = explode(",", $print);
        if (isset($two)) {
            print "<input type=hidden name=mod[] value=\"{$print}\">";
        }
        print_submit($one);
        print "&nbsp;";
        if ($i % 3 == 0) {
            print "<br>";
        }
        //unset vars for next sub cat
        unset($one, $two);
    }
    print "</td></form></tr>";
}
コード例 #2
0
ファイル: register.php プロジェクト: jamuraa/gatherling
function regForm()
{
    echo "<form action=\"register.php\" method=\"post\">\n";
    echo "<table class=\"form\" style=\"border-width: 0px\">\n";
    print_text_input("MTGO Username", "username");
    print_password_input("Password", "pw1");
    print_password_input("Confirm Password", "pw2");
    print_submit("Register Account", "mode");
    echo "</table></form>";
}
コード例 #3
0
ファイル: admincp.php プロジェクト: jamuraa/gatherling
function printChangePasswordForm()
{
    echo "<form action=\"admincp.php\" method=\"post\">";
    echo "<h3><center>Change User Password</center></h3>";
    echo "<table class=\"form\" style=\"border-width: 0px\" align=\"center\">";
    print_text_input("Username", "username");
    print_text_input("New Password", "new_password");
    print_submit("Change Password");
    echo "</table> </form>";
}
コード例 #4
0
print_galactic_post_menue();
$container = array();
$container["url"] = "skeleton.php";
$container["body"] = "galactic_post_view_members.php";
if ($action == "Remove") {
    $db->query("DELETE FROM galactic_post_writer WHERE game_id = {$player->game_id} AND account_id = {$var['id']}");
}
$db->query("SELECT * FROM galactic_post_writer WHERE game_id = {$player->game_id} AND account_id != {$player->account_id}");
if ($db->nf()) {
    print_table();
    print "<tr>";
    print "<th align=\"center\">Player Name</th>";
    print "<th align=\"center\">Last Wrote</th>";
    print "<th align=\"center\">Options</th>";
    print "</tr>";
    while ($db->next_record()) {
        $curr_writter = new SMR_PLAYER($db->f("account_id"), $player->game_id);
        $time = $db->f("last_wrote");
        print "<tr>";
        print "<td align=\"center\">{$curr_writter->player_name}</td>";
        print "<td align=\"center\"> " . date("n/j/Y g:i:s A", $time) . "</td>";
        $container["id"] = $curr_writter->account_id;
        print_form($container);
        print "<td>";
        print_submit("Remove");
        print "</td>";
        print "</tr>";
        print "</form>";
    }
    print "</table>";
}
コード例 #5
0
<?php

print_topic("WRITTING AN ARTICLE");
include get_file_loc('menue.inc');
print_galactic_post_menue();
print "What is the title?<br>";
$container = array();
$container["url"] = "galactic_post_write_article_processing.php";
print_form($container);
print "<input type=\"text\" name=\"title\" id=\"InputFields\" style=\"text-align:center;width:525;\"><br><br>";
print "<br>Write what you want to write here!<br>";
print "<textarea name=\"message\" id=\"InputFields\" style=\"width:350px;height:100px;\"></textarea><br><br>";
print_submit("Enter the article");
print "</form>";
コード例 #6
0
ファイル: bar_galmap_buy.php プロジェクト: smrealms/smrv2.0
        $port_info[$good_id] = $transaction;
    }
    //insert the last port
    $db2->query("REPLACE INTO player_visited_port (account_id, game_id, sector_id, visited, port_info) " . "VALUES({$account_id}, {$game_id}, {$current_sector_id}, {$current_time}, '" . addslashes(serialize($port_info)) . "')");
    //offer another drink and such
    print "<div align=center>Galaxy Info has been added.  Enjoy!</div><br>";
    include get_file_loc("bar_opening.php");
} else {
    //find what gal they want
    $container = array();
    $container["url"] = "skeleton.php";
    $container["body"] = "bar_main.php";
    $container["script"] = "bar_galmap_buy.php";
    $container["process"] = "yes";
    print "<div align=center>What galaxy do you want info on?<br>";
    print_form($container);
    print "<select type=select name=gal_id>";
    print "<option value=0>[Select a galaxy]</option>";
    $db->query("SELECT galaxy_id FROM sector WHERE game_id = {$player->game_id} GROUP BY galaxy_id ORDER BY galaxy_id ASC");
    $db2 = new SmrMySqlDatabase();
    while ($db->next_record()) {
        $gal_id = $db->f("galaxy_id");
        $db2->query("SELECT * FROM galaxy WHERE galaxy_id = {$gal_id}");
        if ($db2->next_record()) {
            print "<option value={$gal_id}>" . $db2->f("galaxy_name") . "</option>";
        }
    }
    print "</select><br>";
    print_submit("Buy the map");
    print "</form></div>";
}
コード例 #7
0
ファイル: bug_report.php プロジェクト: smrealms/smrv2.0
print "<td>{$account->email}</td>";
print "</tr>";
print "<tr>";
print "<td style=\"font-weight:bold;\">Account ID:</td>";
print "<input type=\"hidden\" name=\"account_id\" value=\"{$account->account_id}\">";
print "<td>{$account->account_id}</td>";
print "</tr>";
print "<tr>";
print "<td style=\"font-weight:bold;\">Subject:</td>";
print "<td><input type=\"text\" name=\"subject\" id=\"InputFields\" style=\"width:300px;\"></td>";
print "</tr>";
print "<tr>";
print "<td style=\"font-weight:bold;\" valign=\"top\">Description:</td>";
print "<td><textarea id=\"InputFields\" name=\"description\" style=\"width:300px;height:100px;\"></textarea></td>";
print "</tr>";
print "<tr>";
print "<td style=\"font-weight:bold;\" valign=\"top\">Steps to repeat:</td>";
print "<td><textarea id=\"InputFields\" name=\"steps\" style=\"width:300px;height:100px;\"></textarea></td>";
print "</tr>";
print "<tr>";
print "<td style=\"font-weight:bold;\" valign=\"top\">Error Message:</td>";
print "<td><textarea id=\"InputFields\" name=\"error_msg\" style=\"width:300px;height:100px;\"></textarea></td>";
print "</tr>";
print "<tr>";
print "<td></td>";
print "<td>";
print_submit("Submit");
print "</td>";
print "</tr>";
print "</table>";
print "</form>";
コード例 #8
0
ファイル: album_edit.php プロジェクト: smrealms/smrv2.0
print "<td align=\"right\" style=\"font-weight:bold;\">Website:</td>";
print "<td><input type=\"text\" name=\"website\" id=\"InputFields\" style=\"width:303px;\" value=\"{$website}\" onBlur=\"javascript:if (this.value == '') {this.value = 'http://';}\"></td>";
print "</tr>";
print "<tr>";
print "<td align=\"right\" style=\"font-weight:bold;\">Birthdate:</td>";
print "<td>Month:&nbsp;<input type=\"text\" name=\"day\" id=\"InputFields\" value=\"{$day}\" size=\"3\" maxlength=\"2\" style=\"text-align:center;\" onFocus=\"javascript:if (this.value == 'N/A') {this.value = '';}\" onBlur=\"javascript:if (this.value == '') {this.value = 'N/A';}\">&nbsp;&nbsp;&nbsp;";
print "Day:&nbsp;<input type=\"text\" name=\"month\" id=\"InputFields\" value=\"{$month}\" size=\"3\" maxlength=\"2\" style=\"text-align:center;\" onFocus=\"javascript:if (this.value == 'N/A') {this.value = '';}\" onBlur=\"javascript:if (this.value == '') {this.value = 'N/A';}\">&nbsp;&nbsp;&nbsp;";
print "Year:&nbsp;<input type=\"text\" name=\"year\" id=\"InputFields\" value=\"{$year}\" size=\"3\" maxlength=\"4\" style=\"text-align:center;\" onFocus=\"javascript:if (this.value == 'N/A') {this.value = '';}\" onBlur=\"javascript:if (this.value == '') {this.value = 'N/A';}\"></td>";
print "</tr>";
print "<tr>";
print "<td align=\"right\" valign=\"top\" style=\"font-weight:bold;\">Other Info:<br><small>(AIM/ICQ)</small></td>";
print "<td><textarea name=\"other\" id=\"InputFields\" style=\"width:303px;height:100px;\" onFocus=\"javascript:if (this.value == 'N/A') {this.value = '';}\" onBlur=\"javascript:if (this.value == '') {this.value = 'N/A';}\">{$other}</textarea></td>";
print "</tr>";
print "<tr>";
print "<td align=\"right\" valign=\"top\" style=\"font-weight:bold;\">Image:</td>";
print "<td>";
if (is_readable(UPLOAD . SmrSession::$old_account_id)) {
    print "<img src=\"" . URL . "/upload/" . SmrSession::$old_account_id . "\"><br />";
}
print "<input type=\"file\" name=\"photo\" accept=\"image/jpeg\" id=\"InputFields\" style=\"width:303px;\" ></td>";
print "</tr>";
print "<tr>";
print "<td>&nbsp;</td>";
print "<td>";
print_submit("Submit");
print "&nbsp;&nbsp;&nbsp;";
print_submit("Delete Entry");
print "</td>";
print "</tr>";
print "</table>";
print "</form>";
コード例 #9
0
}
print_topic("Confirmation");
print "Are you sure you want to transfer {$amount} credits to<br>";
$db->query("SELECT * FROM account WHERE account_id = {$account_id}");
if ($db->next_record()) {
    $login = $db->f("login");
}
$db->query("SELECT * FROM player WHERE account_id = {$account_id}");
if ($db->nf()) {
    while ($db->next_record()) {
        $player_name = stripslashes($db->f("player_name"));
        $game_id = $db->f("game_id");
        $db2->query("SELECT * FROM game WHERE game_id = {$game_id}");
        if ($db2->next_record()) {
            $game_name = $db2->f("game_name");
        }
        print "{$player_name} in game {$game_name}({$game_id})<br>";
    }
} else {
    print "Player with login name {$login}?<br>";
}
print "<p>&nbsp;</p>";
$container = array();
$container["url"] = "preferences_processing.php";
$container["account_id"] = $account_id;
$container["amount"] = $amount;
print_form($container);
print_submit("Yes");
print "&nbsp;&nbsp;";
print_submit("No");
print "</form>";
コード例 #10
0
ファイル: bar_gambling.php プロジェクト: smrealms/smrv2.0
            print "You have won \$" . number_format($bet * $winnings) . " credits!";
        } elseif (sizeof($ai_card) > 2) {
            if (empty($bet)) {
                $bet = $var["bet"];
            }
            $winnings = 1;
            $player->credits += $bet * $winnings;
            $stat = $bet * $winnings - $bet;
            $player->update();
            $player->update_stat('blackjack_win', $stat);
            print "You have won back your \$" . number_format($bet * $winnings) . " credits!";
        } else {
            //AI has BJ already...sorry
            if (empty($bet)) {
                $bet = $var["bet"];
            }
            $player->update_stat('blackjack_lose', $bet);
        }
        $container = array();
        $container["url"] = "skeleton.php";
        $container["body"] = "bar_main.php";
        $container["script"] = "bar_gambling.php";
        $container["action"] = "blackjack";
        $container["cards"] = $cards;
        $container["bet"] = $bet;
        print_form($container);
        print_submit("Play Some More (\${$bet})");
        print "</form>";
        print "</div>";
    }
}
コード例 #11
0
ファイル: bar_ticker_buy.php プロジェクト: smrealms/smrv2.0
            $type = "Scout Message Blocker";
        }
        $left = $expire - time();
        $days = floor($left / 86400);
        $left -= $days * 86400;
        $hours = floor($left / 3600);
        $left -= $hours * 3600;
        $mins = floor($left / 60);
        $left -= $mins * 60;
        $remain = "{$days} Days, {$hours} Hours, {$mins} Minutes, {$left} Seconds";
        print "You own a {$type} for another {$remain}.<br>";
        if ($type == "News Ticker") {
            print "Note: If you select Scout Message Ticker you will lose your Current News Ticker<br>";
        }
        if ($type == "Scout Message Ticker") {
            print "Note: If you select Current News Ticker you will lose your Scout Message Ticker<br>";
        }
    }
    print "Great idea!  So what do you want us to configure your system to do?<br>";
    $container = array();
    $container["url"] = "skeleton.php";
    $container["body"] = "bar_main.php";
    $container["script"] = "bar_ticker_buy.php";
    $container["process"] = "yes";
    print_form($container);
    print "<input type=radio name=type value=scout>Send Scout Messages<br>";
    print "<input type=radio name=type value=news>Send Recent News<br>";
    print "<input type=radio name=type value=block>Block Scout Message Tickers<br /><small>This will only block messages to tickers, it will not completely block scout messages</small><br>";
    print_submit("Continue");
    print "</form>";
}
コード例 #12
0
*/
require_once "lib.inc.php";
$GLOBAL_SESSION = returnsession();
$common_html = returnsystemlang("common_html");
page_css("System Setting");
$goalfile = "system_config.ini";
if ($_GET['action'] == "" || $_GET['action'] == "init") {
    @($ini_file = @parse_ini_file($goalfile));
    form_begin("form1", "action=updatedata");
    table_begin();
    print_title($common_html['common_html']['systemconfiginformation']);
    print_tr("横幅栏显示:", "CompanyName", $ini_file[CompanyName], 50, 1, "SmallInput", "");
    print_tr("状态栏显示:", "status_bar", $ini_file[status_bar], 50, 1, "SmallInput", "");
    print_tr("IE标题栏:", "IETitle", $ini_file[IETitle], 50, 1, "SmallInput", "");
    print_tr("登录界面标题栏:", "LoginTitle", $ini_file[LoginTitle], 50, 1, "SmallInput", "");
    print_submit($common_html['common_html']['submit'], 2, 'all', '#');
    table_end();
    form_end();
}
if ($_GET['action'] == "updatedata") {
    if (is_file($goalfile)) {
        unlink($goalfile);
    }
    $goalfile = $goalfile;
    $_POST['status_bar'] = str_replace("(", "(", $_POST['status_bar']);
    $_POST['status_bar'] = str_replace(")", ")", $_POST['status_bar']);
    $_POST['CompanyName'] = str_replace("(", "(", $_POST['CompanyName']);
    $_POST['CompanyName'] = str_replace(")", ")", $_POST['CompanyName']);
    $_POST['IETitle'] = str_replace("(", "(", $_POST['IETitle']);
    $_POST['IETitle'] = str_replace(")", ")", $_POST['IETitle']);
    $_POST['LoginTitle'] = str_replace("(", "(", $_POST['LoginTitle']);
コード例 #13
0
<?php

print_topic("Galactic Post Application");
include get_file_loc('menue.inc');
print_galactic_post_menue();
$container = array();
$container["url"] = "galactic_post_application_processing.php";
print_form($container);
print "<br>Have you ever written for any type of newspaper before?<br>";
print "Yes : <input type=\"radio\" name=\"exp\" value=\"1\"><br>";
print "No : <input type=\"radio\" name=\"exp\" value=\"2\"><br>";
print "<br>";
print "How many articles would you write per day if you were selected?<br>";
print "<input type=\"text\" name=\"amount\" value=\"0\" id=\"InputFields\" style=\"text-align:right;width:25;\">";
print "<br>";
print "In 255 characters or less please describe why you should be accepted<br>";
print "<textarea name=\"message\" id=\"InputFields\" style=\"width:350px;height:100px;\"></textarea>";
print "<br><br>";
print_submit("Apply");
print "</form>";
コード例 #14
0
ファイル: underground.php プロジェクト: smrealms/smrv2.0
print_topic("Underground HQ");
include get_file_loc('menue.inc');
print_ug_menue();
$db2 = new SmrMySqlDatabase();
$db->query("SELECT * FROM bounty WHERE game_id = {$player->game_id} AND type = 'UG' AND claimer_id = 0 ORDER BY amount DESC");
if ($db->nf()) {
    print "Most Wanted by the Underground<br><br>";
    print_table();
    print "<tr>";
    print "<th>Player Name</th>";
    print "<th>Bounty Amount</th>";
    print "</tr>";
    while ($db->next_record()) {
        $id = $db->f("account_id");
        $db2->query("SELECT * FROM player WHERE game_id = {$player->game_id} AND account_id = {$id}");
        if ($db2->next_record()) {
            $name = stripslashes($db2->f("player_name"));
            $amount = $db->f("amount");
            print "<tr>";
            print "<td align=\"center\"><font color=yellow>{$name}</font></td>";
            print "<td align=\"center\"><font color=red> " . number_format($amount) . " </font></td>";
            print "</tr>";
        }
    }
    print "</table>";
}
if ($player->alignment <= 99 && $player->alignment >= -100) {
    print_form(create_container("government_processing.php", ""));
    print_submit("Become a gang member");
    print "</form>";
}
コード例 #15
0
ファイル: bounty_place.php プロジェクト: smrealms/smrv2.0
<?php

require_once get_file_loc('smr_sector.inc');
$sector = new SMR_SECTOR($player->sector_id, SmrSession::$game_id, SmrSession::$old_account_id);
print_topic("Place a Bounty");
include get_file_loc('menue.inc');
if ($sector->has_hq()) {
    print_hq_menue();
} else {
    print_ug_menue();
}
$container = array();
$container["url"] = "skeleton.php";
$container["body"] = "bounty_place_confirm.php";
print_form($container);
print "Select the player you want to add the bounty to<br>";
print "<select name=\"account_id\" size=\"1\" id=\"InputFields\">";
print "<option value=0>[Please Select]</option>";
$db->query("SELECT * FROM player WHERE game_id = {$player->game_id} ORDER BY player_name");
while ($db->next_record()) {
    print "<option value=\"" . $db->f("account_id") . "\">" . stripslashes($db->f("player_name")) . "</option>";
}
print "</select>";
print "<br><br>";
print "Enter the amount you wish to place on this player<br>";
print "<input type=\"text\" name=\"amount\" maxlength=\"10\" size=\"10\" id=\"InputFields\">";
print "<br><br>";
print_submit("Place");
コード例 #16
0
    $amount = $db->f("message_id") + 1;
} else {
    $amount = 1;
}
$gossip_tell = $_REQUEST['gossip_tell'];
if (isset($gossip_tell)) {
    $db->query("INSERT INTO bar_tender (game_id, message_id, message) VALUES (" . SmrSession::$game_id . ", {$amount},  " . format_string($gossip_tell, true) . " )");
}
$db->query("SELECT * FROM bar_tender WHERE game_id = " . SmrSession::$game_id . " ORDER BY rand() LIMIT 1");
if ($db->next_record()) {
    print "I heard ";
    $message = stripslashes($db->f("message"));
    print "{$message}<br><br>";
    print "Got anything else to tell me?<br>";
} else {
    print "I havent heard anything recently...got anything to tell me?<br><br>";
}
print_form(create_container("skeleton.php", "bar_talk_bartender.php"));
print "<input type=\"text\" name=\"gossip_tell\" size=\"30\" id=\"InputFields\">";
print_submit("Tell him");
print "</form><br>";
print "What else can I do for ya?";
print "<br><br>";
print_form(create_container("skeleton.php", "bar_buy_drink.php"));
print_submit("Buy a drink (\$10)");
print "<br>";
print_submit("Buy some water (\$10)");
print "</form><br>";
print_form(create_container("skeleton.php", "bar_talk_bartender.php"));
print_submit("Talk to bartender");
print "</form>";
コード例 #17
0
ファイル: council_embassy.php プロジェクト: smrealms/smrv2.0
print_topic("RULING COUNCIL OF {$player->race_name}");
print_council_menue($player->race_id, getPresident($player->race_id));
print "<table border=\"0\" class=\"standard\" cellspacing=\"0\" align=\"center\" width=\"50%\">";
print "<tr>";
print "<th>Race</th>";
print "<th>Treaty</th>";
print "</tr>";
$db2 = new SmrMySqlDatabase();
$db->query("SELECT * FROM race " . "WHERE race_id != {$player->race_id} AND " . "race_id > 1");
while ($db->next_record()) {
    $race_id = $db->f("race_id");
    $race_name = $db->f("race_name");
    $db2->query("SELECT * FROM race_has_voting " . "WHERE game_id = {$player->game_id} AND " . "race_id_1 = {$player->race_id} AND " . "race_id_2 = {$race_id}");
    if ($db2->nf() > 0) {
        continue;
    }
    print "<tr>";
    print "<td align=\"center\">" . $player->get_colored_race($race_id) . "</td>";
    $container = array();
    $container["url"] = "council_embassy_processing.php";
    $container["race_id"] = $race_id;
    print_form($container);
    print "<td align=\"center\">";
    print_submit("Peace");
    print "&nbsp;";
    print_submit("War");
    print "</td>";
    print "</form>";
    print "</tr>";
}
print "</table>";
コード例 #18
0
ファイル: council_vote.php プロジェクト: smrealms/smrv2.0
        }
        print "<td nowrap=\"nowrap\" align=\"center\">";
        if ($voted_for == "YES") {
            print_submit_style("Yes", "background-color:green;");
        } else {
            print_submit("Yes");
        }
        print "&nbsp;";
        if ($voted_for == "NO") {
            print_submit_style("No", "background-color:green;");
        } else {
            print_submit("No");
        }
        if ($president->account_id == $player->account_id) {
            print "&nbsp;";
            print_submit("Veto");
        }
        print "</td>";
        // get 'yes' votes
        $db2->query("SELECT * FROM player_votes_pact " . "WHERE game_id = {$player->game_id} AND " . "race_id_1 = {$player->race_id} AND " . "race_id_2 = {$race_id_2} AND " . "vote = 'YES'");
        $yes_votes = $db2->nf();
        // get 'no' votes
        $db2->query("SELECT * FROM player_votes_pact " . "WHERE game_id = {$player->game_id} AND " . "race_id_1 = {$player->race_id} AND " . "race_id_2 = {$race_id_2} AND " . "vote = 'NO'");
        $no_votes = $db2->nf();
        print "<td align=\"center\">{$yes_votes} / {$no_votes}</td>";
        print "<td nowrap=\"nowrap\"align=\"center\">" . date("n/j/Y", $end_time) . "<br>" . date("g:i:s A", $end_time) . "</td>";
        print "</form>";
        print "</tr>";
    }
    print "</table>";
}
コード例 #19
0
    } else {
        print "{$cost}-credits, ";
    }
    $db2->query("SELECT * FROM planet_cost_time WHERE construction_id = {$construction_id}");
    if ($db2->next_record()) {
        print $db2->f("amount") / 3600 / $game_speed . "-hours";
    }
    print "</td>";
    print "<td>";
    if (!$missing_good && !$missing_credits && !$planet->build() && $planet->construction[$construction_id] < $planet->max_construction[$construction_id]) {
        $container = array();
        $container["url"] = "planet_construction_processing.php";
        $container["construction_id"] = $construction_id;
        $container["cost"] = $cost;
        print_form($container);
        print_submit("Build");
        print "</form>";
    } else {
        print "&nbsp;";
    }
    print "</td>";
    print "</tr>";
    //print("</form>");
}
print "</table>";
print "</div>";
print "</p>";
print "<p>Your stockpile contains :</p>";
print "<ul>";
foreach ($planet->stockpile as $id => $amount) {
    if ($amount > 0) {
コード例 #20
0
ファイル: sector_scan.php プロジェクト: smrealms/smrv2.0
    print "Yes";
} else {
    print "No";
}
print "</td>";
print "</tr>";
print "<tr>";
print "<td>Location</td>";
print "<td>";
if ($target_sector->has_location()) {
    print "Yes";
} else {
    print "No";
}
print "</td>";
print "</tr>";
print "</table>";
print "</p>";
// is it a warp or a normal move?
if ($sector->warp == $var["target_sector"]) {
    $turns = 5;
} else {
    $turns = 1;
}
$container = array();
$container["url"] = "sector_move_processing.php";
$container["target_page"] = "current_sector.php";
transfer("target_sector");
print_form($container);
print_submit("Enter " . $var["target_sector"] . " ({$turns})");
print "</form></p>";
コード例 #21
0
<?php

$db->query("SELECT * FROM race WHERE race_id = " . $var["race_id"]);
if ($db->next_record()) {
    $race_name = $db->f("race_name");
}
print_topic("Send message to ruling council of the {$race_name}");
include get_file_loc('menue.inc');
print_message_menue();
print "<p>";
$container = array();
$container["url"] = "council_send_message_processing.php";
transfer("race_id");
print_form($container);
print "<p><small><b>From:</b> {$player->player_name} ({$player->player_id})<br>";
print "<b>To:</b> Ruling Council of {$race_name}</small></p>";
print "<textarea name=\"message\" id=\"InputFields\" style=\"width:350px;height:100px;\"></textarea><br><br>";
print_submit("Send message");
print "</form>";
print "</p>";
コード例 #22
0
ファイル: government.php プロジェクト: smrealms/smrv2.0
    }
    print "<br>The government will PAY for the destruction of their ships!";
}
$db->query("SELECT * FROM bounty WHERE game_id = {$player->game_id} AND type = 'HQ' AND claimer_id = 0 ORDER BY amount DESC");
print "<p>&nbsp;</p>";
if ($db->nf()) {
    print "<div align=\"center\">Most Wanted by Federal Government</div><br>";
    print_table();
    print "<tr>";
    print "<th>Player Name</th>";
    print "<th>Bounty Amount</th>";
    print "</tr>";
    while ($db->next_record()) {
        $id = $db->f("account_id");
        $db2->query("SELECT * FROM player WHERE game_id = {$player->game_id} AND account_id = {$id}");
        if ($db2->next_record()) {
            $name = stripslashes($db2->f("player_name"));
        }
        $amount = $db->f("amount");
        print "<tr>";
        print "<td align=\"center\"><font color=yellow>{$name}</font></td>";
        print "<td align=\"center\"><font color=red> " . number_format($amount) . " </font></td>";
        print "</tr>";
    }
    print "</table>";
}
if ($player->alignment >= -99 && $player->alignment <= 100) {
    print_form(create_container("government_processing.php", ""));
    print_submit("Become a deputy");
    print "</form>";
}
コード例 #23
0
ファイル: validate.php プロジェクト: smrealms/smrv2.0
print_form($container);
print "<p>Welcome " . $account->first_name . ",</p>";
print "<p>";
print "Thank you for trying out Space Merchant Realms! We hope that you are enjoying the game. However,";
print "in order for you to experience the full features of the game, you need to validate your login.";
print "When you first created your login, you should have received an email confirmation which includes";
print "your validation code. If you have not received this, please verify that you gave us the correct";
print "email address by going to the user preferences page. If it";
print "is incorrect, please edit the email address and it will generate a new code and have it sent to";
print "you.";
print "</p>";
print "<p>";
print "The following restrictions are placed on users who have not validated their account:";
print "<ul>";
print "<li>No additional turns are granted to your traders while you are not validated.";
print "<li>Bank access is denied.";
print "<li>You will be unable to land on a planet.";
print "<li>You will be unable to access alliances.";
print "<li>You will be unable to vote in the daily politics of the universe.";
print "</ul>";
print "</p>";
print "<p>";
print "Enter validation code:&nbsp;&nbsp;";
print "<input type=\"text\" name=\"validation_code\" maxlength=\"10\" size=\"10\" id=\"InputFields\" style=\"text-align:center;\">";
print "</p>";
print "<p align=\"center\">";
print_submit("Validate me now!");
print "&nbsp;&nbsp;";
print_submit("I'll validate later.");
print "</p>";
print "</form>";
コード例 #24
0
    while ($db->next_record()) {
        $ship_type_id = $db->f('ship_type_id');
        $ship_name = $db->f('ship_name');
        echo '<option value="' . $db->f('ship_type_id') . '"';
        if ($ship_type_id == $default_id) {
            echo ' selected';
        }
        echo '>' . $ship_name . '</option>';
    }
    echo '</select></td></tr>';
    $attack = $ship->get_illusion_attack();
    if (empty($attack)) {
        $attack = 0;
    }
    $defense = $ship->get_illusion_defense();
    if (empty($defense)) {
        $defense = 0;
    }
    echo '<tr><td>Attack/Defense</td>';
    echo '<td><input type="text" id="InputFields" name="attack" value="';
    echo $attack;
    echo '" size="4" style="text-align:center;">&nbsp;/&nbsp;<input type="text" id="InputFields" name="defense" value="';
    echo $defense;
    echo '" size="4" style="text-align:center;"></td>';
    echo '</tr><tr><td>&nbsp;</td><td>';
    print_submit("Set Illusion");
    echo '&nbsp;&nbsp;&nbsp;&nbsp;';
    $container['action'] = 'Disable Illusion';
    echo print_button($container, 'Disable Illusion');
    print '</td></tr></table></form>';
}
コード例 #25
0
    $container["id"] = $appliee->account_id;
    print_link($container, "<font color=yellow>{$appliee->player_name}</font>");
    print " who has ";
    if ($db->f("written_before") == "YES") {
        print "written for some kind of a newspaper before.";
    } else {
        print "not written for a newspaper before.";
    }
    print "<br>";
}
print "<br><br>";
if (isset($var["id"])) {
    $db->query("SELECT * FROM galactic_post_applications WHERE game_id = {$player->game_id} AND account_id = {$var['id']}");
    $db->next_record();
    $desc = stripslashes($db->f("description"));
    $applie = new SMR_PLAYER($var["id"], $player->game_id);
    print "Name : {$applie->player_name}<br>";
    print "Have you written for some kind of newspaper before? " . $db->f("written_before");
    print "<br>";
    print "How many articles are you willing to write per day? " . $db->f("articles_per_day");
    print "<br>";
    print "What do you want to tell the editor?<br><br>{$desc}";
    $container = array();
    $container["url"] = "galactic_post_application_answer.php";
    transfer("id");
    print_form($container);
    print "<br><br>";
    print_submit("Accept");
    print_submit("Reject");
    print "</form>";
}
コード例 #26
0
include_once 'install/gui.php';
/** functions for accessing the DB */
include_once 'install/db.php';
/** functions for various checks */
include_once 'install/check.php';
# -- print the page header, include style sheets
print_header();
# --  This starts the switch statement that filters through the form options.
# --  the @ is in front of $op to suppress error messages if $op is unset and E_ALL
# --  is on.
switch (@$op) {
    case "CHM_check":
        print_CHM_check();
        break;
    case "Submit":
        print_submit();
        break;
    case _BTN_CHANGEINFO:
        print_change_info();
        break;
    case _BTN_NEWINSTALL:
        print_new_install();
        break;
    case "Start":
        if (!isset($dbmake)) {
            $dbmake = false;
        }
        make_db($dbhost, $dbuname, $dbpass, $dbname, $prefix, $dbtype, $dbmake, $dbtabletype);
        print_start();
        break;
    case "Continue":
コード例 #27
0
    $min_rank = $ourRank - 5;
    $max_rank = $ourRank + 5;
}
if ($min_rank <= 0) {
    $min_rank = 1;
    $max_rank = 10;
}
if ($max_rank > $numAlliances) {
    $max_rank = $numAlliances;
}
$container = create_container('skeleton.php', 'rankings_alliance_kills.php');
$container["min_rank"] = $min_rank;
$container["max_rank"] = $max_rank;
print_form($container);
print "<p><input type=\"text\" name=\"min_rank\" value=\"{$min_rank}\" size=\"3\" id=\"InputFields\" style=\"text-align:center;\">&nbsp;-&nbsp;<input type=\"text\" name=\"max_rank\" value=\"{$max_rank}\" size=\"3\" id=\"InputFields\" style=\"text-align:center;\">&nbsp;";
print_submit("Show");
print "</p></form>";
print "<table cellspacing=\"0\" cellpadding=\"5\" border=\"0\" class=\"standard\" width=\"95%\">";
print "<tr>";
print "<th>Rank</th>";
print "<th>Alliance</th>";
print "<th>Kills</th>";
print "</tr>";
$rank = 0;
foreach ($alliances as $id => $infoArray) {
    $rank++;
    if ($rank < $min_rank) {
        continue;
    } elseif ($rank > $max_rank) {
        break;
    }
コード例 #28
0
ファイル: leave_newbie.php プロジェクト: smrealms/smrv2.0
<?php

print_topic("LEAVE NEWBIE PROTECTION");
print_form(create_container("leave_newbie_processing.php", ""));
print "Do you really want to leave Newbie Protection?<br><br>";
print_submit("Yes!");
print "&nbsp;&nbsp;";
print_submit("No!");
print "</form>";
コード例 #29
0
ファイル: planet_main.php プロジェクト: smrealms/smrv2.0
print "</tr>";
print "<tr>";
print "<td>Turrets</td><td align=\"center\">" . $planet->construction[3] . "</td><td align=\"center\">" . $planet->accuracy() . " %</td>";
print "</tr>";
print "</table>";
print "<br />";
$db->query("SELECT * FROM player WHERE sector_id = {$player->sector_id} AND " . "game_id = " . SmrSession::$game_id . " AND " . "account_id != " . SmrSession::$old_account_id . " AND " . "land_on_planet = 'TRUE' " . "ORDER BY last_active DESC");
while ($db->next_record()) {
    $planet_player = new SMR_PLAYER($db->f("account_id"), SmrSession::$game_id);
    $container = array();
    $container["url"] = "planet_kick_processing.php";
    $container["account_id"] = $planet_player->account_id;
    print_form($container);
    $container = array();
    $container["url"] = "skeleton.php";
    $container["body"] = "trader_search_result.php";
    $container["player_id"] = $planet_player->player_id;
    print_link($container, "<span style=\"color:yellow;\">{$planet_player->player_name}</span>");
    print "&nbsp;";
    // should we be able to kick this player from our rock?
    if (($player->alliance_id != $planet_player->alliance_id || $player->alliance_id == 0) && $planet->owner_id == $player->account_id) {
        print_submit("Kick");
    }
    print "</form>";
}
if ($db->nf() > 0) {
    print "<br>";
}
print_form(create_container("planet_launch_processing.php", ""));
print_submit("Launch");
print "</form>";
コード例 #30
0
$CurXueQi = returntablefield("edu_xueqiexec", "当前学期", '1', "学期名称");
if ($_GET['开课教师'] != "") {
    $SHOWTEXT = "1";
} else {
    $SHOWTEXT = "0";
}
$goalfile = "../../Framework/system_config.ini";
if ($_GET['action'] == "") {
    $parse_ini_file = parse_ini_file($goalfile);
    page_css("预设省份区域");
    print "<SCRIPT>\n\tfunction FormCheck()\n\t{\n\t\t//if (document.form1.开课教师.value == \"\") {\n\t\t//alert(\"教师信息没有填写\");\n\t\t//return false;}\n\t}\n\tfunction td_calendar(fieldname) {\n\t\tmyleft=document.body.scrollLeft+event.clientX-event.offsetX-80;\n\t\tmytop=document.body.scrollTop+event.clientY-event.offsetY+140;\n\t\twindow.showModalDialog(fieldname,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:200px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\n\t\t}\n\t</SCRIPT>";
    print "<FORM name=form1 onsubmit=\"return FormCheck();\"  action=\"?action=DataDeal&pageid=1\" method=post encType=multipart/form-data>";
    table_begin("80%");
    print "<tr class=TableHeader><td colspan=2>&nbsp;预设省份区域[在某些使用到省份地市区县三级联动时,进行默认的值]</td></tr>";
    print_select_countryCode($parse_ini_file['provinces'], $fields);
    print_submit("提交");
    table_end();
    form_end();
    exit;
}
if ($_GET['action'] == "DataDeal") {
    page_css("预设省份区域");
    //$file = file($goalfile);
    $DataText = "[section]\nprovinces=" . $_POST['areaCode'];
    @(!($handle = fopen($goalfile, 'w')));
    fwrite($handle, $DataText);
    fclose($handle);
    //print_R($_POST);
    print_infor("你的数据操作已经成功,请返回", "location='?'", "location='?'", "?");
    exit;
}