css() static public method

Creates a link element for CSS stylesheets.
static public css ( $url, $options = [] ) : string
$url String of javascript file to include
$options Array of HTML attributes.
return string CSS link tag
コード例 #1
1
ファイル: install.php プロジェクト: pvasener/glpi
function header_html($etape)
{
    // Send UTF8 Headers
    header("Content-Type: text/html; charset=UTF-8");
    echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'\n          'http://www.w3.org/TR/html4/loose.dtd'>";
    echo "<html>";
    echo "<head>";
    echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
    echo "<meta http-equiv='Content-Script-Type' content='text/javascript'> ";
    echo "<meta http-equiv='Content-Style-Type' content='text/css'> ";
    echo "<meta http-equiv='Content-Language' content='fr'> ";
    echo "<meta name='generator' content=''>";
    echo "<meta name='DC.Language' content='fr' scheme='RFC1766'>";
    echo "<title>Setup GLPI</title>";
    // LIBS
    echo Html::script("../lib/jquery/js/jquery-1.10.2.min.js");
    echo Html::script("../lib/jqueryplugins/select2/select2.min.js");
    echo Html::css("../lib/jqueryplugins/select2/select2.css");
    // CSS
    echo "<link rel='stylesheet' href='../css/style_install.css' type='text/css' media='screen'>";
    echo "</head>";
    echo "<body>";
    echo "<div id='principal'>";
    echo "<div id='bloc'>";
    echo "<div id='logo_bloc'></div>";
    echo "<h2>GLPI SETUP</h2>";
    echo "<br><h3>" . $etape . "</h3>";
}
コード例 #2
0
ファイル: html.class.php プロジェクト: OlivierLM/glpi
 /**
  * Include common HTML headers
  *
  * @param $title title used for the page (default '')
  *
  * @return nothing
  **/
 static function includeHeader($title = '')
 {
     global $CFG_GLPI, $PLUGIN_HOOKS;
     // Send UTF8 Headers
     header("Content-Type: text/html; charset=UTF-8");
     // Allow only frame from same server to prevent click-jacking
     header('x-frame-options:SAMEORIGIN');
     // Send extra expires header
     self::header_nocache();
     // Start the page
     echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n             \"http://www.w3.org/TR/html4/loose.dtd\">";
     echo "\n<html><head><title>GLPI - " . $title . "</title>";
     echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
     // Send extra expires header
     echo "<meta http-equiv='Expires' content='Fri, Jun 12 1981 08:20:00 GMT'>\n";
     echo "<meta http-equiv='Pragma' content='no-cache'>\n";
     echo "<meta http-equiv='Cache-Control' content='no-cache'>\n";
     echo "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n";
     // auto desktop / mobile viewport
     echo "<meta name='viewport' content='width=device-width, initial-scale=1'>";
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jquery/css/smoothness/jquery-ui-1.10.4.custom.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/css/jstree/style.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/rateit/rateit.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/select2/select2.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/qtip2/jquery.qtip.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jcrop/jquery.Jcrop.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/spectrum-colorpicker/spectrum.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-gantt/css/style.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/css/jquery-glpi.css");
     //  CSS link
     echo Html::css($CFG_GLPI["root_doc"] . "/css/styles.css");
     // CSS theme link
     if (isset($_SESSION["glpipalette"])) {
         echo Html::css($CFG_GLPI["root_doc"] . "/css/palettes/" . $_SESSION["glpipalette"] . ".css");
     }
     // surcharge CSS hack for IE
     echo "<!--[if lte IE 6]>";
     echo Html::css($CFG_GLPI["root_doc"] . "/css/styles_ie.css");
     echo "<![endif]-->";
     echo Html::css($CFG_GLPI["root_doc"] . "/css/print.css", array('media' => 'print'));
     echo "<link rel='shortcut icon' type='images/x-icon' href='" . $CFG_GLPI["root_doc"] . "/pics/favicon.ico' >\n";
     // Add specific css for plugins
     if (isset($PLUGIN_HOOKS['add_css']) && count($PLUGIN_HOOKS['add_css'])) {
         foreach ($PLUGIN_HOOKS["add_css"] as $plugin => $files) {
             if (is_array($files)) {
                 foreach ($files as $file) {
                     if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$file}")) {
                         echo Html::css($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$file}");
                     }
                 }
             } else {
                 if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$files}")) {
                     echo Html::css($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$files}");
                 }
             }
         }
     }
     // AJAX library
     if ($_SESSION['glpi_use_mode'] == Session::DEBUG_MODE) {
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-1.10.2.js");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-ui-1.10.4.custom.js");
     } else {
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-1.10.2.min.js");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-ui-1.10.4.custom.min.js");
     }
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/tiny_mce/tiny_mce.js");
     // PLugins jquery
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/backtotop/BackToTop.min.jquery.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/select2/select2.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/qtip2/jquery.qtip.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jstree/jquery.jstree.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/rateit/jquery.rateit.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-file-upload/js/jquery.iframe-transport.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-file-upload/js/jquery.fileupload.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jcrop/jquery.Jcrop.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/imagepaste/jquery.image_paste.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/spectrum-colorpicker/spectrum-min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-gantt/js/jquery.fn.gantt.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/autogrow/jquery.autogrow-textarea.js");
     // layout
     if (CommonGLPI::isLayoutWithMain() && !CommonGLPI::isLayoutExcludedPage()) {
         echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-scrollable-tabs/css/jquery.scrollabletab.css");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-scrollable-tabs/js/jquery.mousewheel.js");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-scrollable-tabs/js/jquery.scrollabletab.js");
     }
     if (isset($_SESSION['glpilanguage'])) {
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/i18n/jquery.ui.datepicker-" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js");
         $filename = "/lib/jqueryplugins/jquery-ui-timepicker-addon/i18n/jquery-ui-timepicker-" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js";
         if (file_exists(GLPI_ROOT . $filename)) {
             echo Html::script($CFG_GLPI["root_doc"] . $filename);
         }
         $filename = "/lib/jqueryplugins/select2/select2_locale_" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js";
         if (file_exists(GLPI_ROOT . $filename)) {
             echo Html::script($CFG_GLPI["root_doc"] . $filename);
         }
     }
     // Some Javascript-Functions which we may need later
     echo Html::script($CFG_GLPI["root_doc"] . '/script.js');
     // Add specific javascript for plugins
     if (isset($PLUGIN_HOOKS['add_javascript']) && count($PLUGIN_HOOKS['add_javascript'])) {
         foreach ($PLUGIN_HOOKS["add_javascript"] as $plugin => $files) {
             if (is_array($files)) {
                 foreach ($files as $file) {
                     if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$file}")) {
                         echo Html::script($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$file}");
                     }
                 }
             } else {
                 if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$files}")) {
                     echo Html::script($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$files}");
                 }
             }
         }
     }
     // End of Head
     echo "</head>\n";
 }
