Exemple #1
0
function plugin_itilcategorygroups_uninstall()
{
    include_once GLPI_ROOT . "/plugins/itilcategorygroups/inc/category_group.class.php";
    include_once GLPI_ROOT . "/plugins/itilcategorygroups/inc/category.class.php";
    include_once GLPI_ROOT . "/plugins/itilcategorygroups/inc/group_level.class.php";
    PluginItilcategorygroupsCategory_Group::uninstall();
    PluginItilcategorygroupsCategory::uninstall();
    PluginItilcategorygroupsGroup_Level::uninstall();
    return true;
}
 * @version $Id: billstate.php 651 2012-09-14 08:22:06Z walid $
 LICENSE

 This file is part of the order plugin.

 Order plugin 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.

 Order 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 GLPI; along with Order. If not, see <http://www.gnu.org/licenses/>.
 --------------------------------------------------------------------------
 @package   order
 @author    the order plugin team
 @copyright Copyright (c) 2010-2011 Order plugin team
 @license   GPLv2+
            http://www.gnu.org/licenses/gpl.txt
 @link      https://forge.indepnet.net/projects/order
 @link      http://www.glpi-project.org/
 @since     2009
 ---------------------------------------------------------------------- */
include "../../../inc/includes.php";
Html::header(PluginItilcategorygroupsCategory::getTypeName(), '', "admin", "pluginitilcategorygroupsmenu", "model");
$dropdown = new PluginItilcategorygroupsCategory();
include GLPI_ROOT . "/front/dropdown.common.php";
<?php

$AJAX_INCLUDE = 1;
include "../../../inc/includes.php";
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
Session::checkLoginUser();
if (!isset($_REQUEST['itilcategories_id'])) {
    exit;
}
$ticket_id = isset($_REQUEST['ticket_id']) ? $_REQUEST['ticket_id'] : 0;
$condition = PluginItilcategorygroupsCategory::getSQLCondition(intval($ticket_id), intval($_REQUEST['itilcategories_id']));
if (!empty($condition)) {
    $rand = mt_rand();
    $default_options = array('display_emptychoice' => true, 'itemtype' => 'Group', 'condition' => $rand);
    $_GET = array_merge($_GET, $default_options);
    $_SESSION['glpicondition'][$rand] = $condition;
    require "../../../ajax/getDropdownValue.php";
} else {
    echo '{"results":[{"id":0,"text":"-----"}],"count":0}';
}