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


PHP displayPageHeader函数代码示例

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


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

示例1: sqspell_makePage

/**
 * This function is the GUI wrapper for the options page. SquirrelSpell
 * uses it for creating all Options pages.
 *
 * @param  string $title     The title of the page to display
 * @param  string $scriptsrc This is used to link a file.js into the
 *                    <script src="file.js"></script> format. This
 *                    allows to separate javascript from the rest of the
 *                    plugin and place it into the js/ directory.
 * @param  string $body      The body of the message to display.
 * @return            void
 */
function sqspell_makePage($title, $scriptsrc, $body)
{
    global $color, $SQSPELL_VERSION;
    if (!sqgetGlobalVar('MOD', $MOD, SQ_GET)) {
        $MOD = 'options_main';
    }
    displayPageHeader($color, 'None');
    echo "&nbsp;<br />\n";
    /**
     * Check if we need to link in a script.
     */
    if ($scriptsrc) {
        echo "<script type=\"text/javascript\" src=\"js/{$scriptsrc}\"></script>\n";
    }
    echo html_tag('table', '', 'center', '', 'width="95%" border="0" cellpadding="2" cellspacing="0"') . "\n" . html_tag('tr', "\n" . html_tag('td', '<strong>' . $title . '</strong>', 'center', $color[9])) . "\n" . html_tag('tr', "\n" . html_tag('td', '<hr />', 'left')) . "\n" . html_tag('tr', "\n" . html_tag('td', $body, 'left')) . "\n";
    /**
     * Generate a nice "Return to Options" link, unless this is the
     * starting page.
     */
    if ($MOD != "options_main") {
        echo html_tag('tr', "\n" . html_tag('td', '<hr />', 'left')) . "\n" . html_tag('tr', "\n" . html_tag('td', '<a href="sqspell_options.php">' . _("Back to &quot;SpellChecker Options&quot; page") . '</a>', 'center')) . "\n";
    }
    /**
     * Close the table and display the version.
     */
    echo html_tag('tr', "\n" . html_tag('td', '<hr />', 'left')) . "\n" . html_tag('tr', html_tag('td', 'SquirrelSpell ' . $SQSPELL_VERSION, 'center', $color[9])) . "\n</table>\n";
    echo '</body></html>';
}
开发者ID:jprice,项目名称:EHCP,代码行数:40,代码来源:sqspell_functions.php

示例2: displayLoginForm

function displayLoginForm($message = "")
{
    displayPageHeader();
    ?>
    <?php 
    if ($message) {
        echo '<p class="error">' . $message . '</p>';
    }
    ?>

    <form action="login.php" method="post">
      <div style="width: 30em;">
        <label for="username">Username</label>
        <input type="text" name="username" id="username" value="" />
        <label for="password">Password</label>
        <input type="password" name="password" id="password" value="" />
        <div style="clear: both;">
          <input type="submit" name="login" value="Login" />
        </div>
      </div>
    </form>
  </body>
</html>
<?php 
}
开发者ID:raynaldmo,项目名称:php-education,代码行数:25,代码来源:login.php

示例3: displayHeader

 /**
  * displayHeader 
  * 
  * @return void
  */
 function displayHeader()
 {
     $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Members'), 'pageId' => 'members', 'path' => URL_PREFIX, 'displayname' => $this->fcmsUser->displayName, 'version' => getCurrentVersion(), 'year' => date('Y'));
     displayPageHeader($params);
     $order = isset($_GET['order']) ? $_GET['order'] : 'alphabetical';
     $alpha = $age = $part = $act = $join = '';
     if ($order == 'alphabetical') {
         $alpha = 'class="selected"';
     } elseif ($order == 'age') {
         $age = 'class="selected"';
     } elseif ($order == 'participation') {
         $part = 'class="selected"';
     } elseif ($order == 'activity') {
         $act = 'class="selected"';
     } elseif ($order == 'joined') {
         $join = 'class="selected"';
     }
     echo '
         <div id="leftcolumn">
             <h3>' . T_('Views') . '</h3>
             <ul>
                 <li ' . $alpha . '><a href="?order=alphabetical">' . T_('Alphabetical') . '</a></li>
                 <li ' . $age . '><a href="?order=age">' . T_('Age') . '</a></li>
                 <li ' . $part . '><a href="?order=participation">' . T_('Participation') . '</a></li>
                 <li ' . $act . '><a href="?order=activity">' . T_('Last Seen') . '</a></li>
                 <li ' . $join . '><a href="?order=joined">' . T_('Joined') . '</a></li>
             </ul>
         </div>
         <div id="maincolumn">';
 }