コード例 #3
0
ファイル: index.php プロジェクト: remicollet/glpi
     $_GET["noAUTO"] = $_GET["noCAS"];
 }
 Auth::checkAlternateAuthSystems(true, isset($_GET["redirect"]) ? $_GET["redirect"] : "");
 // Send UTF8 Headers
 header("Content-Type: text/html; charset=UTF-8");
 // Start the page
 echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ' . '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n";
 echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">';
 echo '<head><title>' . __('GLPI - Authentication') . '</title>' . "\n";
 echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>' . "\n";
 echo '<meta http-equiv="Content-Script-Type" content="text/javascript"/>' . "\n";
 echo '<link rel="shortcut icon" type="images/x-icon" href="' . $CFG_GLPI["root_doc"] . '/pics/favicon.ico" />';
 // Appel CSS
 echo '<link rel="stylesheet" href="' . $CFG_GLPI["root_doc"] . '/css/styles.css" type="text/css" ' . 'media="screen" />';
 // CSS theme link
 echo Html::css($CFG_GLPI["root_doc"] . "/css/palettes/" . $CFG_GLPI["palette"] . ".css");
 // surcharge CSS hack for IE
 echo "<!--[if lte IE 6]>";
 echo "<link rel='stylesheet' href='" . $CFG_GLPI["root_doc"] . "/css/styles_ie.css' type='text/css' " . "media='screen' >\n";
 echo "<![endif]-->";
 //    echo "<script type='text/javascript'><!--document.getElementById('var_login_name').focus();-->".
 //          "</script>";
 echo "</head>";
 echo "<body>";
 echo "<div id='firstboxlogin'>";
 echo "<div id='logo_login'></div>";
 echo "<div id='text-login'>";
 echo nl2br(Toolbox::unclean_html_cross_side_scripting_deep($CFG_GLPI['text_login']));
 echo "</div>";
 echo "<div id='boxlogin'>";
 echo "<form action='" . $CFG_GLPI["root_doc"] . "/front/login.php' method='post'>";
