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


PHP Lib::getModule方法代码示例

本文整理汇总了PHP中Lib::getModule方法的典型用法代码示例。如果您正苦于以下问题:PHP Lib::getModule方法的具体用法?PHP Lib::getModule怎么用?PHP Lib::getModule使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Lib的用法示例。


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

示例1:

<?php

/*
 * Charge tous les fichiers JavaScript
 */
require_once '../lib/functions_js.php';
Lib::includeJS('../plugins/dhtmlgoodies_calendar/dhtmlgoodies_calendar/dhtmlgoodies_calendar.js');
$libModule = Lib::getModule();
if ($module != 'lib') {
    //include ('../$module/functions.js');
    //echo '<script type=\'text/javascript\' src=\''.'../$module/functions.js'.'\'></script>';
    require_once '../' . $libModule . '/functions_js.php';
    //Lib::includeJS('../'.Lib::getModule().'/functions_js.php');
}
开发者ID:SalokineTerata,项目名称:intranet,代码行数:14,代码来源:javascript.php

示例2:

require_once '../lib/class/html/HtmlSubForm_R1N.php';
require_once '../lib/class/html/HtmlSubForm_RNN.php';
require_once '../lib/class/html/HtmlTextArea.php';
require_once '../lib/class/html/HtmlCheckbox.php';
require_once '../lib/class/html/TraitDataFieldToHtml.php';
require_once '../lib/class/html/DataFieldToHtmlInputText.php';
require_once '../lib/class/html/DataFieldToHtmlListSelect.php';
require_once '../lib/class/html/DataFieldToHtmlListBoolean.php';
require_once '../lib/class/html/DataFieldToHtmlInputCalendar.php';
require_once '../lib/class/html/DataFieldToHtmlInputNumber.php';
require_once '../lib/class/html/DataFieldToHtmlTextArea.php';
require_once '../lib/class/html/DataFieldToHtmlSubForm_R1N.php';
require_once '../lib/class/html/DataFieldToHtmlSubForm_RNN.php';
require_once '../lib/class/ModuleConfigLib.php';
// Session utilisateur
require_once '../lib/session.php';
// Variables locales à la page PHP
Lib::setModule();
$module = Lib::getModule();
// Inclusions propres au module
if ($module != 'lib') {
    //Inclusion de la configuration propre au module
    $module_conf_file = '../' . $module . '/class/ModuleConfig.php';
    if (file_exists($module_conf_file)) {
        require_once $module_conf_file;
    }
    //Inclusion de la librairie de fonction propre au module
    require_once '../' . $module . '/functions.php';
}
//$globalConfig = $_SESSION['globalConfig'];
GlobalConfig::setExecDebugTimeStart();
开发者ID:SalokineTerata,项目名称:intranet,代码行数:31,代码来源:php.php

示例3: print_page_begin

function print_page_begin($disable_full_page = FALSE, $menu_file = NULL, $conf = null)
{
    if ($conf == null) {
        $conf = new GlobalConfig();
    }
    $module = Lib::getModule();
    $title = Lib::setTitle();
    //    $css_intranet_module = $_SESSION["intranet_modules"][$module]["css_intranet_module"];
    $printable = "";
    if (!$_SESSION[$module . "_impression"]) {
        $printable = "class=display_none";
    }
    /**
     * Si le module Fta doit être affiché on selectionne le css du config.ini sinon celui de la base de données
     */
    if ($module == "fta" or $module == "adminagis" or $module == "lib" or $module == "test") {
        $css_intranet_module = $conf->getConf()->getCssFta();
    } else {
        $css_intranet_module = $_SESSION["intranet_modules"][$module]["css_intranet_module"];
    }
    header('Content-type: text/html; charset=utf-8');
    echo "<!DOCTYPE html><html>";
    echo "<head>";
    /**
     * Vidage des caches
     */
    echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\">\n        <meta http-equiv=\"Pragma\" content=\"no-cache\">\n        <meta http-equiv=\"Expires\" content=\"0\">";
    echo "<title>" . $title . "</title>";
    //Configuration du CSS
    echo "<link rel=stylesheet href=../lib/css/" . $css_intranet_module . " type=text/css>";
    /**
     * Css de la config.ini
     */
    if ($module == "fta" or $module == "adminagis" or $module == "lib") {
        echo "<style>\n        body {background-color:" . $conf->getConf()->getCssBackgroundValue() . ";}\n        .tableauFiche.table.td:hover   {background-color:" . $conf->getConf()->getCssBackgroundValue() . ";}\n        .titre_principal {background-color: " . $conf->getConf()->getCssTitleValue() . ";}\n        .contenu {background-color: " . $conf->getConf()->getCssContentValue() . ";}\n        </style>";
    }
    /**
     * Icone intranet
     */
    echo "<link rel=icon type=image/png href=../lib/images/icone_intranet2.png />";
    echo "<link type=\"text/css\" rel=\"stylesheet\" href=\"../plugins/dhtmlgoodies_calendar/dhtmlgoodies_calendar/dhtmlgoodies_calendar.css?random=20051112\" media=\"screen\"></link>";
    echo "</head>";
    echo "<body {$printable} leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onload=chargement();>";
    /**
     * Moteur de recherche WIKI(Redfish)
     */
    echo "<link rel=search type=application/opensearchdescription+xml title=Intranet Wiki href=../lib/wiki-agis.xml>";
    /**
     * jQuery
     */
    //Javascript
    echo "<script src=../plugins/jQuery-3.1.0/jquery-3.1.0.min.js></script>";
    echo "<script src=../plugins/jQuery-ui-1.12.0.custom/jquery-ui.min.js></script>";
    //CSS
    echo "<link href=../plugins/jQuery-ui-1.12.0.custom/jquery-ui.min.css rel=stylesheet type=text/css>";
    echo "<link href=../plugins/jQuery-ui-1.12.0.custom/jquery-ui.theme.min.css rel=stylesheet type=text/css>";
    echo "<link href=../plugins/jQuery-ui-1.12.0.custom/jquery-ui.structure.min.css rel=stylesheet type=text/css>";
    echo "<div class=display_none id=chargement style=width:100%;height:75px;color:red;font-weight:bold;font-size:14px;background:white;>\n           <img src= ../lib/images/ajax_loader.gif> Chargement ...\n          </div>";
    if (!$disable_full_page) {
        echo "<div class=display_none id=site width=100%; >";
        echo "<table border=0 cellspacing=0 cellpadding=0 height=534>";
        echo "<tr>";
        echo "<td valign=top align=center ><div id=menu >";
        include "../inc/connexion.php";
        include "../inc/navigue.php";
        if ($menu_file != NULL) {
            //Si existant, utilisation du menu demandé
            include "./{$module}/{$menu_file}";
        } else {
            include "../{$module}/menu_principal.inc";
        }
        //Sinon, menu par défaut
    }
}
开发者ID:SalokineTerata,项目名称:intranet,代码行数:74,代码来源:functions.html.php


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