开发者ID:lmcro,项目名称:fcms,代码行数:35,代码来源:members.php

示例4: mime_structure

/**
 * Get the MIME structure
 *
 * This function gets the structure of a message and stores it in the "message" class.
 * It will return this object for use with all relevant header information and
 * fully parsed into the standard "message" object format.
 */
function mime_structure($bodystructure, $flags = array())
{
    /* Isolate the body structure and remove beginning and end parenthesis. */
    $read = trim(substr($bodystructure, strpos(strtolower($bodystructure), 'bodystructure') + 13));
    $read = trim(substr($read, 0, -1));
    $i = 0;
    $msg = Message::parseStructure($read, $i);
    if (!is_object($msg)) {
        global $color, $mailbox;
        displayPageHeader($color, $mailbox);
        $errormessage = _("SquirrelMail could not decode the bodystructure of the message");
        $errormessage .= '<br />' . _("The bodystructure provided by your IMAP server:") . '<br /><br />';
        $errormessage .= '<pre>' . sm_encode_html_special_chars($read) . '</pre>';
        plain_error_message($errormessage);
        echo '</body></html>';
        exit;
    }
    if (count($flags)) {
        foreach ($flags as $flag) {
            //FIXME: please document why it is we have to check the first char of the flag but we then go ahead and do a full string comparison anyway.  Is this a speed enhancement?  If not, let's keep it simple and just compare the full string and forget the switch block.
            $char = strtoupper($flag[1]);
            switch ($char) {
                case 'S':
                    if (strtolower($flag) == '\\seen') {
                        $msg->is_seen = true;
                    }
                    break;
                case 'A':
                    if (strtolower($flag) == '\\answered') {
                        $msg->is_answered = true;
                    }
                    break;
                case 'D':
                    if (strtolower($flag) == '\\deleted') {
                        $msg->is_deleted = true;
                    }
                    break;
                case 'F':
                    if (strtolower($flag) == '\\flagged') {
                        $msg->is_flagged = true;
                    } else {
                        if (strtolower($flag) == '$forwarded') {
                            $msg->is_forwarded = true;
                        }
                    }
                    break;
                case 'M':
                    if (strtolower($flag) == '$mdnsent') {
                        $msg->is_mdnsent = true;
                    }
                    break;
                default:
                    break;
            }
        }
    }
    //    listEntities($msg);
    return $msg;
}
开发者ID:teammember8,项目名称:roundcube,代码行数:66,代码来源:mime.php

示例5: displayThanks

function displayThanks()
{
    displayPageHeader("Thanks for logging in!");
    ?>
    <p>Thank you for logging in. Please proceed to the <a href="send_index.php">members' area</a>.</p>
<?php 
    displayPageFooter();
}
开发者ID:hoiwanjohnlouis,项目名称:eclipsePrototyping,代码行数:8,代码来源:login.php

示例6: mime_structure

/**
 * Get the MIME structure
 *
 * This function gets the structure of a message and stores it in the "message" class.
 * It will return this object for use with all relevant header information and
 * fully parsed into the standard "message" object format.
 */