コード例 #4
0
ファイル: html.class.php プロジェクト: glpi-project/glpi
 /**
  * Include common HTML headers
  *
  * @param $title title used for the page (default '')
  *
  * @return nothing
  **/
 static function includeHeader($title = '')
 {
     global $CFG_GLPI, $PLUGIN_HOOKS;
     // complete title with id if exist
     if (isset($_GET['id']) && $_GET['id']) {
         $title = sprintf(__('%1$s - %2$s'), $title, $_GET['id']);
     }
     // Send UTF8 Headers
     header("Content-Type: text/html; charset=UTF-8");
     // Allow only frame from same server to prevent click-jacking
     header('x-frame-options:SAMEORIGIN');
     // Send extra expires header
     self::header_nocache();
     // Start the page
     echo "<!DOCTYPE html>\n";
     echo "<html lang=\"{$CFG_GLPI["languages"][$_SESSION['glpilanguage']][3]}\">";
     echo "<head><title>GLPI - " . $title . "</title>";
     echo "<meta charset=\"utf-8\">";
     //prevent IE to turn into compatible mode...
     echo "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n";
     // auto desktop / mobile viewport
     echo "<meta name='viewport' content='width=device-width, initial-scale=1'>";
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jquery/css/smoothness/jquery-ui-1.10.4.custom.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/css/jstree/style.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/rateit/rateit.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/select2/select2.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/qtip2/jquery.qtip.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jcrop/jquery.Jcrop.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/spectrum-colorpicker/spectrum.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-gantt/css/style.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/fullcalendar/fullcalendar.min.css", array('media' => ''));
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/fullcalendar/fullcalendar.print.min.css", array('media' => 'print'));
     echo Html::css($CFG_GLPI["root_doc"] . "/css/jquery-glpi.css");
     if (CommonGLPI::isLayoutWithMain() && !CommonGLPI::isLayoutExcludedPage()) {
         echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-scrollable-tabs/css/jquery.scrollabletab.min.css");
     }
     //  CSS link
     echo Html::css($CFG_GLPI["root_doc"] . "/css/styles.css");
     // High constrast CSS link
     if (isset($_SESSION['glpihighcontrast_css']) && $_SESSION['glpihighcontrast_css']) {
         echo Html::css($CFG_GLPI["root_doc"] . "/css/highcontrast.css");
     }
     // CSS theme link
     if (isset($_SESSION["glpipalette"])) {
         echo Html::css($CFG_GLPI["root_doc"] . "/css/palettes/" . $_SESSION["glpipalette"] . ".css");
     }
     // surcharge CSS hack for IE
     echo "<!--[if lte IE 6]>";
     echo Html::css($CFG_GLPI["root_doc"] . "/css/styles_ie.css");
     echo "<![endif]-->";
     echo Html::css($CFG_GLPI["root_doc"] . "/css/print.css", array('media' => 'print'));
     echo "<link rel='shortcut icon' type='images/x-icon' href='" . $CFG_GLPI["root_doc"] . "/pics/favicon.ico' >\n";
     // Add specific css for plugins
     if (isset($PLUGIN_HOOKS['add_css']) && count($PLUGIN_HOOKS['add_css'])) {
         foreach ($PLUGIN_HOOKS["add_css"] as $plugin => $files) {
             if (is_array($files)) {
                 foreach ($files as $file) {
                     if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$file}")) {
                         echo Html::css($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$file}");
                     }
                 }
             } else {
                 if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$files}")) {
                     echo Html::css($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$files}");
                 }
             }
         }
     }
     // AJAX library
     if (isset($_SESSION['glpi_use_mode']) && $_SESSION['glpi_use_mode'] == Session::DEBUG_MODE) {
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-1.10.2.js");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-ui-1.10.4.custom.js");
     } else {
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-1.10.2.min.js");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-ui-1.10.4.custom.min.js");
     }
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/tiny_mce/tinymce.min.js");
     // PLugins jquery
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/backtotop/BackToTop.min.jquery.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/select2/select2.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/qtip2/jquery.qtip.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jstree/jquery.jstree.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/rateit/jquery.rateit.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-file-upload/js/jquery.iframe-transport.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-file-upload/js/jquery.fileupload.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jcrop/jquery.Jcrop.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/imagepaste/jquery.image_paste.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/spectrum-colorpicker/spectrum-min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-gantt/js/jquery.fn.gantt.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/autogrow/jquery.autogrow-textarea.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/fullcalendar/lib/moment.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/fullcalendar/fullcalendar.min.js");
     // layout
     if (CommonGLPI::isLayoutWithMain() && !CommonGLPI::isLayoutExcludedPage()) {
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-scrollable-tabs/js/jquery.mousewheel.min.js");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-scrollable-tabs/js/jquery.scrollabletab.min.js");
     }
     //locales for js library
     if (isset($_SESSION['glpilanguage'])) {
         // jquery ui
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/i18n/jquery.ui.datepicker-" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js");
         $filename = "/lib/jqueryplugins/jquery-ui-timepicker-addon/i18n/jquery-ui-timepicker-" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js";
         if (file_exists(GLPI_ROOT . $filename)) {
             echo Html::script($CFG_GLPI["root_doc"] . $filename);
         }
         // select2
         $filename = "/lib/jqueryplugins/select2/select2_locale_" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js";
         if (file_exists(GLPI_ROOT . $filename)) {
             echo Html::script($CFG_GLPI["root_doc"] . $filename);
         }
         //fullcalendar
         $filename = "/lib/jqueryplugins/fullcalendar/locale/" . strtolower($CFG_GLPI["languages"][$_SESSION['glpilanguage']][2]) . ".js";
         if (file_exists(GLPI_ROOT . $filename)) {
             echo Html::script($CFG_GLPI["root_doc"] . $filename);
         }
     }
     // Some Javascript-Functions which we may need later
     echo Html::script($CFG_GLPI["root_doc"] . '/script.js');
     self::redefineAlert();
     self::redefineConfirm();
     // add Ajax display message after redirect
     Html::displayAjaxMessageAfterRedirect();
     // Add specific javascript for plugins
     if (isset($PLUGIN_HOOKS['add_javascript']) && count($PLUGIN_HOOKS['add_javascript'])) {
         foreach ($PLUGIN_HOOKS["add_javascript"] as $plugin => $files) {
             if (is_array($files)) {
                 foreach ($files as $file) {
                     if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$file}")) {
                         echo Html::script($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$file}");
                     }
                 }
             } else {
                 if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$files}")) {
                     echo Html::script($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$files}");
                 }
             }
         }
     }
     // End of Head
     echo "</head>\n";
 }
