本文整理汇总了PHP中getFooter函数的典型用法代码示例。如果您正苦于以下问题:PHP getFooter函数的具体用法?PHP getFooter怎么用?PHP getFooter使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getFooter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: createIndexFile
function createIndexFile()
{
$indexpage = getHeader();
$indexpage .= markupPosts();
$indexpage .= getFooter();
$out = fopen('index.html', "w");
if (!$out) {
print "OMG";
exit;
}
fwrite($out, $indexpage);
fclose($out);
}
示例2: getFooter
<div class="col-sm-12">
<div class="mod-box">
<a href="/media" class="link-box">
<h3>
<span class="icon">
<svg><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#image"></use></svg>
</span>
Media from TexansForRubio
</h3>
</a>
</div>
</div>
<div class="col-sm-12">
<div class="mod-box">
<a href="https://twitter.com/texansforrubio/" target="_blank" class="link-box">
<h3>
<span class="icon">
<svg><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#twitter"></use></svg>
</span>
@TexansForRubio on Twitter
</h3>
</a>
</div>
</div>
</div>
</div>
<?php
getFooter(array('video' => true));
示例3: cms_pagefooter
function cms_pagefooter()
{
// debug("cms_pagefooter", "start", "delayed");
$navbar = pslNew("NavBar");
$output = $navbar->getNavBar('navbarFooter');
$output = getFooter();
page_close();
return $output;
}
示例4: generateDHCP
function generateDHCP()
{
global $submitErr, $submitErrMsg, $HTMLheader, $printedHTMLheader;
$mnipaddr = processInputVar('mnipaddr', ARG_STRING);
$data = getContinuationVar();
$addrArr = explode('.', $mnipaddr);
if (!ereg('^(([0-9]){1,3}\\.){3}([0-9]){1,3}$', $mnipaddr) || $addrArr[0] < 1 || $addrArr[0] > 255 || $addrArr[1] < 0 || $addrArr[1] > 255 || $addrArr[2] < 0 || $addrArr[2] > 255 || $addrArr[3] < 1 || $addrArr[3] > 255) {
$submitErr |= IPADDRERR;
$submitErrMsg[IPADDRERR] = "Invalid IP address. Must be w.x.y.z with each of " . "w, x, y, and z being between 1 and 255 (inclusive)";
print $HTMLheader;
$printedHTMLheader = 1;
generateDhcpForm($data);
print getFooter();
return;
}
header("Content-type: text/plain");
header("Content-Disposition: inline; filename=\"dhcpdata.txt\"");
foreach ($data as $comp) {
$tmp = explode('.', $comp['hostname']);
print "\t\thost {$tmp[0]} {\n";
print "\t\t\toption host-name \"{$tmp[0]}\";\n";
print "\t\t\thardware ethernet {$comp['eth0mac']};\n";
print "\t\t\tfixed-address {$comp['prip']};\n";
print "\t\t\tfilename \"/tftpboot/pxelinux.0\";\n";
print "\t\t\toption dhcp-server-identifier {$mnipaddr};\n";
print "\t\t\tnext-server {$mnipaddr};\n";
print "\t\t}\n\n";
}
}
示例5: getBlogBody
<li id="Menu_Other">
<a href="/" id="OtherLink">DGNT.Other</a>
</li>
</ul>
<div></div>
</div>
</div>
<div id="Body">
<?php
require "../includes/body.php";
echo getBlogBody();
echo getBodyCenter();
?>
</div>
<footer>
<?php
require "../includes/footer.php";
echo getFooter();
?>
</footer>
</body>
</html>
示例6: printLoginPage
function printLoginPage($servertimeout = 0)
{
global $authMechs, $skin, $user;
$user['id'] = 0;
$authtype = getContinuationVar("authtype", processInputVar("authtype", ARG_STRING));
if ($authtype == '' && array_key_exists('VCLAUTHSEL', $_COOKIE)) {
$authtype = $_COOKIE['VCLAUTHSEL'];
}
if (isset($_GET['userid'])) {
unset($_GET['userid']);
}
$userid = processInputVar('userid', ARG_STRING, '');
if ($userid == i('Proceed to Login')) {
$userid = '';
}
if (!array_key_exists($authtype, $authMechs)) {
// FIXME - hackish
dbDisconnect();
exit;
}
if (get_magic_quotes_gpc()) {
$userid = stripslashes($userid);
}
$userid = htmlspecialchars($userid);
$extrafailedmsg = '';
if ($servertimeout) {
$extrafailedmsg = " " . i("(unable to connect to authentication server)");
}
/*if($skin == 'example1') {
$useridLabel = 'Pirateid';
$passLabel = 'Passphrase';
$text1 = 'Login with your Pirate ID';
$text2 = "";
}
elseif($skin == 'example2') {
print "<br>";
print "<FORM action=\"" . BASEURL . SCRIPT . "\" method=post name=loginform>\n";
if(strlen($userid))
print "<font color=red>Login failed $extrafailedmsg</font>\n";
print "<TABLE width=\"250\">\n";
print " <TR>\n";
print " <TH align=right>Key Account:</TH>\n";
print " <TD><INPUT type=text name=userid value=\"\"></TD>\n";
print " </TR>\n";
print " <TR>\n";
print " <TH align=right>Password:</TH>\n";
print " <TD><INPUT type=password name=password></TD>\n";
print " </TR>\n";
print " <TR>\n";
print " <TD colspan=2 align=right><INPUT type=submit value=Login class=button></TD>\n";
print " </TR>\n";
print "</TABLE>\n";
print "<div width=250 align=center>\n";
print "<p>\n";
$cdata = array('authtype' => $authtype);
$cont = addContinuationsEntry('submitLogin', $cdata);
print " <INPUT type=hidden name=continuation value=\"$cont\">\n";
print " <br>\n";
print " </p>\n";
print "</div>\n";
print "</FORM>\n";
print getFooter();
return;
}
else {*/
$useridLabel = i('Userid');
$passLabel = i('Password');
$text1 = i("Login with") . " {$authtype}";
$text2 = "";
#}
print "<H2 style=\"display: block\">{$text1}</H2>\n";
print "<FORM action=\"" . BASEURL . SCRIPT . "\" method=post name=loginform>\n";
if (strlen($userid)) {
print "<font color=red>" . i("Login failed") . " {$extrafailedmsg}</font>\n";
}
print "<TABLE>\n";
print " <TR>\n";
print " <TH align=right>{$useridLabel}:</TH>\n";
print " <TD><INPUT type=text name=userid value=\"{$userid}\"></TD>\n";
print " </TR>\n";
print " <TR>\n";
print " <TH align=right>{$passLabel}:</TH>\n";
print " <TD><INPUT type=password name=password></TD>\n";
print " </TR>\n";
print " <TR>\n";
print " <TD colspan=2 align=right><INPUT type=submit value=\"" . i("Login") . "\"></TD>\n";
print " </TR>\n";
print "</TABLE>\n";
$cdata = array('authtype' => $authtype);
$cont = addContinuationsEntry('submitLogin', $cdata);
print "<INPUT type=hidden name=continuation value=\"{$cont}\">\n";
print "</FORM>\n";
print "{$text2}<br>\n";
print getFooter();
}
示例7: getMessages
////////////////////////////////////////////////////////////////////////
$content .= <<<M
<div class="moduletitle">
Documentos
</div>
<div class="submenu">
<a href="?">Inicio</a>
<span class="level5">| <a href="?mode=mode">Modo</a></span>
</div>
<div class="container">
M;
////////////////////////////////////////////////////////////////////////
//BODY
////////////////////////////////////////////////////////////////////////
$content .= <<<C
<p>
En este módulo tendrá acceso a documentos de interés sobre el
Currículo en la Facultad de Ciencias Exactas y Naturales FCEN.
</p>
C;
////////////////////////////////////////////////////////////////////////
//FOOTER AND RENDER
////////////////////////////////////////////////////////////////////////
end:
$content .= "</div>";
$content .= getMessages();
$content .= getFooter();
echo $content;
?>
</html>
示例8: getFooter
echo "<span class=\"ltblue\">Previous Page</span> ";
}
echo "<a href=\"" . $_SERVER["PHP_SELF"] . "?search=" . $_GET["search"] . "&alpha=" . $_GET["alpha"] . "&city=" . $_GET["city"] . "&p=" . $_GET["p"] . "&c=" . $_GET["c"] . "&page=" . ($page + 1) . "\" class=\"blue\">Next Page</a>";
echo "</p>";
echo "<p>" . $list_biz["biz_list"] . "</p>";
$city_display = true;
} else {
echo "No search results.";
if (isset($_GET["page"])) {
echo "<br/><br/><a href=\"" . $_SERVER["PHP_SELF"] . "?search=" . $_GET["search"] . "&alpha=" . $_GET["alpha"] . "&city=" . $_GET["city"] . "&p=" . $_GET["p"] . "&c=" . $_GET["c"] . "&page=" . ($page - 1) . "\" class=\"blue\">Return to Previous Page</a>";
}
if (isset($_GET["alpha"])) {
echo "<br/><br/><a href=\"" . $_SERVER["PHP_SELF"] . "?search=" . $_GET["search"] . "&alpha=&city=" . $_GET["city"] . "&p=" . $_GET["p"] . "&c=" . $_GET["c"] . "&page=" . $_GET["page"] . "\" class=\"blue\">View All</a>";
}
$city_display = false;
}
?>
</div>
<div id="detail-column-2" class="white">
<?php
echo $ads->buildAd(300);
?>
<br/><br/>
<div id="map"></div>
</div>
</div>
<?php
getFooter("public");
示例9: cms_pagefooter
function cms_pagefooter()
{
// debug("cms_pagefooter", "start", "delayed");
$output = getFooter();
page_close();
return $output;
}
示例10: getFooter
?>
<form action="" id="birthdayForm" method="post">
<h2>Birthday DB</h2>
<p>This will enter you into the database, if you aren't already in here.</p>
<br>
<p>Please use YYYY-MM-DD format for the date or use the calendar icon.</p>
<br>
<p>Don't want to reveal your exact birthyear? Just enter 1900 for the year instead, but keep the formatting correct!<p>
<br>
<p>Username: <input type="text" name="Username" /></p>
<p>DOB: <input type="text" style="margin-left:39px" name="Dateofbirth" id="datepicker" /></p>
<br>
<p><input type="submit" value="OMGHB2U!!! (Submit)"/></p>
</form>
<br>
<p>If you want to update your birthday, remove your birthday, or have any questions, please <a href="http://www.shacknews.com/msgcenter/new_message.x?to=askedrelic">shackmessage me</a>!<p>
<br>
<h3><a href="/">Go Back</a></h3>
</div>
<?php
echo getFooter(false);
示例11: getHead
<?php
require_once 'php/config.php';
require_once 'php/_base/getHead.php';
echo getHead('en', ['_main.min.css']);
?>
<div class="wrapper">
<?php
echo $nav->getNav('bootstrap', 'GT Marine Offshore', false);
?>
<div class="landing">
<section class="container">
<h1>ERROR 404</h1>
<p>The page you were looking for was not found :(</p>
</section>
</div>
</div>
<?php
echo getFooter(['app.js']);
示例12: switch
<?php
if (isset($_POST['lang'])) {
if (isset($_POST['action'])) {
switch ($_POST['action']) {
case 'header':
getHeader($_POST['lang']);
break;
case 'footer':
getFooter($_POST['lang']);
break;
default:
echo "error";
break;
}
return;
} else {
if (isset($_POST['content']) && "abra" != $_POST['content']) {
getContent($_POST['content'], $_POST['lang'], $_POST['device']);
return;
} else {
if ("abra" == $_POST['content']) {
include 'en/error.php';
return;
}
}
}
} else {
include 'ua/error.php';
}
function getHeader($lang)
示例13: actionAction
//.........这里部分代码省略.........
/*
* let's go through the filter array which contains
* ['qid'],
['gid'],
['type'],
['title'],
['group_name'],
['question'];
*/
$currentgroup = '';
// use to check if there are any question with public statistics
if (isset($filters)) {
$allfields = $this->createSGQA($filters);
}
// end if -> for removing the error message in case there are no filters
$summary = $allfields;
// Get the survey inforamtion
$thissurvey = getSurveyInfo($surveyid, $sLanguage);
//SET THE TEMPLATE DIRECTORY
$data['sTemplatePath'] = $surveyinfo['template'];
// surveyinfo=getSurveyInfo and if survey don't exist : stop before.
//---------- CREATE STATISTICS ----------
$redata = compact(array_keys(get_defined_vars()));
doHeader();
/// $oTemplate is a global variable defined in controller/survey/index
$oTemplate = Template::model()->getInstance(null, $surveyid);
echo templatereplace(file_get_contents($oTemplate->viewPath . "startpage.pstpl"), array(), $redata);
//some progress bar stuff
// Create progress bar which is shown while creating the results
$prb = new ProgressBar();
$prb->pedding = 2;
// Bar Pedding
$prb->brd_color = "#404040 #dfdfdf #dfdfdf #404040";
// Bar Border Color
$prb->setFrame();
// set ProgressBar Frame
$prb->frame['left'] = 50;
// Frame position from left
$prb->frame['top'] = 80;
// Frame position from top
$prb->addLabel('text', 'txt1', gT("Please wait ..."));
// add Text as Label 'txt1' and value 'Please wait'
$prb->addLabel('percent', 'pct1');
// add Percent as Label 'pct1'
$prb->addButton('btn1', gT('Go back'), '?action=statistics&sid=' . $iSurveyID);
// add Button as Label 'btn1' and action '?restart=1'
$prb->show();
// show the ProgressBar
// 1: Get list of questions with answers chosen
//"Getting Questions and Answer ..." is shown above the bar
$prb->setLabelValue('txt1', gT('Getting questions and answers ...'));
$prb->moveStep(5);
// creates array of post variable names
$postvars = array();
for (reset($_POST); $key = key($_POST); next($_POST)) {
$postvars[] = $key;
}
$data['thisSurveyTitle'] = $thisSurveyTitle;
$data['totalrecords'] = $totalrecords;
$data['summary'] = $summary;
//show some main data at the beginnung
// CHANGE JSW_NZ - let's allow html formatted questions to show
//push progress bar from 35 to 40
$process_status = 40;
//Show Summary results
if (isset($summary) && !empty($summary)) {
//"Generating Summaries ..." is shown above the progress bar
$prb->setLabelValue('txt1', gT('Generating summaries ...'));
$prb->moveStep($process_status);
//let's run through the survey // Fixed bug 3053 with array_unique
$runthrough = array_unique($summary);
//loop through all selected questions
foreach ($runthrough as $rt) {
//update progress bar
if ($process_status < 100) {
$process_status++;
}
$prb->moveStep($process_status);
}
// end foreach -> loop through all questions
$helper = new userstatistics_helper();
$statisticsoutput .= $helper->generate_statistics($iSurveyID, $summary, $summary, $publicgraphs, 'html', null, $sLanguage, false);
}
//end if -> show summary results
$data['statisticsoutput'] = $statisticsoutput;
//done! set progress bar to 100%
if (isset($prb)) {
$prb->setLabelValue('txt1', gT('Completed'));
$prb->moveStep(100);
$prb->hide();
}
$redata = compact(array_keys(get_defined_vars()));
$data['redata'] = $redata;
Yii::app()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts') . 'statistics_user.js');
$this->renderPartial('/statistics_user_view', $data);
//output footer
echo getFooter();
//Delete all Session Data
Yii::app()->session['finished'] = true;
}
示例14: printLoginPage
function printLoginPage()
{
global $authMechs, $skin, $user;
$user['id'] = 0;
$authtype = getContinuationVar("authtype", processInputVar("authtype", ARG_STRING));
$userid = processInputVar('userid', ARG_STRING, '');
if ($userid == 'Proceed to Login') {
$userid = '';
}
if (!array_key_exists($authtype, $authMechs)) {
// FIXME - hackerish
dbDisconnect();
exit;
}
/*if($skin == 'example1') {
$useridLabel = 'Pirateid';
$passLabel = 'Passphrase';
$text1 = 'Login with your Pirate ID';
$text2 = "";
}
elseif($skin == 'example2') {
print "<br>";
print "<FORM action=\"" . BASEURL . SCRIPT . "\" method=post name=loginform>\n";
if(strlen($userid))
print "<font color=red>Login failed</font>\n";
print "<TABLE width=\"250\">\n";
print " <TR>\n";
print " <TH align=right>Key Account:</TH>\n";
print " <TD><INPUT type=text name=userid value=\"\"></TD>\n";
print " </TR>\n";
print " <TR>\n";
print " <TH align=right>Password:</TH>\n";
print " <TD><INPUT type=password name=password></TD>\n";
print " </TR>\n";
print " <TR>\n";
print " <TD colspan=2 align=right><INPUT type=submit value=Login class=button></TD>\n";
print " </TR>\n";
print "</TABLE>\n";
print "<div width=250 align=center>\n";
print "<p>\n";
$cdata = array('authtype' => $authtype);
$cont = addContinuationsEntry('submitLogin', $cdata);
print " <INPUT type=hidden name=continuation value=\"$cont\">\n";
print " <br>\n";
print " </p>\n";
print "</div>\n";
print "</FORM>\n";
print getFooter();
return;
}
else {*/
$useridLabel = 'Userid';
$passLabel = 'Password';
$text1 = "Login with {$authtype}";
$text2 = "";
#}
print "<H2 style=\"display: block\">{$text1}</H2>\n";
print "<FORM action=\"" . BASEURL . SCRIPT . "\" method=post name=loginform>\n";
if (strlen($userid)) {
print "<font color=red>Login failed</font>\n";
}
print "<TABLE>\n";
print " <TR>\n";
print " <TH align=right>{$useridLabel}:</TH>\n";
print " <TD><INPUT type=text name=userid value=\"{$userid}\"></TD>\n";
print " </TR>\n";
print " <TR>\n";
print " <TH align=right>{$passLabel}:</TH>\n";
print " <TD><INPUT type=password name=password></TD>\n";
print " </TR>\n";
print " <TR>\n";
print " <TD colspan=2 align=right><INPUT type=submit value=Login></TD>\n";
print " </TR>\n";
print "</TABLE>\n";
$cdata = array('authtype' => $authtype);
$cont = addContinuationsEntry('submitLogin', $cdata);
print "<INPUT type=hidden name=continuation value=\"{$cont}\">\n";
print "</FORM>\n";
print "{$text2}<br>\n";
print getFooter();
}
示例15: encrypt
$partmodeldbo->id = "id_part_model";
$partmodeldbo->attributes = 'class="chPartModel"';
$partmodelJSON = encrypt(json_encode((array) $partmodeldbo));
$fs = array(array(array('Manufacturer', 'id_cust_company', 'onchange="filterRec(this,\'' . $partmodelJSON . '\',\'dPartModel\')"', 1, $listCompany), array('Part', 'id_part_model', 'disabled=\'disabled\' class=\'chPartModel\'', 1, null, null, "dPartModel"), array('Fixed Asset?', 'part_isAsset', null, 8, null, 1)), array(array('Generate', 'mmQuantity', null, 0), array(null, null, 'onclick="mkMMRows()"', 2, null, 'Generate')));
function getBaseElement()
{
$elements = array(array(array('MFR Serial Number', null, null, 0, null, null, null, null, 'id="x1_row" style="display:none"'), array('Internal Serial Number', null, null, 0)));
$baseElements = "";
$baseElements .= frmElements($elements);
return $baseElements;
}
function getFooter()
{
$elements = array(array(array(null, 'part_mText', null, 6, null, null, null, null, ' style="display:none" ')));
$footerElements = frmElements($elements);
return $footerElements;
}
$fieldset = '<fieldset>';
$fieldset .= '<legend>Static Elements</legend>';
$fieldset .= frmElements($fs);
$fieldset .= '</fieldset>';
$fieldset .= '<fieldset class="multiRow" style="margin-top:10px">';
$fieldset .= '<legend>Unit Import Form</legend>';
$fieldset .= '<div class="multimenu">';
$fieldset .= '<input type="button" id="mmAddButton" onClick="multiRowAddElement(this,\'frmrow\')" value="Add"/>';
$fieldset .= '<input type="button" onClick="multiRowRemoveLastElement(this,\'frmrow\')" value="Remove Last"/>';
$fieldset .= '</div>';
$fieldset .= getBaseElement();
$fieldset .= getFooter();
$fieldset .= '</fieldset>';
echo $fieldset;