本文整理汇总了PHP中html_footer函数的典型用法代码示例。如果您正苦于以下问题:PHP html_footer函数的具体用法?PHP html_footer怎么用?PHP html_footer使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_footer函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printoutPreview
function printoutPreview () {
echo html_header($this->config);
echo $this->toStringPreview();
echo html_footer();
}
示例2: view_result
function view_result($status = '')
{
global $somethingstaged, $enable_stats;
if ($status == '') {
$status = get_status();
}
debug($status);
if ($status['disable_commit'] !== true) {
$something_to_commit = $somethingstaged;
}
echo html_form_end($something_to_commit, $status['hash']);
echo html_footer();
}
示例3: printoutPreview
function printoutPreview ($args) {
if ($this->config->getValue("Main", "wholesite"))
echo html_header($this->config);
require_once($GLOBALS["RELATIVE_PATH_EXTERN"]
. "/modules/views/ExternSemLectureTree.class.php");
$tree = new ExternSemLectureTree($this->config, $args["start_item_id"]);
$tree->showSemTree();
if ($this->config->getValue("Main", "wholesite"))
echo html_footer();
}
示例4: cookie_check
function cookie_check()
{
global $cfg;
if (!isset($_SESSION['cookie_check'])) {
if (isset($_GET['cookie_check'])) {
html_header("Cookie Support Required");
echo "<p>Cookies are not supported by your browser. " . "Please enable cookies and <a href=\"" . selflink() . "\">try again</a>.</p>";
html_footer();
exit;
} else {
$_SESSION['cookie_check'] = 1;
redirect(selflink('cookie_check=1'));
}
}
}
示例5: view
function view($name = null, $set = array())
{
#- page title & view class set
global $title, $tbl;
$set->title = $title;
#- view file not exist error
if (empty($name)) {
return false;
}
#- View file
$view_file = VIEW_PATH . $name . '.phtml';
if (file_exists($view_file)) {
require_once $view_file;
#- html footer
echo "<br><br><br><br><br>\n";
html_footer();
return true;
}
error($view_file, 'ERS_Dev_Msg: File not found.');
return false;
}
示例6: page_html_footer
function page_html_footer()
{
html_footer();
return 1;
}
示例7: manage_display
//.........这里部分代码省略.........
$form->addElement('text', 'rules', 'Rules URL: ');
$form->addElement('submit', null, 'Submit');
// convert date format and store default values
$row['show_time'] = sql2form_datetime($row['show_time']);
$row['begin_time'] = sql2form_datetime($row['begin_time']);
$row['end_time'] = sql2form_datetime($row['end_time']);
$form->setDefaults($row);
$form->applyFilter('name', 'trim');
$form->applyFilter('description', 'trim');
$form->applyFilter('team_size', 'trim');
$form->addRule('name', 'Contest name is required.', 'required', null, 'client');
$form->addRule('team_size', 'Team size is required.', 'required', null, 'client');
// validate or display form
if ($form->validate()) {
$data = $form->getSubmitValues();
$data['show_time'] = form2sql_datetime($data['show_time']);
$data['begin_time'] = form2sql_datetime($data['begin_time']);
$data['end_time'] = form2sql_datetime($data['end_time']);
$db->autoExecute('contests', $data, DB_AUTOQUERY_UPDATE, 'contest_id=' . $_GET['id']);
if (PEAR::isError($res)) {
error($db->toString());
}
redirect('index.php?view=manage&id=' . $_GET['id']);
} else {
$form->display();
}
break;
case 'submissions':
// Re-use $row from above
if ($row['end_future'] != '1') {
// Contest has ended, show system test button
if ($row['tested'] != 1) {
?>
<p>Contest has ended.
<a class="button" href="index.php?view=manage&&task=test&updateratings=false&id=<?php
echo $_GET['id'];
?>
">Test and grade all submissions.</a>
<a class="button" href="index.php?view=manage&task=test&updateratings=true&id=<?php
echo $_GET['id'];
?>
">Update Ratings</a>
</p>
<?php
} else {
?>
<p>Contest has ended and system tests are over.
<a class="button" href="index.php?view=manage&task=test&id=<?php
echo $_GET['id'];
?>
">Re-run system tests.</a>
</p>
<?php
}
}
// Show table of all solutions in the contest
$table = new HTML_Table();
$res =& db_query('solutions_by_contest_id', $_GET['id']);
if (!$res->fetchInto($row)) {
// If no solutions in yet
?>
<p>Sorry, no solutions have been submitted yet.</p>
<?php
} else {
$table->addRow(array_keys($row), null, 'TH');
if ($row['score'] == '') {
$row['score'] = 'n/a';
}
if ($row['passed'] == '') {
$row['passed'] = 'n/a';
}
$table->addRow(array_values($row));
while ($res->fetchInto($row)) {
if ($row['score'] == '') {
$row['score'] = 'n/a';
}
if ($row['passed'] == '') {
$row['passed'] = 'n/a';
}
$table->addRow(array_values($row));
}
$table->altRowAttributes(1, null, array("class" => "altrow"));
echo '<div class="overflow">' . $table->toHtml() . '</div>';
}
break;
case 'test':
require_once 'tester.php';
ob_end_clean();
html_reset();
html_header(null, $cfg["dir"]["themes"] . '/' . $_SESSION["theme"] . '.css', $cfg["dir"]["themes"] . '/' . $_SESSION["theme"] . '-ie.css', null, "submit_frame");
$contest_id = $_GET['id'];
$update_ratings = $_GET['updateratings'];
session_write_close();
test_contest($update_ratings, $contest_id);
echo ' <a class="white" href="index.php?view=statistics&task=contest&id=' . $_GET['id'] . '">See the results.</a>';
html_footer();
exit;
}
}
示例8: function
source: function(query, callback) {
$.getJSON('<?php
echo get_uri('/rpc');
?>
', {type: "suggest", arg: query}, function(data) {
callback(data);
});
},
matcher: function(item) { return true; },
sorter: function(items) { return items; },
menu: '<ul class="pkgsearch-typeahead"></ul>',
items: 20,
updater: function(item) {
document.location = '/packages/' + item;
return item;
}
}).attr('autocomplete', 'off');
$('#pkgsearch-field').keydown(function(e) {
if (e.keyCode == 13) {
var selectedItem = $('ul.pkgsearch-typeahead li.active');
if (selectedItem.length == 0) {
$('#pkgsearch-form').submit();
}
}
});
});
</script>
<?php
html_footer(AURWEB_VERSION);
示例9: html_header
<?php
require_once "common-url.php";
require_once "common-msg.php";
html_header("URL: Enlace a formulario descargable");
?>
Ingrese la URL del enlace al formulario descargable.
<br/><br/>
<?php
echo formularioURL("URL: Enlace a formulario descargable", "La URL del formulario descargable ha sido actualizada.", "formulario_descargable", "(Ej. http://www.probidadytransparencia.gob.cl/formulario/plantilla_2012/plantilla-formulario-2012.pdf )");
?>
<?php
echo html_footer();
示例10: new_message
function new_message($group, $group_filter, $start, $subject, $sender, $body)
{
global $PHP_SELF, $NNTPSPEC, $options;
$subject = htmlspecialchars($subject, ENT_QUOTES);
$sender = htmlspecialchars($sender, ENT_QUOTES);
$body = htmlspecialchars($body, ENT_QUOTES);
nntp_header("Post Message to {$group}", array("All Forums" => "forums.php?g{$options}", "Back to {$group}" => "forums.php?g{$group}+s{$start}{$options}"));
print "<h2>Post Message to {$group}</h2>";
print "<form action='{$PHP_SELF}?s{$start}+g{$group}+p0{$options}' method='POST'>\n";
print "<center><table width='100%' border='0' cellpadding='5' cellspacing='0'>\n";
print "<tr><th align='right' valign='top'>Subject:</th>" . "<td><input type='text' name='SUBJECT' value='{$subject}' size='40'/></td></tr>\n";
print "<tr><th align='right' valign='top'>From:</th>" . "<td><input type='text' name='FROM' value='{$sender}' size='40'/></td></tr>\n";
print "<tr><th align='right' valign='top'>Body:</th>" . "<td><textarea name='BODY' cols='72' rows='24'>{$body}</textarea></td></tr>\n";
print "<tr><th></th>" . "<td><input type='submit' value='Post Message'/></td></tr>\n";
print "</table></center>\n";
print "</form>\n";
html_footer();
}
示例11: makeHtaccess
function makeHtaccess()
{
global $scriptPath, $baseURL;
if (is_file($scriptPath . ".htaccess")) {
return;
}
$htaccess = <<<EOF
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteRule ^bbclone/.*\$ - [PT]
RewriteRule ^([^_]+)_player/(.*)\$ index.php?command=\$1_player&dir=\$2 [NC,L]
RewriteRule ^rss/(.*)\$ index.php?command=rss&dir=\$1 [NC,L]
RewriteRule ^slide/(.*)\$ index.php?command=slide&dir=\$1 [NC,L]
RewriteRule ^thumbs/(.*)\$ index.php?command=thumbs&dir=\$1 [NC,L]
RewriteRule ^captions/(.*)\$ index.php?command=captions&dir=\$1 [NC,L]
RewriteRule ^(.*)/\$ index.php?command=gallery&dir=\$1
RewriteRule ^\$ index.php?command=gallery&dir=
EOF;
if (!is_writable($scriptPath)) {
$who = exec('whoami');
html_header("Permissions Error");
echo "{$scriptPath} is not writable by {$who}. Can not create required .htaccess file.";
html_footer();
exit;
}
@file_put_contents($scriptPath . ".htaccess", $htaccess);
header("Location: {$baseURL}");
exit("Unknown Error. Please press refresh.");
}
示例12: printoutPreview
function printoutPreview () {
echo html_header($this->config);
if (!$language = $this->config->getValue("Main", "language"))
$language = "de_DE";
init_i18n($language);
echo $this->toStringPreview();
echo html_footer();
}
示例13: html_header
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
// XXX This will clear the weather data cache. Need to add some sort of admin
// interface.
// apc_clear_cache("user");
print html_header();
$GLOBALS["weather"] = new geoipweather();
$weather->init();
print html_form();
print html_conditions();
print html_forecast();
print html_ad_weathercom();
print html_footer();
function html_ad_weathercom()
{
$buf .= '<div style="clear:both">';
if (!$GLOBALS["weather"]->conditions) {
return $buf;
}
$buf .= '<p><br><h3>Weather data provided by:</h3>' . '<a href="http://www.weather.com/?par=xoap&site=wx_logo' . '&cm_ven=bd_oap&cm_cat=' . $GLOBALS["config"]["partnerid"] . '&cm_pla=HomePage&cm_ite=Logo">' . '<img src="/img/logos/TWClogo_61px.png" alt="weather.com">' . '</a><br><br>';
foreach ($GLOBALS["weather"]->conditions->lnks->link as $link) {
$buf .= '<a href="' . str_replace("&", "&", $link->l) . '">' . $link->t . "</a> ";
}
$buf .= "<br>\n";
return $buf;
}
function html_conditions()
{
示例14: mysql_fetch_assoc
$row = mysql_fetch_assoc($result);
# don't need to check if they have permissions, this is a
# normal user editing themselves.
#
print __("Use this form to update your account.");
print "<br />";
print __("Leave the password fields blank to keep your same password.");
display_account_form($atype, "UpdateAccount", $row["Username"], $row["AccountType"], $row["Suspended"], $row["Email"], "", "", $row["RealName"], $row["LangPreference"], $row["IRCNick"], $row["NewPkgNotify"], $row["ID"]);
}
}
}
} else {
# visitor is not logged in
#
if ($_REQUEST["Action"] == "AccountInfo") {
print __("You must log in to view user information.");
} elseif ($_REQUEST["Action"] == "NewAccount") {
# process the form input for creating a new account
#
process_account_form("", "new", "NewAccount", $_REQUEST["U"], 1, 0, $_REQUEST["E"], $_REQUEST["P"], $_REQUEST["C"], $_REQUEST["R"], $_REQUEST["L"], $_REQUEST["I"], $_REQUEST["N"]);
} else {
# display the account request form
#
print __("Use this form to create an account.");
display_account_form("", "NewAccount");
}
}
echo " </div>";
echo "</div>";
html_footer(AUR_VERSION);
示例15: upgrade_complete
/**
* Step 2 of upgrade - shows completion.
*/
function upgrade_complete()
{
global $lang;
echo html_header();
// Step title
echo "<h2>" . $lang['upgrade_step2'] . "</h2>\n";
// Step content
echo "<div class='install_content'>" . $lang['upgrade_step2_details'] . "</div>\n";
// Next button
echo "<div class='next'><a href='" . BASEURL . "'>" . $lang['upgrade_home'] . "</a></div>\n";
echo html_footer();
}