コード例 #5
0
ファイル: html.class.php プロジェクト: euqip/glpi-smartcities
    /**
     * Include common HTML headers
     *
     * @param $title title used for the page (default '')
     *
     * @return nothing
     **/
    static function includeHeader($title = '')
    {
        global $CFG_GLPI, $PLUGIN_HOOKS;
        // Send UTF8 Headers
        header("Content-Type: text/html; charset=UTF-8");
        // Allow only frame from same server to prevent click-jacking
        header('x-frame-options:SAMEORIGIN');
        // Send extra expires header
        self::header_nocache();
        // Start the page
        //echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\"http://www.w3.org/TR/html4/loose.dtd\">";
        echo "<!DOCTYPE HTML>";
        echo "\n<html><head><title>GLPI - " . $title . "</title>";
        echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
        // Send extra expires header
        echo "<meta http-equiv='Expires' content='Fri, Jun 12 1981 08:20:00 GMT'>\n";
        echo "<meta http-equiv='Pragma' content='no-cache'>\n";
        echo "<meta http-equiv='Cache-Control' content='no-cache'>\n";
        echo "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n";
        echo "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n";
        //  CSS link
        echo Html::css($CFG_GLPI["root_doc"] . "/" . GLPI_THEME_PATH . "css/bootstrap.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/" . GLPI_THEME_PATH . "css/font-awesome.css");
        // surcharge CSS hack for IE
        echo "<!--[if lte IE 6]>";
        echo Html::css($CFG_GLPI["root_doc"] . "/" . GLPI_THEME_PATH . GLPI_THEME_NAME . "/css/styles_ie.css");
        echo "<![endif]-->";
        echo Html::css($CFG_GLPI["root_doc"] . "/" . GLPI_THEME_PATH . "css/print.css", array('media' => 'print'));
        echo "<link rel='shortcut icon' type='images/x-icon' href='" . $CFG_GLPI["root_doc"] . "/pics/favicon.ico' >\n";
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jquery/css/smoothness/jquery-ui-1.10.4.custom.min.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/" . GLPI_THEME_PATH . "css/jstree/style.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/rateit/rateit.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/select2/select2.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/qtip2/jquery.qtip.min.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jcrop/jquery.Jcrop.min.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/spectrum-colorpicker/spectrum.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-gantt/css/style.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/css/jquery-glpi.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/css/inputs.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/" . GLPI_THEME_PATH . GLPI_THEME_NAME . "/css/styles.css");
        // Add specific css for plugins
        if (isset($PLUGIN_HOOKS['add_css']) && count($PLUGIN_HOOKS['add_css'])) {
            foreach ($PLUGIN_HOOKS["add_css"] as $plugin => $files) {
                if (is_array($files)) {
                    foreach ($files as $file) {
                        if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$file}")) {
                            echo Html::css($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$file}");
                        }
                    }
                } else {
                    if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$files}")) {
                        echo Html::css($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$files}");
                    }
                }
            }
        }
        // AJAX library
        if ($_SESSION['glpi_use_mode'] == Session::DEBUG_MODE) {
            echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-1.10.2.js");
            echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-ui-1.10.4.custom.js");
        } else {
            echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-1.10.2.min.js");
            echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-ui-1.10.4.custom.min.js");
        }
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/tiny_mce/tiny_mce.js");
        // PLugins jquery
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/backtotop/BackToTop.min.jquery.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/select2/select2.min.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/qtip2/jquery.qtip.min.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jstree/jquery.jstree.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/rateit/jquery.rateit.min.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-file-upload/js/jquery.iframe-transport.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-file-upload/js/jquery.fileupload.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jcrop/jquery.Jcrop.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/imagepaste/jquery.image_paste.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/spectrum-colorpicker/spectrum.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-gantt/js/jquery.fn.gantt.min.js");
        // Stevenes Donato
        echo Html::script($CFG_GLPI["root_doc"] . "/css/js/bootstrap.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/css/js/custom.js");
        if (isset($_SESSION['glpilanguage'])) {
            echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/i18n/jquery.ui.datepicker-" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js");
            $filename = "/lib/jqueryplugins/jquery-ui-timepicker-addon/i18n/jquery-ui-timepicker-" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js";
            if (file_exists(GLPI_ROOT . $filename)) {
                echo Html::script($CFG_GLPI["root_doc"] . $filename);
            }
            $filename = "/lib/jqueryplugins/select2/select2_locale_" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js";
            if (file_exists(GLPI_ROOT . $filename)) {
                echo Html::script($CFG_GLPI["root_doc"] . $filename);
            }
        }
        // Some Javascript-Functions which we may need later
        echo Html::script($CFG_GLPI["root_doc"] . '/script.js');
        // Add specific javascript for plugins
        if (isset($PLUGIN_HOOKS['add_javascript']) && count($PLUGIN_HOOKS['add_javascript'])) {
            foreach ($PLUGIN_HOOKS["add_javascript"] as $plugin => $files) {
                if (is_array($files)) {
                    foreach ($files as $file) {
                        if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$file}")) {
                            echo Html::script($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$file}");
                        }
                    }
                } else {
                    if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$files}")) {
                        echo Html::script($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$files}");
                    }
                }
            }
        }
        // End of Head
        // Stevenes Donato - fixed top menu
        echo "\n<script>\n\t\$(function(){\n\t\tvar nav = \$('#menuHeader');\n\t\t\$(window).scroll(function () {\n\t\t\tif (\$(this).scrollTop() > 50) {\n\t\t\t\tnav.addClass('menu-fixo');\n\t\t\t} else {\n\t\t\t\tnav.removeClass('menu-fixo');\n\t\t\t}\n\t\t});\n\t});\n\t</script>\n";
        echo '
	<style>
		.qtip-content .qtip .qtip-bootstrap  {
			color: #555 !important;
		}
	</style>