function mime_structure($bodystructure, $flags = array())
{
    /* Isolate the body structure and remove beginning and end parenthesis. */
    $read = trim(substr($bodystructure, strpos(strtolower($bodystructure), 'bodystructure') + 13));
    $read = trim(substr($read, 0, -1));
    $i = 0;
    $msg = Message::parseStructure($read, $i);
    if (!is_object($msg)) {
        include_once SM_PATH . 'functions/display_messages.php';
        global $color, $mailbox;
        /* removed urldecode because $_GET is auto urldecoded ??? */
        displayPageHeader($color, $mailbox);
        echo "<body text=\"{$color['8']}\" bgcolor=\"{$color['4']}\" link=\"{$color['7']}\" vlink=\"{$color['7']}\" alink=\"{$color['7']}\">\n\n" . '<center>';
        $errormessage = _("SquirrelMail could not decode the bodystructure of the message");
        $errormessage .= '<br />' . _("The bodystructure provided by your IMAP server:") . '<br /><br />';
        $errormessage .= '<table><tr><td>' . htmlspecialchars($read) . '</td></tr></table>';
        plain_error_message($errormessage, $color);
        echo '</body></html>';
        exit;
    }
    if (count($flags)) {
        foreach ($flags as $flag) {
            $char = strtoupper($flag[1]);
            switch ($char) {
                case 'S':
                    if (strtolower($flag) == '\\seen') {
                        $msg->is_seen = true;
                    }
                    break;
                case 'A':
                    if (strtolower($flag) == '\\answered') {
                        $msg->is_answered = true;
                    }
                    break;
                case 'D':
                    if (strtolower($flag) == '\\deleted') {
                        $msg->is_deleted = true;
                    }
                    break;
                case 'F':
                    if (strtolower($flag) == '\\flagged') {
                        $msg->is_flagged = true;
                    }
                    break;
                case 'M':
                    if (strtolower($flag) == '$mdnsent') {
                        $msg->is_mdnsent = true;
                    }
                    break;
                default:
                    break;
            }
        }
    }
    //    listEntities($msg);
    return $msg;
}
开发者ID:jin255ff,项目名称:company_website,代码行数:64,代码来源:mime.php

示例7: displayHeader

 /**
  * displayHeader 
  * 
  * Displays the header of the page, including the leftcolumn navigation.
  * 
  * @return void
  */
 function displayHeader()
 {
     $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => cleanOutput(getSiteName()), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Polls'), 'pageId' => 'poll', 'path' => URL_PREFIX, 'displayname' => $this->fcmsUser->displayName, 'version' => getCurrentVersion(), 'year' => date('Y'));
     displayPageHeader($params);
     $navParams = array('navigation' => array(array('url' => 'polls.php', 'textLink' => T_('Latest')), array('url' => 'polls.php?action=pastpolls', 'textLink' => T_('Past Polls'))));
     if ($this->fcmsUser->access < 2) {
         $navParams['actions'] = array(array('url' => 'admin/polls.php', 'textLink' => T_('Administrate')));
     }
     loadTemplate('global', 'page-navigation', $navParams);
 }
开发者ID:lmcro,项目名称:fcms,代码行数:17,代码来源:polls.php

示例8: view_header

function view_header($header, $mailbox, $color)
{
    sqgetGlobalVar('QUERY_STRING', $queryStr, SQ_SERVER);
    $ret_addr = SM_PATH . 'src/read_body.php?' . $queryStr;
    displayPageHeader($color, $mailbox);
    echo '<br />' . '<table width="100%" cellpadding="2" cellspacing="0" border="0" ' . 'align="center">' . "\n" . '<tr><td bgcolor="' . $color[9] . '" width="100%" align="center"><b>' . _("Viewing Full Header") . '</b> - ' . '<a href="';
    echo_template_var($ret_addr);
    echo '">' . _("View message") . "</a></b></td></tr></table>\n";
    echo_template_var($header, array('<table width="99%" cellpadding="2" cellspacing="0" border="0" ' . "align=center>\n" . '<tr><td>', '<nobr><tt><b>', '</b>', '</tt></nobr>', '</td></tr></table>' . "\n"));
    echo '</body></html>';
}
开发者ID:jin255ff,项目名称:company_website,代码行数:11,代码来源:view_header.php

示例9: doMyHeader

/** Moved to a separate function to allow for setting a cookie **/
function doMyHeader()
{
    global $color;
    displayPageHeader($color, "None");
    ?>
 <br>
   <table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<?php 
    echo $color[0];
    ?>
">
      <center><b><?php 
    echo _("Changing Password");
    ?>
</b></center>
   </td></tr></table>
<?php 
}
开发者ID:teammember8,项目名称:roundcube,代码行数:18,代码来源:vchpass.php

