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


PHP Html::popHeader方法代码示例

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


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

示例1: switch

  ------------------------------------------------------------------------
*/
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();
}
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:30,代码来源:popup.php

示例2: Entity_KnowbaseItem

                 }
                 break;
             case 'Entity':
                 $item = new Entity_KnowbaseItem();
                 break;
         }
         if (!is_null($item)) {
             $item->add($_POST);
             Event::log($_POST["knowbaseitems_id"], "knowbaseitem", 4, "tools", sprintf(__('%s adds a target'), $_SESSION["glpiname"]));
         }
     }
     Html::back();
 } else {
     if (isset($_GET["id"])) {
         if (isset($_GET["_in_modal"])) {
             Html::popHeader(__('Knowledge base'), $_SERVER['PHP_SELF']);
             $kb = new KnowbaseItem();
             if ($_GET['id']) {
                 $kb->check($_GET["id"], READ);
                 $kb->showFull();
             } else {
                 // New item
                 $kb->showForm($_GET["id"], $_GET);
             }
             Html::popFooter();
         } else {
             // modifier un item dans la base de connaissance
             $kb->check($_GET["id"], READ);
             if (Session::getLoginUserID()) {
                 if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
                     Html::header(KnowbaseItem::getTypeName(1), $_SERVER['PHP_SELF'], "tools", "knowbaseitem");
开发者ID:glpi-project,项目名称:glpi,代码行数:31,代码来源:knowbaseitem.form.php

示例3: Supplier_Ticket

GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
/** @file
* @brief
* @since version 0.85
*/
if (!defined('GLPI_ROOT')) {
    include '../inc/includes.php';
}
$link = new Supplier_Ticket();
Session::checkLoginUser();
Html::popHeader(__('Email followup'), $_SERVER['PHP_SELF']);
if (isset($_POST["update"])) {
    $link->check($_POST["id"], UPDATE);
    $link->update($_POST);
    echo "<script type='text/javascript' >\n";
    echo "window.parent.location.reload();";
    echo "</script>";
} else {
    if (isset($_POST['delete'])) {
        $link->check($_POST['id'], DELETE);
        $link->delete($_POST);
        Event::log($link->fields['tickets_id'], "ticket", 4, "tracking", sprintf(__('%s deletes an actor'), $_SESSION["glpiname"]));
        Html::redirect($CFG_GLPI["root_doc"] . "/front/ticket.form.php?id=" . $link->fields['tickets_id']);
    } else {
        if (isset($_GET["id"])) {
            $link->showSupplierNotificationForm($_GET["id"]);
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:31,代码来源:supplier_ticket.form.php

示例4: export

 /**
  * Launch export of datas
  *
  * @param $opt
  */
 function export($opt)
 {
     global $LANG;
     switch ($opt['switchto']) {
         default:
         case 'png':
             $graph = new PluginMreportingGraphpng();
             //check the format display charts configured in glpi
             $opt = $this->initParams($opt, true);
             $opt['export'] = 'png';
             $opt['withdata'] = 1;
             break;
         case 'csv':
             $graph = new PluginMreportingGraphcsv();
             $opt['export'] = 'csv';
             $opt['withdata'] = 1;
             break;
         case 'odt':
             $graph = new PluginMreportingGraphpng();
             $opt = $this->initParams($opt, true);
             $opt['export'] = 'odt';
             break;
         case 'odtall':
             $graph = new PluginMreportingGraphpng();
             $opt = $this->initParams($opt, true);
             $opt['export'] = 'odtall';
             break;
     }
     //export all with odt
     if (isset($opt['classname'])) {
         if (isset($opt['check'])) {
             unset($_SESSION['glpi_plugin_mreporting_odtarray']);
             $reports = $this->getAllReports(false, $opt);
             foreach ($reports as $classname => $report) {
                 foreach ($report['functions'] as $func) {
                     foreach ($opt['check'] as $do => $to) {
                         if ($do == $func['function'] . $classname) {
                             //dynamic instanciation of class passed by 'short_classname' GET parameter
                             $class = 'PluginMreporting' . $func['short_classname'];
                             $obj = new $class();
                             $randname = $classname . $func['function'];
                             if (isset($opt['date1']) && isset($opt['date2'])) {
                                 $s = strtotime($opt['date2']) - strtotime($opt['date1']);
                                 // If customExportDates exists in class : we configure the dates
                                 if (method_exists($obj, 'customExportDates')) {
                                     $opt = $obj->customExportDates($opt, $func['function']);
                                 }
                                 $_REQUEST['date1' . $randname] = $opt['date1'];
                                 $_REQUEST['date2' . $randname] = $opt['date2'];
                             }
                             //dynamic call of method passed by 'f_name'
                             //GET parameter with previously instancied class
                             $datas = $obj->{$func}['function']();
                             //show graph (pgrah type determined by
                             //first entry of explode of camelcase of function name
                             $title_func = $LANG['plugin_mreporting'][$func['short_classname']][$func['function']]['title'];
                             $des_func = "";
                             if (isset($LANG['plugin_mreporting'][$func['short_classname']][$func['function']]['desc'])) {
                                 $des_func = $LANG['plugin_mreporting'][$func['short_classname']][$func['function']]['desc'];
                             }
                             if (isset($LANG['plugin_mreporting'][$func['short_classname']][$func['function']]['desc']) && isset($opt['date1']) && isset($opt['date2'])) {
                                 $des_func .= " - ";
                             }
                             if (isset($opt['date1']) && isset($opt['date2'])) {
                                 $des_func .= Html::convdate($opt['date1']) . " / " . Html::convdate($opt['date2']);
                             }
                             $options = array("short_classname" => $func['short_classname'], "f_name" => $func['function'], "class" => $opt['classname'], "gtype" => $func['gtype'], "randname" => $randname, "withdata" => $opt['withdata']);
                             $show_label = 'always';
                             $params = array("raw_datas" => $datas, "title" => $title_func, "desc" => $des_func, "export" => $opt['export'], "opt" => $options);
                             $graph->{'show' . $func['gtype']}($params);
                         }
                     }
                 }
             }
             if (isset($_SESSION['glpi_plugin_mreporting_odtarray']) && !empty($_SESSION['glpi_plugin_mreporting_odtarray'])) {
                 if (PluginMreportingPreference::atLeastOneTemplateExists()) {
                     $template = PluginMreportingPreference::checkPreferenceTemplateValue(Session::getLoginUserID());
                     if ($template) {
                         self::generateOdt($_SESSION['glpi_plugin_mreporting_odtarray']);
                     } else {
                         Html::popHeader($LANG['plugin_mreporting']["export"][0], $_SERVER['PHP_SELF']);
                         echo "<div class='center'><br>" . $LANG['plugin_mreporting']["parser"][2] . "<br><br>";
                         Html::displayBackLink();
                         echo "</div>";
                         Html::popFooter();
                     }
                 } else {
                     Html::popHeader($LANG['plugin_mreporting']["export"][0], $_SERVER['PHP_SELF']);
                     echo "<div class='center'><br>" . $LANG['plugin_mreporting']["parser"][3] . "<br><br>";
                     Html::displayBackLink();
                     echo "</div>";
                     Html::popFooter();
                 }
             }
         } else {
//.........这里部分代码省略.........
开发者ID:geldarr,项目名称:hack-space,代码行数:101,代码来源:common.class.php

示例5: sprintf

    Html::back();
} else {
    if (isset($_POST["purge"])) {
        $ic->check($_POST["id"], PURGE);
        $ic->delete($_POST, 1);
        Event::log($_POST["id"], "infocom", 4, "financial", sprintf(__('%s purges an item'), $_SESSION["glpiname"]));
        Html::back();
    } else {
        if (isset($_POST["update"])) {
            $ic->check($_POST["id"], UPDATE);
            $ic->update($_POST);
            Event::log($_POST["id"], "infocom", 4, "financial", sprintf(__('%s updates an item'), $_SESSION["glpiname"]));
            Html::back();
        } else {
            Session::checkRight("infocom", READ);
            Html::popHeader(Infocom::getTypeName(), $_SERVER['PHP_SELF']);
            if (isset($_GET["id"])) {
                $ic->getFromDB($_GET["id"]);
                $_GET["itemtype"] = $ic->fields["itemtype"];
                $_GET["items_id"] = $ic->fields["items_id"];
            }
            $item = false;
            if (isset($_GET["itemtype"]) && ($item = getItemForItemtype($_GET["itemtype"]))) {
                if (!isset($_GET["items_id"]) || !$item->getFromDB($_GET["items_id"])) {
                    $item = false;
                }
            }
            Infocom::showForItem($item, 0);
            Html::popFooter();
        }
    }
开发者ID:glpi-project,项目名称:glpi,代码行数:31,代码来源:infocom.form.php

示例6: header

include '../inc/includes.php';
Session::checkCentralAccess();
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
try {
    $ma = new MassiveAction($_POST, $_GET, 'process');
} catch (Exception $e) {
    Html::popHeader(__('Bulk modification error'), $_SERVER['PHP_SELF']);
    echo "<div class='center'><img src='" . $CFG_GLPI["root_doc"] . "/pics/warning.png' alt='" . __s('Warning') . "'><br><br>";
    echo "<span class='b'>" . $e->getMessage() . "</span><br>";
    Html::displayBackLink();
    echo "</div>";
    Html::popFooter();
    exit;
}
Html::popHeader(__('Bulk modification'), $_SERVER['PHP_SELF']);
$results = $ma->process();
$nbok = $results['ok'];
$nbko = $results['ko'];
$nbnoright = $results['noright'];
if ($nbok == 0) {
    $message = __('Failed operation');
} else {
    if ($nbnoright || $nbko) {
        $message = __('Operation performed partially successful');
    } else {
        $message = __('Operation successful');
    }
}
if ($nbnoright || $nbko) {
    //TRANS: %$1d and %$2d are numbers
开发者ID:jose-martins,项目名称:glpi,代码行数:31,代码来源:massiveaction.php

示例7: Copyright

  @package   Plugin Monitoring for GLPI
  @author    David Durieux
  @co-author 
  @comment   
  @copyright Copyright (c) 2011-2013 Plugin Monitoring for GLPI team
  @license   AGPL License 3.0 or (at your option) any later version
             http://www.gnu.org/licenses/agpl-3.0-standalone.html
  @link      https://forge.indepnet.net/projects/monitoring/
  @since     2011

  ------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
Session::checkCentralAccess();
if (isset($_GET['mobile'])) {
    Html::popHeader('display');
} else {
    Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "display");
}
if (isset($_POST['sessionupdate'])) {
    $_SESSION['glpi_plugin_monitoring']['_refresh'] = $_POST['_refresh'];
    Html::back();
    exit;
}
if (isset($_POST["plugin_monitoring_timezone"])) {
    $_SESSION['plugin_monitoring_timezone'] = $_POST["plugin_monitoring_timezone"];
    Html::back();
}
if (isset($_POST['updateperfdata'])) {
    $pmComponent = new PluginMonitoringComponent();
    if (isset($_POST["perfname"])) {
开发者ID:geldarr,项目名称:hack-space,代码行数:31,代码来源:display.form.php

示例8: KnowbaseItem

                case 'Ticket':
                    include "ticket_user.form.php";
                    break;
                case 'Problem':
                    include "problem_user.form.php";
                    break;
            }
            break;
        case "add_ldapuser":
            Html::popHeader(__('Import a user'), $_SERVER['PHP_SELF']);
            include "ldap.import.php";
            break;
        case "list_notificationtags":
            Html::popHeader(__('List of available tags'), $_SERVER['PHP_SELF']);
            include "notification.tags.php";
            break;
        case "show_kb":
            Html::popHeader(__('Knowledge base'), $_SERVER['PHP_SELF']);
            $kb = new KnowbaseItem();
            $kb->check($_GET["id"], 'r');
            $kb->showFull(true);
            break;
        case "display_options":
            Html::popHeader(__('Display options'), $_SERVER['PHP_SELF']);
            include "display.options.php";
            break;
    }
    echo "<div class='center'><br><a href='javascript:window.close()'>" . __('Close') . "</a>";
    echo "</div>";
    Html::popFooter();
}
开发者ID:geldarr,项目名称:hack-space,代码行数:31,代码来源:popup.php

示例9: Plugin

        $_POST["locations_id"] = $_GET["locations_id"];
    }
    if (!isset($_POST["download"])) {
        $_POST["download"] = $_GET["download"];
    }
    $types = PluginPositionsPosition::getTypes();
    if (!isset($_POST["itemtype"])) {
        $_POST["itemtype"] = $types;
    }
    $locations_id = $_POST["locations_id"];
    $id = $_GET["positions_id"];
    $itemtype = $_POST['itemtype'];
    $menuoff = 1;
    $download = $_POST['download'];
}
$plugin = new Plugin();
if (isset($_GET['from_treeview']) && $plugin->isActivated("treeview")) {
    Html::header(PluginPositionsPosition::getTypeName(), '', "plugins", "positions");
} else {
    Html::popHeader(PluginPositionsPosition::getTypeName(), $_SERVER['PHP_SELF']);
}
if (isset($locations_id) && !empty($locations_id)) {
    $target = $_SERVER['PHP_SELF'] . "?id=" . $id;
    $options = array('id' => $id, 'locations_id' => $locations_id, 'itemtype' => $itemtype, 'target' => $target, 'menuoff' => $menuoff, 'download' => $download);
    PluginPositionsPosition::showMap($options);
} else {
    echo "<div class='center'><br><br>";
    echo "<img src='" . $CFG_GLPI["root_doc"] . "/pics/warning.png' alt='warning'><br><br>";
    echo "<span class='b'>" . __('The selected object is not located on a map', 'positions') . "</span></div>";
}
Html::popFooter();
开发者ID:geldarr,项目名称:hack-space,代码行数:31,代码来源:geoloc.php

示例10: switch

 (at your option) any later version.

 Typology is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with Typology. If not, see <http://www.gnu.org/licenses/>.
 --------------------------------------------------------------------------
*/
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 GLPI_ROOT . "/front/rule.test.php";
            break;
        case "test_all_rules":
            Html::popHeader(__('Test rules engine'), $_SERVER['PHP_SELF']);
            include GLPI_ROOT . "/front/rulesengine.test.php";
            break;
    }
    echo "<div class='center'><br><a href='javascript:window.close()'>" . __('Close') . "</a>";
    echo "</div>";
    Html::popFooter();
}
开发者ID:geldarr,项目名称:hack-space,代码行数:31,代码来源:popup.php

示例11: Copyright

 Datainjection plugin is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with datainjection. If not, see <http://www.gnu.org/licenses/>.
 --------------------------------------------------------------------------
 @package   datainjection
 @author    the datainjection plugin team
 @copyright Copyright (c) 2010-2013 Datainjection plugin team
 @license   GPLv2+
            http://www.gnu.org/licenses/gpl.txt
 @link      https://forge.indepnet.net/projects/datainjection
 @link      http://www.glpi-project.org/
 @since     2009
 ---------------------------------------------------------------------- */
include '../../../inc/includes.php';
Session::checkLoginUser();
switch ($_GET["popup"]) {
    case "preview":
        Html::popHeader(__('See the file', 'datainjection'), $_SERVER['PHP_SELF']);
        PluginDatainjectionModel::showPreviewMappings($_GET['models_id']);
        Html::popFooter();
        break;
    case "log":
        Html::popHeader(__('File injection report', 'datainjection'), $_SERVER['PHP_SELF']);
        PluginDatainjectionModel::showLogResults($_GET['models_id']);
        Html::popFooter();
        break;
}
开发者ID:JULIO8,项目名称:respaldo_glpi,代码行数:31,代码来源:popup.php

示例12: PluginMreportingCommon

-------------------------------------------------------------------------

LICENSE

This file is part of mreporting.

mreporting is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

mreporting is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with mreporting. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
Session::checkLoginUser();
if (isset($_GET["classname"])) {
    $_POST["classname"] = $_GET["classname"];
}
Html::popHeader($LANG['plugin_mreporting']["export"][0], $_SERVER['PHP_SELF']);
$common = new PluginMreportingCommon();
$common->showExportForm($_POST);
echo "<div class='center'><br><a href='javascript:window.close()'>" . __("Close") . "</a>";
echo "</div>";
Html::popFooter();
开发者ID:geldarr,项目名称:hack-space,代码行数:31,代码来源:popup.php

示例13:

<?php

include "../../../inc/includes.php";
Html::popHeader(__("full assignation history", "escalade"), $_SERVER['PHP_SELF']);
echo "<div class='center'><br><a href='javascript:window.close()'>" . __("Close") . "</a>";
echo "</div>";
echo "<div id='page'>";
PluginEscaladeHistory::getHistory($_REQUEST['tickets_id'], true);
echo "</div>";
Html::popFooter();
开发者ID:geldarr,项目名称:hack-space,代码行数:10,代码来源:popup_histories.php

示例14: AuthLDAP

You should have received a copy of the GNU General Public License
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
/** @file
* @brief
*/
if (!defined('GLPI_ROOT')) {
    include '../inc/includes.php';
}
Session::checkRight("import_externalauth_users", 'w');
// Need REQUEST to manage initial walues and posted ones
AuthLdap::manageValuesInSession($_REQUEST);
if (isset($_SESSION['ldap_import']['popup']) && $_SESSION['ldap_import']['popup']) {
    Html::popHeader(__('LDAP directory link'), $_SERVER['PHP_SELF']);
} else {
    Html::header(__('LDAP directory link'), $_SERVER['PHP_SELF'], "admin", "user", "ldap");
}
if (isset($_GET['start'])) {
    $_SESSION['ldap_import']['start'] = $_GET['start'];
}
if (isset($_GET['order'])) {
    $_SESSION['ldap_import']['order'] = $_GET['order'];
}
if ($_SESSION['ldap_import']['action'] == 'show') {
    $authldap = new AuthLDAP();
    $authldap->getFromDB($_SESSION['ldap_import']['authldaps_id']);
    AuthLdap::showUserImportForm($authldap);
    if (isset($_SESSION['ldap_import']['authldaps_id']) && $_SESSION['ldap_import']['authldaps_id'] != NOT_AVAILABLE && isset($_SESSION['ldap_import']['criterias']) && !empty($_SESSION['ldap_import']['criterias'])) {
        echo "<br />";
开发者ID:gaforeror,项目名称:glpi,代码行数:30,代码来源:ldap.import.php

示例15: sprintf

    Html::back();
} else {
    if (isset($_POST["delete"])) {
        $group->check($_POST["id"], 'd');
        $group->delete($_POST);
        Event::log($_POST["id"], "groups", 4, "setup", sprintf(__('%s purges an item'), $_SESSION["glpiname"]));
        $group->redirectToList();
    } else {
        if (isset($_POST["update"])) {
            $group->check($_POST["id"], 'w');
            $group->update($_POST);
            Event::log($_POST["id"], "groups", 4, "setup", sprintf(__('%s updates an item'), $_SESSION["glpiname"]));
            Html::back();
        } else {
            if (isset($_GET['popup'])) {
                Html::popHeader(Group::getTypeName(2), $_SERVER['PHP_SELF']);
                if (isset($_GET["rand"])) {
                    $_SESSION["glpipopup"]["rand"] = $_GET["rand"];
                }
                $group->showForm($_GET["id"]);
                echo "<div class='center'><br><a href='javascript:window.close()'>" . __('Back') . "</a>";
                echo "</div>";
                Html::popFooter();
            } else {
                Html::header(Group::getTypeName(2), $_SERVER['PHP_SELF'], "admin", "group");
                $group->showForm($_GET["id"]);
                Html::footer();
            }
        }
    }
}
开发者ID:geldarr,项目名称:hack-space,代码行数:31,代码来源:group.form.php


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