';
        echo "</head>\n";
    }
コード例 #6
0
ファイル: api.class.php プロジェクト: glpi-project/glpi
 /**
  * Display the API Documentation in Html (parsed from markdown)
  *
  * @param $file      string    relative path of documentation file
  **/
 public function inlineDocumentation($file)
 {
     global $CFG_GLPI;
     self::header(true, __("API Documentation"));
     echo Html::css($CFG_GLPI['root_doc'] . "/lib/prism/prism.css");
     echo Html::script($CFG_GLPI['root_doc'] . "/lib/prism/prism.js");
     echo "<div class='documentation'>";
     $documentation = file_get_contents(GLPI_ROOT . '/' . $file);
     $md = new Michelf\MarkdownExtra();
     $md->code_class_prefix = "language-";
     $md->header_id_func = function ($headerName) {
         $headerName = str_replace(array('(', ')'), '', $headerName);
         return rawurlencode(strtolower(strtr($headerName, [' ' => '-'])));
     };
     echo $md->transform($documentation);
     echo "</div>";
     Html::nullFooter();
 }
コード例 #7
0
function css($files)
{
    return Html::css($files);
}
コード例 #8
0
ファイル: style.part.php プロジェクト: ratz/icon-harvester
<?php

echo Html::css('screen', array('screen', 'projection'));
echo Html::css('print', 'print');
?>
<!--[if IE]>
	<?php 
