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


PHP site_header函数代码示例

本文整理汇总了PHP中site_header函数的典型用法代码示例。如果您正苦于以下问题:PHP site_header函数的具体用法?PHP site_header怎么用?PHP site_header使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了site_header函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 function display($params = array())
 {
     site_header(array('title' => $GLOBALS['Language']->getText('include_exit', 'exit_error')));
     $sendMail = new Docman_Error_PermissionDenied();
     $sendMail->buildInterface();
     $GLOBALS['HTML']->footer(array('showfeedback' => false));
     exit;
 }
开发者ID:nterray,项目名称:tuleap,代码行数:8,代码来源:Docman_View_PermissionDeniedError.class.php

示例2: exit_with_pretty_error

function exit_with_pretty_error($title, $header, $msg)
{
    if ($title) {
        site_header($title, array("noindex"));
    }
    echo '<h2>' . $header . '</h2>';
    echo '<p>' . $msg . '</p>';
    site_footer();
    exit;
}
开发者ID:romainneutron,项目名称:web-php,代码行数:10,代码来源:results.php

示例3: goodbye

/**
 *  goodbye - Just prints a message and a close button.
 *
 *  @param  string	 The message.
 */
function goodbye($msg)
{
    site_header(array('title' => _('Attachments')));
    html_feedback_top($msg);
    echo '<p><p><center><form method="post"><input type="button" value="Close Window" onclick="window.close()"></form></center>';
    site_footer(array());
    exit;
    /*echo "<center>" . $msg . "</center><p>";
    	die ('<center><form method="post"><input type="button" value="Close Window" onclick="window.close()"></form></center>');*/
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:15,代码来源:attachment.php

示例4: welcome_exit_error

function welcome_exit_error($title, $text)
{
    global $HTML, $Language, $pv;
    $GLOBALS['feedback'] .= $title;
    if (isset($pv) && $pv == 2) {
        $HTML->pv_header(array());
    } else {
        site_header(array('title' => $Language->getText('include_exit', 'exit_error'), 'registeration_process' => true));
    }
    echo '<p>', $text, '</p>';
    isset($pv) && $pv == 2 ? $HTML->pv_footer(array()) : $HTML->footer(array('showfeedback' => false));
    exit;
}
开发者ID:nterray,项目名称:tuleap,代码行数:13,代码来源:welcome.php

示例5: exit_error

function exit_error($title, $text = '')
{
    global $HTML, $Language;
    $GLOBALS['feedback'] .= $title;
    // if the error comes from the SOAP API, we don't display the site_header and footer, but a soap fault (xml).
    if (substr($_SERVER['SCRIPT_NAME'], 1, 4) != "soap") {
        site_header(array('title' => $Language->getText('include_exit', 'exit_error')));
        echo '<p>', $text, '</p>';
        $HTML->footer(array('showfeedback' => false));
    } else {
        exit_display_soap_error();
    }
    exit;
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:14,代码来源:exit.php

示例6: process

 public function process(Codendi_Request $request)
 {
     switch ($request->get('action')) {
         case 'provide_datas':
             header('Content-type : text/csv');
             echo file_get_contents($this->getCacheFolder() . 'data.csv');
             break;
         case 'beacon':
             $this->processBoomerangDatas($request);
             break;
         default:
             require_once 'common/templating/TemplateRendererFactory.class.php';
             $header_params = array('title' => 'Boomerang');
             site_header($header_params);
             $renderer = TemplateRendererFactory::build()->getRenderer(BOOMERANG_BASE_DIR . '/../templates');
             $presenter = new PerfDataPresenter();
             $renderer->renderToPage('perf-data', $presenter);
             site_footer(null);
             break;
     }
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:21,代码来源:boomerangPlugin.class.php

示例7: _header

 function _header($params)
 {
     if (!headers_sent()) {
         header("Cache-Control: no-store, no-cache, must-revalidate");
         // HTTP/1.1
         header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
         // Date in the past
     }
     if (isset($params['title'])) {
         $htmlParams['title'] = $params['title'];
     } else {
         $htmlParams['title'] = $this->_getTitle($params);
     }
     $htmlParams = array_merge($htmlParams, $this->_getAdditionalHtmlParams($params));
     if (isset($params['pv']) && $params['pv'] > 0) {
         $htmlParams['pv'] = $params['pv'];
         $GLOBALS['HTML']->pv_header($htmlParams);
     } else {
         $GLOBALS['HTML']->includeCalendarScripts();
         site_header($htmlParams);
     }
 }
开发者ID:nterray,项目名称:tuleap,代码行数:22,代码来源:Docman_View_Header.class.php

示例8: site_header

<?php

// $Id$
$_SERVER['BASE_PAGE'] = 'releases/5_4_25.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
site_header("PHP 5.4.25 Release Announcement");
?>

<h1>PHP 5.4.25 Release Announcement</h1>

<p>The PHP development team announces the immediate availability of PHP
5.4.25. 5 bugs were fixed in this release.
All PHP 5.4 users are encouraged to upgrade to this version.
</p>

<p>For source downloads of PHP 5.4.25 please visit our <a href="http://www.php.net/downloads.php">downloads page</a>,
Windows binaries can be found on <a href="http://windows.php.net/download/">windows.php.net/download/</a>.
The list of changes is recorded in the <a href="http://www.php.net/ChangeLog-5.php#5.4.25">ChangeLog</a>.
</p>

<?php 
site_footer();
开发者ID:learningendless,项目名称:web-php,代码行数:22,代码来源:5_4_25.php

示例9: site_header

<?php

// $Id$
$_SERVER['BASE_PAGE'] = 'license/index.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
site_header("License Information", array("current" => "help"));
?>

<h1>PHP Licensing</h1>

<p>
For licensing and copyright information on the PHP project materials, please see the following links:
</p>    

<ol>
 <li><a href="#code-lic">PHP Codebase</a></li>
 <li><a href="#doc-lic">PHP Documentation</a></li>
 <li><a href="#web-lic">PHP Website</a></li>
 <li><a href="#logo-lic">PHP Logo</a></li>
 <li><a href="#faq-lic">FAQ's</a></li>
 <li><a href="#other-lic">Licensing information for related projects</a></li>
</ol>

<ol>
 <li><!-- {{{ code-lic -->
  <a name="code-lic"></a>
  <h2>PHP Codebase</h2>

  <ul>
   <li>
    PHP 4 and PHP 5 are distributed under the
开发者ID:romainneutron,项目名称:web-php,代码行数:31,代码来源:index.php

示例10: site_header

<?php

require_once 'sp-bootstrap.php';
$bootstrap->isLoggedIn();
$system = 'time';
$type = 'pay_period_hours';
site_header($system);
$get_page = $_SERVER['PHP_SELF'];
site_header($system);
?>
         
    
     <h3><a href="/main/settings.php">Settings</a>  > <?php 
echo $_GET['id'] ? '<a href="' . $get_page . '">Pay Period Hours</a>' : 'Pay Period Hours';
?>
</h3>
     <div data-role="controlgroup" data-type="horizontal" class="ui-mini">
        <a href="<?php 
echo $_SERVER['PHP_SELF'];
?>
?add=true" class="ui-btn ui-btn-icon-right ui-icon-plus">Add</a>
        <a href="<?php 
echo $_SERVER['PHP_SELF'];
?>
?edit=true" class="ui-btn ui-btn-icon-right ui-icon-edit">Edit</a>
        <a href="<?php 
echo $_SERVER['PHP_SELF'];
?>
?delete=true" class="ui-btn ui-btn-icon-right ui-icon-delete">Delete</a>
    </div>
<?php 
开发者ID:blakemcdermott,项目名称:timeclock,代码行数:31,代码来源:settings-period-hours.php

示例11: news_archive_sidebar

<?php

$_SERVER['BASE_PAGE'] = 'archive/2016.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc';
news_archive_sidebar();
site_header("News Archive - 2016");
//site_header("News Archive - 2016", array("cache" => true));
?>

<h1>News Archive - 2016</h1>

<p>
 Here are the most important news items we have published in 2016 on PHP.net.
</p>

<hr>

<?php 
print_news($NEWS_ENTRIES, array("conferences", "cfp", "frontpage", "nofrontpage"), 500, 2016);
/* %s/<a href="\(.*\)"><img src="\/images\/news\/\(.*\)" alt="\(.*\)" width.*><\/a>/<?php news_image("\1", "\2", "\3"); ?>/g */
site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));
开发者ID:JamesRezo,项目名称:web-php,代码行数:22,代码来源:2016.php

示例12: site_header

<?php

// $Id$
$_SERVER['BASE_PAGE'] = 'software.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
site_header("PHP Software", array("current" => "help"));
?>

<h1>PHP Software</h1>

<p>
 This page contains a list of sites where you can find software distributed
 under the <a href="/license/3_01.txt">PHP license</a>.  
</p>

<p>
 <?php 
echo make_image("logos/php-icon-white.gif", $alt = "www.php.net", "left");
?>
&nbsp;
 <a href="http://www.php.net/">www.php.net</a><br />
 &nbsp;Main site for the PHP project.<br clear="left" />
</p>
<p>
 <?php 
echo make_image("pear-icon.png", $alt = "pear.php.net", "left");
?>
&nbsp;
 <a href="http://pear.php.net/">pear.php.net</a><br />
 &nbsp;The PEAR project where you can find reusable components for PHP .<br clear="left" />
</p>
开发者ID:romainneutron,项目名称:web-php,代码行数:31,代码来源:software.php

示例13: sources

$SIDEBAR_DATA = '
<div class="panel">
  <a href="/supported-versions.php">Supported Versions</a>
  <div class="body">
    Check the <a href="/supported-versions.php">supported versions</a> page for
    more information on the support lifetime of each version of PHP.
  </div>
</div>

<p class="panel"><a href="download-docs.php">Documentation download</a></p>
<p class="panel"><a href="download-logos.php">PHP logos</a></p>

<p class="panel"><a href="/git.php">Development sources (git)</a></p>
<p class="panel"><a href="/releases/">Old archives</a></p>
';
site_header("Downloads", array('link' => array(array("rel" => "alternate", "type" => "application/atom+xml", "href" => $MYSITE . "releases/feed.php", "title" => "PHP Release feed")), "current" => "downloads"));
?>
<a id="v5"></a>
<?php 
$i = 0;
foreach ($releases as $v => $a) {
    ?>
  <?php 
    $mver = substr($v, 0, strrpos($v, '.'));
    ?>
  <?php 
    $stable = $i++ === 0 ? "Current Stable" : "Old Stable";
    ?>

  <h3 id="v<?php 
    echo $v;
开发者ID:kvrkumar,项目名称:web-php,代码行数:31,代码来源:downloads.php

示例14: Valid_Pv

 *
 * You should have received a copy of the GNU General Public License
 * along with Codendi; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * 
 */
require 'pre.php';
$hp = Codendi_HTMLPurifier::instance();
$vPv = new Valid_Pv();
if ($request->valid($vPv) && $request->get('pv') == 2) {
    $pv = 2;
    $HTML->pv_header(array());
} else {
    $pv = 0;
    site_header(array('title' => $Language->getText('my_redirect', 'page_title')));
}
$vReturnTo = new Valid_String('return_to');
$vReturnTo->required();
if ($request->valid($vReturnTo)) {
    // if return_to URL start with a protocol name then take as is
    // otherwise prepend the proper http protocol
    // Re-serialize feedback to display it on the 'return_to' page.
    $HTML->_serializeFeedback();
    $return_to = trim($request->get('return_to'));
    $use_ssl = session_issecure() || $GLOBALS['sys_force_ssl'];
    if ($use_ssl) {
        $server_url = "https://" . $GLOBALS['sys_https_host'];
    } else {
        $server_url = "http://" . $GLOBALS['sys_default_domain'];
    }
开发者ID:nterray,项目名称:tuleap,代码行数:31,代码来源:redirect.php

示例15: site_header

<?php

// $Id$
$_SERVER['BASE_PAGE'] = 'releases/4_2_0_fr.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
site_header("Annonce de publication de PHP 4.2.0", array("lang" => "fr"));
?>

<h1>Annonce de publication de PHP 4.2.0</h1>

<p>[ <a href="/releases/4_2_1.php">English Version</a> ]</p>

<p>
 Apr&egrave;s avoir pass&eacute; avec succ&egrave;s le processus
 qualit&eacute;, PHP 4.2.0 est officiellement <a href="/downloads.php">publi&eacute;</a>!
</p>

<h2>Variables externes</h2>

<p>
 Le changement le plus important de PHP 4.2.0 concerne la gestion des
 variables. Les <strong>variables externes (issues de l'environnement d'ex&eacute;cution,
 des requ&ecirc;tes HTTP, des cookies ou du serveur web) ne sont plus enregistr&eacute;es
 dans l'environnement d'ex&eacute;cution global par d&eacute;faut.</strong>
 La m&eacute;thode recommand&eacute;e pour acc&eacute;der aux variables
 externes est d'utiliser les nouveaux tableaux globaux, introduits en
 PHP 4.1.0. Pour plus d'informations sur ces modifications:
</p>
<ul>
 <li><a href="/variables.predefined">PHP Manual : Predefined variables</a></li>
 <li><a href="/releases/4_1_0.php">Annonce de PHP 4.1.0</a></li>
开发者ID:learningendless,项目名称:web-php,代码行数:31,代码来源:4_2_0_fr.php


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