Html::popHeader PHP 메소드

popHeader() 정적인 공개 메소드

Print a nice HTML head for modal window (nothing to display)
static public popHeader ( $title, $url = '', $iframed = false )
$title title of the page
$url not used anymore (default '')
$iframed indicate if page loaded in iframe - css target (default false)
    static function popHeader($title, $url = '', $iframed = false)
    {
        global $CFG_GLPI, $PLUGIN_HOOKS, $HEADER_LOADED;
        // Print a nice HTML-head for every page
        if ($HEADER_LOADED) {
            return;
        }
        $HEADER_LOADED = true;
        self::includeHeader($title);
        // Body
        echo "<body class='" . ($iframed ? "iframed" : "") . "'>";
        self::displayMessageAfterRedirect();
    }

Usage Example

  ------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
Session::checkLoginUser();
if (isset($_GET["popup"])) {
    $_SESSION["glpipopup"]["name"] = $_GET["popup"];
}
if (isset($_SESSION["glpipopup"]["name"])) {
    switch ($_SESSION["glpipopup"]["name"]) {
        case "test_rule":
            Html::popHeader(__('Test'), $_SERVER['PHP_SELF']);
            include "../../../front/rule.test.php";
            break;
        case "test_all_rules":
            Html::popHeader(__('Test rules engine'), $_SERVER['PHP_SELF']);
            include "../../../front/rulesengine.test.php";
            break;
        case "show_cache":
            Html::popHeader(__('Cache informations', 'fusioninventory'), $_SERVER['PHP_SELF']);
            include "../../../front/rule.cache.php";
            break;
        case "pluginfusioninventory_networkport_display_options":
            Html::popHeader(__('Network ports display options', 'fusioninventory'), $_SERVER['PHP_SELF']);
            include "networkport.display.php";
            break;
    }
    echo "<div class='center'><br><a href='javascript:window.close()'>" . __('Back') . "</a>";
    echo "</div>";
    Html::popFooter();
}
All Usage Examples Of Html::popHeader
Html