echo Html::css('ie', array('screen', 'projection'));
?>
<![endif]-->

<style type="text/css">
	.error,.notice,.success{ margin: 0 0 1em 0; padding: 0.8em; border: 2px solid #000; }
	.error{ background: #FBE3E4; border-color: #FBC2C4; }
		.error, .error a{ color: #8A1F11; }
	.notice{ background: #FFF6BF; border-color: #FFD324; }
		.notice, .notice a{ color: #514721; }
	.success{ background: #E6EFC2; border-color: #C6D880; }
		.success, .success a{ color: #264409; }
	body { font-size: .8em; }
	p { font-size: 1.2em; }
	form{ margin: 0; padding: 0; }
	fieldset{ margin: 0 0 1em 0; padding: 1em; border: 2px solid #a9b5c7; background: #f0f6fe; }
	legend{ margin: 0; padding: 0 0.5em; font-size: 1.5em; font-weight: bold; color: #222; }
	label{ font-weight: bold; color: #222; }

	input.text,textarea{ width: 300px; padding: 3px; font-size: 14px; font-family: arial, verdana, sans-serif; color: #333; }
	input.short{ width: 100px; }
	input.long{ width: 500px; }
	textarea{ width: 500px; height: 150px; }
	.navigation { font-size: 1.6em; }
コード例 #9
0
ファイル: master.layout.php プロジェクト: amitshukla30/recess
echo Html::css('blueprint/screen', 'screen');
?>
		<?php 
echo Html::css('blueprint/print', 'print');
?>
		<!--[if IE]>
			<?php 
echo Html::css('blueprint/ie', 'screen');
?>
		<![endif]-->
		<?php 
echo Html::css('recess');
?>
		 
		<?php 
echo Html::css('SyntaxHighlighter');
echo Html::js('shCore');
echo Html::js('shBrushPhp');
echo Html::js('shBrushSql');
?>
		<script language="javascript">
			window.onload = function() {
				dp.SyntaxHighlighter.ClipboardSwf = '<?php 
echo Url::base('flash/clipboard.swf');
?>
'
				dp.SyntaxHighlighter.HighlightAll('code');
			}
		</script>
		<?php 
echo $scripts;
コード例 #10
0
ファイル: master.layout.php プロジェクト: amitshukla30/recess
Layout::input($title, 'string');
Layout::input($body, 'Block');
?>
<html>
	<head>
		<!-- Blue Print -->
		<?php 
echo Html::css('blueprint/screen', 'screen');
?>
		<?php 
echo Html::css('blueprint/print', 'print');
?>
		<!--[if IE]>
			<?php 
echo Html::css('blueprint/ie', 'screen');
?>
		<![endif]-->
		<title><?php 
if (isset($title)) {
    echo $title;
} else {
    echo 'Recess!';
}
?>
</title>
		<style type="text/css">
			.error,.notice,.success{ margin: 0 0 1em 0; padding: 0.8em; border: 2px solid #000; }
			.error{ background: #FBE3E4; border-color: #FBC2C4; }
				.error, .error a{ color: #8A1F11; }
			.notice{ background: #FFF6BF; border-color: #FFD324; }
コード例 #11
0
<!-- Blue Print -->
<?php 
// Scaffolding uses Recess Tools' stylesheets. You should place your apps stylesheets
//   in apps/yourApp/public/css/ and get rid of $recessToolsCss
$recessToolsCss = '../../../../recess/recess/apps/tools/public/css/';
echo Html::css($recessToolsCss . 'blueprint/screen', 'screen');
echo Html::css($recessToolsCss . 'blueprint/print', array('print'));
?>
<!--[if IE]>
	<?php 
echo Html::css('blueprint/ie', array('screen', 'projection'));
?>
<![endif]-->
<style type="text/css">
	.error,.notice,.success{ margin: 0 0 1em 0; padding: 0.8em; border: 2px solid #000; }
	.error{ background: #FBE3E4; border-color: #FBC2C4; }
		.error, .error a{ color: #8A1F11; }
	.notice{ background: #FFF6BF; border-color: #FFD324; }
		.notice, .notice a{ color: #514721; }
	.success{ background: #E6EFC2; border-color: #C6D880; }
		.success, .success a{ color: #264409; }
	body { font-size: .8em; }
	p { font-size: 1.2em; }
	form{ margin: 0; padding: 0; }
	fieldset{ margin: 0 0 1em 0; padding: 1em; border: 2px solid #a9b5c7; background: #f0f6fe; }
	legend{ margin: 0; padding: 0 0.5em; font-size: 1.5em; font-weight: bold; color: #222; }
	label{ font-weight: bold; color: #222; }
	
	input.text,textarea{ width: 300px; padding: 3px; font-size: 14px; font-family: arial, verdana, sans-serif; color: #333; }
	input.short{ width: 100px; }
	input.long{ width: 500px; }
コード例 #12
0
ファイル: api.class.php プロジェクト: stweil/glpi
 /**
  * Display the API Documentation in Html (parsed from markdown)
  *
  * @since version 9.1
  *
  * @param      string  $file   relative path of documentation file
  */
 public function inlineDocumentation($file)
 {
     global $CFG_GLPI;
     self::header(true, __("API Documentation"));
     echo Html::css($CFG_GLPI['root_doc'] . "/lib/prism/prism.css");
     echo Html::script($CFG_GLPI['root_doc'] . "/lib/prism/prism.js");
     echo "<div class='documentation'>";
     $documentation = file_get_contents(GLPI_ROOT . '/' . $file);
     echo ParsedownExtra::instance()->text($documentation);
     echo "</div>";
     Html::nullFooter();
 }