本文整理汇总了PHP中PageFooter函数的典型用法代码示例。如果您正苦于以下问题:PHP PageFooter函数的具体用法?PHP PageFooter怎么用?PHP PageFooter使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PageFooter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PlanetDestroyMenu
function PlanetDestroyMenu()
{
global $GlobalUser;
$aktplanet = GetPlanet($GlobalUser['aktplanet']);
PageHeader("renameplanet");
echo "<!-- CONTENT AREA -->\n";
echo "<div id='content'>\n";
echo "<center>\n\n";
echo "<h1>Переименовать/покинуть планету</h1>\n";
echo "<form action=\"index.php?page=renameplanet&session=" . $_GET['session'] . "&pl=" . $aktplanet['planet_id'] . "\" method=\"POST\">\n";
echo "<input type='hidden' name='page' value='renameplanet'>\n";
echo "<center>\n\n";
echo "<table width=\"519\">\n";
echo "<tr><td class=\"c\" colspan=\"3\">Вопросы на всякий случай</td></tr>\n";
echo "<tr><th colspan=\"3\">Уничтожение планеты [" . $aktplanet['g'] . ":" . $aktplanet['s'] . ":" . $aktplanet['p'] . "] подтвердить паролем</th></tr>\n";
echo "<tr><input type=\"hidden\" name=\"deleteid\" value =\"" . $aktplanet['planet_id'] . "\">\n";
echo "<th>Пароль</th><th><input type=\"password\" name=\"pw\"></th>\n";
echo "<th><input type=\"submit\" name=\"aktion\" value=\"Удалить планету!\" alt=\"Покинуть колонию\"></th></tr>\n";
echo "</table>\n</form>\n</center>\n\n";
echo "<br><br><br><br>\n";
echo "</center>\n";
echo "</div>\n";
echo "<!-- END CONTENT AREA -->\n";
PageFooter();
ob_end_flush();
exit;
}
示例2: AllyPage_CircularMessage
} else {
if ($_GET['a'] == 17) {
AllyPage_CircularMessage();
} else {
if ($_GET['a'] == 18) {
AllyPage_Takeover();
} else {
AllyPage_Home();
}
}
}
}
}
}
}
}
}
}
}
}
}
}
} else {
AllyPage_Home();
}
}
echo "</center>\n";
echo "</div>\n";
echo "<!-- END CONTENT AREA -->\n";
PageFooter("", $AllianzenError);
ob_end_flush();
示例3: ViewFeatureTable
/**
* Output a table of features per all platforms.
*
* @param array $Features
*/
function ViewFeatureTable($Features = array())
{
global $Supported;
$Platforms = array_keys($Supported);
PageHeader();
echo '<h2 class="FeatureTitle">Data currently supported per platform</h2>';
echo '<p>Click any platform name for details, or <a href="/" style="text-decoration:underline;">go back</a>.</p>';
echo '<table class="Features"><thead><tr>';
// Header row of labels for each platform
echo '<th><i>Feature</i></th>';
foreach ($Platforms as $Slug) {
echo '<th class="Platform"><div><span><a href="?features=1&type=' . $Slug . '">' . $Supported[$Slug]['name'] . '</a></span></div></th>';
}
echo '</tr></thead><tbody>';
// Checklist of features per platform.
foreach ($Features as $Feature => $Trash) {
// Name
echo '<tr><td class="FeatureName">' . FeatureName($Feature) . '</td>';
// Status per platform.
foreach ($Platforms as $Platform) {
echo '<td>' . FeatureStatus($Platform, $Feature, false) . '</td>';
}
echo '</tr>';
}
echo '</tbody></table>';
PageFooter();
}
示例4: PageFooter
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
echo "</table>\n";
echo "<br><br><br><br>\n";
echo "</center>\n";
echo "</div>\n";
echo "<!-- END CONTENT AREA -->\n";
if ($AdminMessage || $AdminError) {
PageFooter($AdminMessage, $AdminError);
} else {
PageFooter($AdminMessage, $AdminError, false, 0);
}
ob_end_flush();
示例5: nicenum
echo "<span id=\"missiles\">" . nicenum($aktplanet["d503"]) . "</span> Межпланетные ракеты ";
}
?>
Дейтерий: <?php
echo nicenum($aktplanet["d"]);
?>
<br/><span id='slots'><?php
echo $nowfleet;
?>
</span> из <?php
echo $maxfleet;
?>
слотов находятся в эксплуатации</td>
</tr>
<tr style="display: none;" id="fleetstatusrow"><th colspan="8"><!--<div id="fleetstatus"></div>-->
<table style="font-weight: bold;" width=100% id="fleetstatustable">
<!-- will be filled with content later on while processing ajax replys -->
</table>
</th>
</tr>
<?php
echo "</table>\n\n";
}
// Недостаточно дейтерия
echo "<br><br><br><br>\n";
echo "</center>\n";
echo "</div>\n";
echo "<!-- END CONTENT AREA -->\n\n";
PageFooter($GalaxyMessage, $GalaxyError, false, 0);
ob_end_flush();
示例6: foreach
$cons = 0;
foreach ($fleetmap as $i => $id) {
$amount = $fleet_obj["ship" . $id];
if ($amount > 0) {
$cons += $amount * FleetCons($id, $user['r115'], $user['r117'], $user['r118']) / 10;
}
}
// Заправить флот
if (key_exists("c" . $c, $_POST)) {
$hours = abs(intval($_POST["c" . $c]));
} else {
$hours = 0;
}
if ($deut_avail > 0 && $deut_avail >= $cons * $hours) {
ProlongQueue($queue['task_id'], $hours * 3600);
$deut_avail -= $cons * $hours;
}
$c++;
}
// Модифицировать ресурсы на планете
$spent = $loaded - $deut_avail;
if ($spent > 0) {
AdjustResources(0, 0, $spent, $aktplanet['planet_id'], '-');
}
// Сделать редирект на склад альянса
MyGoto("infos", "&gid=34");
echo "</center>\n";
echo "</div>\n";
echo "<!-- END CONTENT AREA -->\n\n";
PageFooter("", $DepotError);
ob_end_flush();
示例7: date
<?php
if ($GlobalUser['disable']) {
echo "am: " . date("Y-m-d H:i:s", $GlobalUser['disable_until']);
}
?>
</th>
</tr>
<tr>
<th colspan=2><input type="submit" value="<?php
echo loca("OPTIONS_APPLY");
?>
" /></th>
</tr>
</form>
</table>
<?php
}
}
?>
<br><br><br><br>
</center>
</div>
<!-- END CONTENT AREA -->
<?php
PageFooter($OptionsMessage, $OptionsError);
ob_end_flush();
示例8: date
<tr height="20">
<th>Время возврата</th><th><?php
echo date("D M j G:i:s", $queue['end'] + $flighttime + $hold_time);
?>
</th>
</tr>
<tr height="20">
<td class="c" colspan="2">Корабли</td>
</tr>
<?php
// Список кораблей.
foreach ($fleet as $id => $amount) {
if ($amount > 0) {
echo " <tr height=\"20\">\n";
echo " <th width=\"50%\">" . loca("NAME_{$id}") . "</th><th>" . nicenum($amount) . "</th>\n";
echo " </tr>\n";
}
}
}
?>
</table>
<br><br><br><br>
</center>
</div>
<!-- END CONTENT AREA -->
<?php
PageFooter("", $PageError);
ob_end_flush();
示例9: ForumExport
/**
* Forum-specific export format
* @todo Project file size / export time and possibly break into multiple files
*/
protected function ForumExport($Ex)
{
// Begin
PageHeader();
$Ex->BeginExport('export ' . date('Y-m-d His') . '.txt.gz', 'vBulletin 3+');
// Users
$User_Map = array('UserID' => 'userid', 'Name' => 'username', 'Password' => 'password', 'Email' => 'email', 'InviteUserID' => 'referrerid', 'HourOffset' => 'timezoneoffset', 'CountComments' => 'posts', 'Salt' => 'salt');
$Ex->ExportTable('User', "select *,\n DATE_FORMAT(birthday_search,GET_FORMAT(DATE,'ISO')) as DateOfBirth,\n FROM_UNIXTIME(joindate) as DateFirstVisit,\n FROM_UNIXTIME(lastvisit) as DateLastActive,\n FROM_UNIXTIME(joindate) as DateInserted,\n FROM_UNIXTIME(lastactivity) as DateUpdated\n from :_user", $User_Map);
// ":_" will be replace by database prefix
// Roles
$Role_Map = array('RoleID' => 'usergroupid', 'Name' => 'title', 'Description' => 'description');
$Ex->ExportTable('Role', 'select * from :_usergroup', $Role_Map);
// UserRoles
$UserRole_Map = array('UserID' => 'userid', 'RoleID' => 'usergroupid');
$Ex->Query("CREATE TEMPORARY TABLE VbulletinRoles (userid INT UNSIGNED NOT NULL, usergroupid INT UNSIGNED NOT NULL)");
# Put primary groups into tmp table
$Ex->Query("insert into VbulletinRoles (userid, usergroupid) select userid, usergroupid from :_user");
# Put stupid CSV column into tmp table
$SecondaryRoles = $Ex->Query("select userid, membergroupids from :_user");
foreach ($SecondaryRoles as $Row) {
if ($Row['membergroupids'] != '') {
$Groups = explode(',', $Row['membergroupids']);
foreach ($Groups as $GroupID) {
$Ex->Query("insert into VbulletinRoles (userid, usergroupid) values(" . $Row['userid'] . "," . $GroupID . "");
}
}
}
# Export from our tmp table and drop
$Ex->ExportTable('UserRole', 'select userid, usergroupid from VbulletinRoles', $UserRole_Map);
$Ex->Query("DROP TABLE VbulletinRoles");
// UserMeta
$Ex->Query("CREATE TEMPORARY TABLE VbulletinUserMeta (`UserID` INT NOT NULL ,`MetaKey` VARCHAR( 64 ) NOT NULL ,`MetaValue` VARCHAR( 255 ) NOT NULL)");
# Standard vB user data
$UserFields = array('usertitle', 'homepage', 'aim', 'icq', 'yahoo', 'msn', 'skype', 'styleid');
foreach ($UserFields as $Field) {
$Ex->Query("insert into VbulletinUserMeta (UserID, MetaKey, MetaValue) select userid, '" . $Field . "', " . $Field . " from :_user where " . $Field . "!=''");
}
# Dynamic vB user data (userfield)
$ProfileFields = $Ex->Query("select varname, text from :_phrase where product='vbulletin' and fieldname='cprofilefield' and varname like 'field%_title'");
foreach ($ProfileFields as $Field) {
$VbulletinField = str_replace('_title', '', $Field['varname']);
$MetaKey = preg_replace('/[^0-9a-z_-]/', '', strtolower($Field['text']));
$Ex->Query("insert into VbulletinUserMeta (UserID, MetaKey, MetaValue) \n select userid, '" . $MetaKey . "', " . $VbulletinField . " from :_userfield where " . $VbulletinField . "!=''");
}
# Export from our tmp table and drop
$Ex->ExportTable('UserMeta', 'select UserID, MetaKey, MetaValue from VbulletinUserMeta');
$Ex->Query("DROP TABLE VbulletinUserMeta");
// Categories
$Category_Map = array('CategoryID' => 'forumid', 'Description' => 'description', 'Sort' => 'displayorder');
$Ex->ExportTable('Category', "select forumid, left(title,30) as Name, description, displayorder\n from :_forum where threadcount > 0", $Category_Map);
// Discussions
$Discussion_Map = array('DiscussionID' => 'threadid', 'CategoryID' => 'forumid', 'InsertUserID' => 'postuserid', 'UpdateUserID' => 'postuserid', 'Name' => 'title');
$Ex->ExportTable('Discussion', "select *, \n replycount+1 as CountComments, \n convert(ABS(open-1),char(1)) as Closed, \n convert(sticky,char(1)) as Announce,\n FROM_UNIXTIME(t.dateline) as DateInserted,\n FROM_UNIXTIME(lastpost) as DateUpdated,\n FROM_UNIXTIME(lastpost) as DateLastComment\n from :_thread t\n left join :_deletionlog d ON (d.type='thread' AND d.primaryid=t.threadid)\n where d.primaryid IS NULL", $Discussion_Map);
// Comments
/*$Comment_Map = array(
'CommentID' => 'postid',
'DiscussionID'=> 'threadid',
'Body'=> 'pagetext'
);
$Ex->ExportTable('Comment', "select *,
p.userid as InsertUserID,
p.userid as UpdateUserID,
FROM_UNIXTIME(p.dateline) as DateInserted,
FROM_UNIXTIME(p.dateline) as DateUpdated
from :_post p
left join :_deletionlog d ON (d.type='post' AND d.primaryid=p.postid)
where d.primaryid IS NULL", $Comment_Map);
*/
// UserDiscussion
$Ex->ExportTable('UserDiscussion', "select userid as UserID, threadid as DiscussionID from :_subscribethread");
// Activity (3.8+)
$Activity_Map = array('ActivityUserID' => 'postuserid', 'RegardingUserID' => 'userid', 'Story' => 'pagetext', 'InsertUserID' => 'postuserid');
$Tables = $Ex->Query("show tables like ':_visitormessage'");
if (count($Tables) > 0) {
# Table is present
$Ex->ExportTable('Activity', "select *, \n\t\t\t FROM_UNIXTIME(dateline) as DateInserted\n\t\t\tfrom :_visitormessage\n\t\t\twhere state='visible'", $Activity_Map);
}
// End
$Ex->EndExport();
PageFooter();
}
示例10: Buddy_Request
} else {
if (key_exists('action', $_GET) && $_GET['action'] == 7) {
Buddy_Request();
} else {
if (key_exists('action', $_GET) && $_GET['action'] == 8 && $_GET['buddy_id']) {
$buddy_id = intval($_GET['buddy_id']);
$buddy = LoadBuddy($buddy_id);
if ($buddy['request_from'] == $GlobalUser['player_id']) {
RemoveBuddy($buddy_id);
SendMessage($buddy['request_to'], loca("BUDDY_LIST"), loca("BUDDY_CONFIRM"), va(loca("BUDDY_MSG_DELETED"), $GlobalUser['oname']), 0);
}
if ($buddy['request_to'] == $GlobalUser['player_id']) {
RemoveBuddy($buddy_id);
SendMessage($buddy['request_from'], loca("BUDDY_LIST"), loca("BUDDY_CONFIRM"), va(loca("BUDDY_MSG_DELETED"), $GlobalUser['oname']), 0);
}
Buddy_Home();
} else {
Buddy_Home();
}
}
}
}
}
}
}
}
echo "</center>\n";
echo "</div>\n";
echo "<!-- END CONTENT AREA -->\n";
PageFooter("", $BuddyError);
ob_end_flush();
示例11: PageFooter
<font size=3><b><?php
echo $GlobalUser['rate_d'];
?>
</b></font>
<?php
if ($GlobalUser['trader'] != 3) {
?>
</a>
<?php
}
?>
</th>
</TR>
<tr>
<th class="c" align="center" colspan=4 ><br>Скупщик поставляет столько, сколько могут вместить ваши хранилища. <br><br><input type=submit name='trade' value='Обменять!'>
</th>
</tr>
</TABLE>
</form>
<?php
}
?>
<br><br><br><br>
</center>
</div>
<!-- END CONTENT AREA -->
<?php
PageFooter($TraderMessage, $TraderError);
ob_end_flush();
示例12: piv_error
/**
* piv_error prints an error message, does a debug backtrace print out
* and exits.
*
* On the admin pages it will just display the text on the current page and
* add the page footer (if endpage is equal to 1). On weblog pages it will use
* the extra page template for the current weblog.
*
* @param string $name
* @param string $message
* @param boolean $endpage
*/
function piv_error($name, $message, $endpage = 0)
{
global $db, $Current_weblog, $Weblogs, $Pivot_Vars;
if (!isset($db)) {
$db = new db();
}
if (!isset($Current_weblog)) {
reset($Weblogs);
if (isset($Pivot_Vars['w'])) {
$Current_weblog = weblog_from_para($Pivot_Vars['w']);
if (!$Current_weblog) {
$Current_weblog = key($Weblogs);
}
} else {
$Current_weblog = key($Weblogs);
}
}
debug_printbacktrace();
$text = "<div class='pivot-error'>\n<h2>{$name}</h2>\n\n" . "<p>{$message}</p>\n</div>\n";
if ($endpage == 1 || !defined('LIVEPAGE') && !defined('INWEBLOG')) {
echo $text;
PageFooter();
exit;
}
// Use the extra template for the current weblog
if (isset($Weblogs[$Current_weblog]['extra_template']) && $Weblogs[$Current_weblog]['extra_template'] != "") {
$template_html = load_template($Weblogs[$Current_weblog]['extra_template']);
} else {
$template_html = load_template($Weblogs[$Current_weblog]['archive_template']);
}
// Match and replace the [[weblog]] tags for the error output
$template_html = replace_subweblogs_templates($template_html, $text);
if (!$template_html) {
ErrorOut("Could not load template file: <i>{$template}</i> [does not exist]");
} else {
$output = $template_html;
$output = parse_step4($output);
}
echo $output;
flush();
exit;
}
示例13: ViewExportResult
/**
* Message: Result of export
*/
function ViewExportResult($msg = '')
{
PageHeader();
?>
<?php
PageFooter();
}
示例14: dbfree
echo "</tr>\n\n";
}
}
dbfree($planet);
}
echo "<tr></tr>\n</table>\n</th>\n\n";
if ($GlobalUser['score1'] < 0) {
$score = 0;
} else {
$score = nicenum(floor($GlobalUser['score1'] / 1000));
}
// Параметры планеты
echo "<tr><th> " . va(loca("OVERVIEW_DIAM"), nicenum($aktplanet['diameter'])) . " " . va(loca("OVERVIEW_FIELDS"), $aktplanet['fields'], $aktplanet['maxfields']) . " </th></tr>\n";
echo "<tr><th> " . va(loca("OVERVIEW_TEMP"), $aktplanet['temp'], $aktplanet['temp'] + 40) . " \n";
echo "<tr><th> " . va(loca("OVERVIEW_COORD"), "<a href=\"index.php?page=galaxy&galaxy=" . $aktplanet['g'] . "&system=" . $aktplanet['s'] . "&position=" . $aktplanet['p'] . "&session={$session}\" >[" . $aktplanet['g'] . ":" . $aktplanet['s'] . ":" . $aktplanet['p'] . "]</a>") . "\n";
echo "<tr><th> " . va(loca("OVERVIEW_RANK"), $score, "<a href='index.php?page=statistics&session={$session}&start=" . (floor($GlobalUser['place1'] / 100) * 100 + 1) . "'>" . nicenum($GlobalUser['place1']) . "</a>", nicenum($uni['usercount'])) . " \n";
echo "</table>\n<br><br><br><br><br>\n";
echo "</center>\n";
echo "</div>\n";
echo "<!-- END CONTENT AREA -->\n\n";
if ($GlobalUser['vacation']) {
$OverviewError = "<center>\nрежим отпуска<br></center>\n";
}
if ($uni['freeze']) {
$OverviewError .= "<center>\nВселенная поставлена на паузу.<br></center>\n";
}
if ($GlobalUser['admin'] > 0) {
$OverviewMessage .= "<center>" . loca("OVERVIEW_ADMIN_NOTE") . "<br></center>\n";
}
PageFooter($OverviewMessage, $OverviewError, false);
ob_end_flush();
示例15: PageFooter
<?php
if ($internal) {
$pranger_url = "index.php?page=pranger&session={$session}&from";
} else {
$pranger_url = "pranger.php?from";
}
if ($from >= 50) {
echo " <a href=\"" . $pranger_url . "=" . ($from - 50) . "\"><< Предыдущие 50</a> \n";
}
if ($total >= 50) {
echo " <a href=\"" . $pranger_url . "=" . ($from + 50) . "\">Следующие 50 >></a>\n";
}
?>
</th>
</tr>
</table>
</center>
</body>
</html>
<?php
// ************************************************************************************
if ($internal) {
echo "<br><br><br><br>\n";
echo "</center>\n";
echo "</div>\n";
echo "<!-- END CONTENT AREA -->\n";
PageFooter("", "");
}
ob_end_flush();