当前位置: 首页>>代码示例>>PHP>>正文


PHP getFooter函数代码示例

本文整理汇总了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);
}
开发者ID:h-xx,项目名称:python-simple-blog,代码行数:13,代码来源:postfunctions.php

示例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));
开发者ID:adamaoc,项目名称:tfr-mvc,代码行数:30,代码来源:index.php

示例3: cms_pagefooter

function cms_pagefooter()
{
    // debug("cms_pagefooter", "start", "delayed");
    $navbar = pslNew("NavBar");
    $output = $navbar->getNavBar('navbarFooter');
    $output = getFooter();
    page_close();
    return $output;
}
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:9,代码来源:phpslash.inc.php

示例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";
    }
}
开发者ID:gw-acadtech,项目名称:VCL,代码行数:29,代码来源:computers.php

示例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>
开发者ID:jim19901103,项目名称:WebTest,代码行数:30,代码来源:blog.php

示例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();
}
开发者ID:bq-xiao,项目名称:apache-vcl,代码行数:95,代码来源:authentication.php

示例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>
开发者ID:facom,项目名称:Sinfin,代码行数:30,代码来源:documentos.php

示例8: getFooter

        echo "<span class=\"ltblue\">Previous Page</span> &nbsp;&nbsp;&nbsp;";
    }
    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");
开发者ID:jboydston,项目名称:shop.getlocal.net,代码行数:30,代码来源:search.php

示例9: cms_pagefooter

function cms_pagefooter()
{
    // debug("cms_pagefooter", "start", "delayed");
    $output = getFooter();
    page_close();
    return $output;
}
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:7,代码来源:back-end.inc.php

示例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);
开发者ID:askedrelic,项目名称:shack.asktherelic.com,代码行数:30,代码来源:birthday.php

示例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']);
开发者ID:Hullgj,项目名称:gtmarine,代码行数:20,代码来源:404.php

示例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)
开发者ID:mordenius,项目名称:test,代码行数:31,代码来源:constructor.php

示例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&amp;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;
 }
开发者ID:mfavetti,项目名称:LimeSurvey,代码行数:101,代码来源:Statistics_userController.php

示例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();
}
开发者ID:gw-acadtech,项目名称:VCL,代码行数:81,代码来源:authentication.php

示例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;
开发者ID:CarlosOVillanueva,项目名称:BIFROST,代码行数:31,代码来源:import.php


注:本文中的getFooter函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。