本文整理汇总了PHP中print_submit函数的典型用法代码示例。如果您正苦于以下问题:PHP print_submit函数的具体用法?PHP print_submit怎么用?PHP print_submit使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_submit函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: category
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 " ";
if ($i % 3 == 0) {
print "<br>";
}
//unset vars for next sub cat
unset($one, $two);
}
print "</td></form></tr>";
}
示例2: regForm
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: printChangePasswordForm
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: print_galactic_post_menue
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: print_topic
<?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: player_visited_port
$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: print_submit
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: print_submit
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: <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';}\"> ";
print "Day: <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';}\"> ";
print "Year: <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> </td>";
print "<td>";
print_submit("Submit");
print " ";
print_submit("Delete Entry");
print "</td>";
print "</tr>";
print "</table>";
print "</form>";
示例9: print_topic
}
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> </p>";
$container = array();
$container["url"] = "preferences_processing.php";
$container["account_id"] = $account_id;
$container["amount"] = $amount;
print_form($container);
print_submit("Yes");
print " ";
print_submit("No");
print "</form>";
示例10: number_format
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: time
$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: returnsession
*/
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: print_topic
<?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: print_topic
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: get_file_loc
<?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");