示例10: displayHeader

    /**
     * displayHeader 
     * 
     * @return void
     */
    function displayHeader()
    {
        $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Help'), 'pageId' => 'help', 'path' => URL_PREFIX, 'displayname' => getUserDisplayName($this->fcmsUser->id), 'version' => getCurrentVersion());
        displayPageHeader($params);
        echo '
            <div id="leftcolumn">
                <h3>' . T_('Topics') . '</h3>
                <ul class="menu">
                    <li><a href="?topic=photo">' . T_('Photo Gallery') . '</a></li>
                    <li><a href="?topic=video">' . T_('Video Gallery') . '</a></li>
                    <li><a href="?topic=settings">' . T_('Personal Settings') . '</a></li>
                    <li><a href="?topic=address">' . T_('Address Book') . '</a></li>
                    <li><a href="?topic=admin">' . T_('Administration') . '</a></li>
                </ul>
            </div>

            <div id="maincolumn">';
    }
开发者ID:lmcro,项目名称:fcms,代码行数:23,代码来源:help.php

示例11: displayHeader

    /**
     * displayHeader 
     * 
     * @return void
     */
    function displayHeader($options = null)
    {
        $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Private Messages'), 'pageId' => 'privatemsg', 'path' => URL_PREFIX, 'displayname' => $this->fcmsUser->displayName, 'version' => getCurrentVersion());
        displayPageHeader($params, $options);
        $link = T_('Inbox');
        if (isset($_SESSION['private_messages']) && $_SESSION['private_messages'] > 0) {
            $link = sprintf(T_('Inbox (%d)'), $_SESSION['private_messages']);
        }
        echo '
            <div id="actions_menu">
                <ul><li><a href="?compose=new">' . T_('New Message') . '</a></li></ul>
            </div>

            <div id="leftcolumn">
                <ul class="menu">
                    <li><a href="privatemsg.php">' . $link . '</a></li>
                    <li><a href="privatemsg.php?folder=sent">' . T_('Sent') . '</a></li>
                </ul>
            </div>

            <div id="maincolumn">';
    }
开发者ID:lmcro,项目名称:fcms,代码行数:27,代码来源:privatemsg.php

示例12: displayEditForm

function displayEditForm($filename = "")
{
    if (!$filename) {
        $filename = basename($_GET["filename"]);
    }
    if (!$filename) {
        die("Invalid filename");
    }
    $filepath = PATH_TO_FILES . "/{$filename}";
    if (!file_exists($filepath)) {
        die("File not found");
    }
    displayPageHeader();
    ?>

    <h2>Editing <?php 
    echo $filename;
    ?>
</h2>
    <form action="text_editor.php" method="post">
      <div style="width: 40em;">
        <input type="hidden" name="filename" value="<?php 
    echo htmlspecialchars($filename);
    ?>
" />
        <textarea name="fileContents" id="fileContents" rows="20" cols="80" style="width: 100%;"><?php 
    echo htmlspecialchars(file_get_contents($filepath));
    ?>
</textarea>
        <div style="clear: both;">
          <input type="submit" name="saveFile" value="Save File" />
          <input type="submit" name="cancel" value="Cancel" style="margin-right: 20px;" />
        </div>
      </div>
    </form>
  </body>
</html>
<?php 
}
开发者ID:raynaldmo,项目名称:php-education,代码行数:39,代码来源:text_editor.php

示例13: displayPageHeader

<?php

/**
 * SquirrelMail Test Plugin
 * @copyright 2006-2016 The SquirrelMail Project Team
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @version $Id$
 * @package plugins
 * @subpackage test
 */
include_once '../../include/init.php';
global $oTemplate, $color;
displayPageHeader($color, '');
$oTemplate->display('plugins/test/test_menu.tpl');
$oTemplate->display('footer.tpl');
开发者ID:teammember8,项目名称:roundcube,代码行数:15,代码来源:test.php

示例14: displayThanks

function displayThanks()
{
    displayPageHeader("Thanks for registering!");
    ?>
    <p>Thank you, you are now a registered member of the book club.</p>
    <p>Register another user <a href="register.php">members' area</a>.</p>
    <p>Proceed to the <a href="send_index.php">members' area</a>.</p>

<?php 
    displayPageFooter();
}
开发者ID:hoiwanjohnlouis,项目名称:eclipsePrototyping,代码行数:11,代码来源:register.php

示例15: displayThanks

function displayThanks()
{
    displayPageHeader("Thanks for registering!");
    ?>
    <p>Thank you, you are now a registered member of the book club.</p>
<?php 
    displayPageFooter();
}
开发者ID:raynaldmo,项目名称:php-education,代码行数:8,代码来源:register.php


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