helpHeader() static public method

Print a nice HTML head for help page
static public helpHeader ( $title, $url = '' )
$title title of the page
$url not used anymore (default '')
$user = new User();
// Manage lost password
if (isset($_GET['lostpassword'])) {
    Html::nullHeader();
    if (isset($_GET['password_forget_token'])) {
        User::showPasswordForgetChangeForm($_GET['password_forget_token']);
    } else {
        User::showPasswordForgetRequestForm();
    }
    Html::nullFooter();
    exit;
}
Session::checkLoginUser();
if (isset($_POST["update"]) && $_POST["id"] === Session::getLoginUserID()) {
    $user->update($_POST);
    Event::log($_POST["id"], "users", 5, "setup", sprintf(__('%s updates an item'), $_SESSION["glpiname"]));
    Html::back();
} else {
    if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
        Html::header(Preference::getTypeName(1), $_SERVER['PHP_SELF'], 'preference');
    } else {
        Html::helpHeader(Preference::getTypeName(1), $_SERVER['PHP_SELF']);
    }
    $pref = new Preference();
    $pref->display();
    if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
        Html::footer();
    } else {
        Html::helpFooter();
    }
}
Example #2
0
File: ticket.php Project: btry/glpi
GLPI 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. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
/** @file
* @brief
*/
include '../inc/includes.php';
Session::checkLoginUser();
if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
    Html::helpHeader(Ticket::getTypeName(Session::getPluralNumber()), '', $_SESSION["glpiname"]);
} else {
    Html::header(Ticket::getTypeName(Session::getPluralNumber()), '', "helpdesk", "ticket");
}
if ($_SESSION['glpirefresh_ticket_list'] > 0) {
    // Refresh automatique  sur tracking.php
    echo "<script type=\"text/javascript\">\n";
    echo "setInterval(\"window.location.reload()\"," . 60000 * $_SESSION['glpirefresh_ticket_list'] . ");\n";
    echo "</script>\n";
}
Search::show('Ticket');
if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
    Html::helpFooter();
} else {
    Html::footer();
}
Example #3
0
         $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");
         } else {
             Html::helpHeader(__('FAQ'), $_SERVER['PHP_SELF']);
         }
         Html::helpHeader(__('FAQ'), $_SERVER['PHP_SELF'], $_SESSION["glpiname"]);
     } else {
         $_SESSION["glpilanguage"] = $CFG_GLPI['language'];
         // Anonymous FAQ
         Html::simpleHeader(__('FAQ'), array(__('Authentication') => $CFG_GLPI['root_doc'] . '/', __('FAQ') => $CFG_GLPI['root_doc'] . '/front/helpdesk.faq.php'));
     }
     $available_options = array('item_itemtype', 'item_items_id', 'id');
     $options = array();
     foreach ($available_options as $key) {
         if (isset($_GET[$key])) {
             $options[$key] = $_GET[$key];
         }
     }
     $kb->display($options);
     if (Session::getLoginUserID()) {
         if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
Example #4
0
function plugin_surveyticket_post_init()
{
    if (strpos($_SERVER['PHP_SELF'], "ticket.form.php") && !isset($_GET['id']) && (!isset($_POST['id']) || $_POST['id'] == 0) || strpos($_SERVER['PHP_SELF'], "helpdesk.public.php") && isset($_GET['create_ticket']) || strpos($_SERVER['PHP_SELF'], "tracking.injector.php")) {
        if (isset($_POST)) {
            $psQuestion = new PluginSurveyticketQuestion();
            $psAnswer = new PluginSurveyticketAnswer();
            //print_r($_POST);exit;
            $description = '';
            foreach ($_POST as $question => $answer) {
                if (strstr($question, "question") && !strstr($question, "realquestion")) {
                    $psQuestion->getFromDB(str_replace("question", "", $question));
                    if (is_array($answer)) {
                        // Checkbox
                        $description .= _n('Question', 'Questions', 1, 'surveyticket') . " : " . $psQuestion->fields['name'] . "\n";
                        foreach ($answer as $answers_id) {
                            if ($psAnswer->getFromDB($answers_id)) {
                                $description .= _n('Answer', 'Answers', 1, 'surveyticket') . " : " . $psAnswer->fields['name'] . "\n";
                                $qid = str_replace("question", "", $question);
                                if (isset($_POST["text-" . $qid . "-" . $answers_id]) and $_POST["text-" . $qid . "-" . $answers_id] != '') {
                                    $description .= "Texte : " . $_POST["text-" . $qid . "-" . $answers_id] . "\n";
                                }
                            }
                        }
                        $description .= "\n";
                        unset($_POST[$question]);
                    } else {
                        $real = 0;
                        if (isset($_POST['realquestion' . str_replace("question", "", $question)])) {
                            $realanswer = $answer;
                            $answer = $_POST['realquestion' . str_replace("question", "", $question)];
                            $real = 1;
                        }
                        if ($psAnswer->getFromDB($answer)) {
                            $description .= _n('Question', 'Questions', 1, 'surveyticket') . " : " . $psQuestion->fields['name'] . "\n";
                            if ($real == 1) {
                                $description .= _n('Answer', 'Answers', 1, 'surveyticket') . " : " . $realanswer . "\n";
                            } else {
                                $description .= _n('Answer', 'Answers', 1, 'surveyticket') . " : " . $psAnswer->fields['name'] . "\n";
                            }
                            $qid = str_replace("question", "", $question);
                            if (isset($_POST["text-" . $qid . "-" . $answer]) and $_POST["text-" . $qid . "-" . $answer] != '') {
                                $description .= "Texte : " . $_POST["text-" . $qid . "-" . $answer] . "\n";
                            }
                            $description .= "\n";
                            unset($_POST[$question]);
                        }
                    }
                }
            }
            if ($description != '') {
                $_POST['content'] = addslashes($description);
            }
        }
        if (!isset($_POST['add'])) {
            if (strpos($_SERVER['PHP_SELF'], "ticket.form.php")) {
                Html::header(__('New ticket'), '', "maintain", "ticket");
                PluginSurveyticketSurvey::getCentral();
                Html::footer();
                exit;
            } else {
                if (strpos($_SERVER['PHP_SELF'], "helpdesk.public.php") || strpos($_SERVER['PHP_SELF'], "tracking.injector.php")) {
                    Html::helpHeader(__('Simplified interface'), '', $_SESSION["glpiname"]);
                    PluginSurveyticketSurvey::getHelpdesk();
                    Html::helpFooter();
                    exit;
                }
            }
        }
    }
}
Example #5
0
 LICENSE

 This file is part of Badges.

 Badges 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.

 Badges 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 Badges. If not, see <http://www.gnu.org/licenses/>.
 --------------------------------------------------------------------------  */
include '../../../inc/includes.php';
if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
    Html::header(PluginBadgesWizard::getTypeName(2), '', "assets", "pluginbadgesmenu");
} else {
    Html::helpHeader(PluginBadgesWizard::getTypeName(2), '', "assets", "pluginbadgesmenu");
}
$wizard = new PluginBadgesWizard();
$wizard->showMenu();
if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
    Html::footer();
} else {
    Html::helpFooter();
}
Example #6
0
  Surveyticket 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 Affero General Public License for more details.

  You should have received a copy of the GNU Affero General Public License
  along with Surveyticket plugin. If not, see <http://www.gnu.org/licenses/>.

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

  @package   Surveyticket plugin
  @author    David Durieux
  @copyright Copyright (c) 2012-2013 Surveyticket plugin 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/surveyticket
  @since     2012

  ------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
Session::checkLoginUser();
if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
    Html::helpHeader("survey", $_SERVER["PHP_SELF"], "plugins", "surveyticket", "displaysurvey");
} else {
    Html::header("survey", $_SERVER["PHP_SELF"], "plugins", "surveyticket", "displaysurvey");
}
$psSurvey = new PluginSurveyticketSurvey();
$psSurvey->showFormHelpdesk(Session::getLoginUserID());
Html::footer();
Example #7
0
 LICENSE

 This file is part of consumables.

 Consumables 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.

 Consumables 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 Consumables. If not, see <http://www.gnu.org/licenses/>.
 --------------------------------------------------------------------------
*/
include '../../../inc/includes.php';
if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
    Html::header(PluginConsumablesWizard::getTypeName(2), '', "plugins", "pluginconsumablesmenu");
} else {
    Html::helpHeader(PluginConsumablesWizard::getTypeName(2), '', "plugins", "pluginconsumablesmenu");
}
$wizard = new PluginConsumablesWizard();
$wizard->showMenu();
if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
    Html::footer();
} else {
    Html::helpFooter();
}
Example #8
0
Resources 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 Resources. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include '../../../inc/includes.php';
//central or helpdesk access
if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
    Html::header(PluginResourcesResource::getTypeName(2), '', "plugins", "resources");
} else {
    Html::helpHeader(PluginResourcesResource::getTypeName(2));
}
$resource = new PluginResourcesResource();
if ($resource->canView() || Session::haveRight("config", "w")) {
    if (plugin_resources_haveRight("all", "w")) {
        //Have right to see all resources
        //Have not right to see all resources
        echo "<div align='center'><script type='text/javascript'>";
        echo "cleanhide('modal_resource_content');";
        echo "var account_window=new Ext.Window({\n            layout:'fit',\n            width:800,\n            height:400,\n            closeAction:'hide',\n            modal: true,\n            autoScroll: true,\n            title: \"" . __('View by contract type', 'resources') . "\",\n            autoLoad: '" . $CFG_GLPI['root_doc'] . "/plugins/resources/ajax/resourcetree.php'\n         });";
        echo "</script>";
        echo "<a onclick='account_window.show();' href='#modal_resource_content' title='" . __('View by contract type', 'resources') . "'>" . __('View by contract type', 'resources') . "</a>";
        echo "</div>";
    }
    Search::show("PluginResourcesResource", $_GET);
} else {
Example #9
0
Positions 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.

Positions 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 Positions. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include '../../../inc/includes.php';
if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
    //from central
    Html::header(PluginPositionsPosition::getTypeName(), '', "plugins", "positions");
} else {
    //from helpdesk
    Html::helpHeader(PluginPositionsPosition::getTypeName());
}
if (!isset($_POST["locations_id"])) {
    $_POST["locations_id"] = 0;
}
PluginPositionsPosition::showLocationForm($_POST["locations_id"]);
if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
    Html::footer();
} else {
    Html::helpFooter();
}
Example #10
0
        $comment->update($_POST);
        Html::back();
    } else {
        if (isset($_POST["delete"])) {
            $comment->check($_POST['id'], 'w');
            $comment->delete($_POST, 1);
            Html::redirect(Toolbox::getItemTypeFormURL('PluginIdeaboxIdeabox') . "?id=" . $_POST["plugin_ideabox_ideaboxes_id"]);
        } else {
            if (isset($_POST["delete_comment"])) {
                foreach ($_POST["check"] as $ID => $value) {
                    $comment->check($ID, 'w');
                    $comment->delete(array("id" => $ID), 1);
                }
                Html::back();
            } else {
                $comment->checkGlobal("r");
                if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
                    Html::header(PluginIdeaboxIdeabox::getTypeName(2), '', "plugins", "ideabox");
                } else {
                    Html::helpHeader(PluginIdeaboxIdeabox::getTypeName(2));
                }
                $comment->showForm($_GET["id"], array('plugin_ideabox_ideaboxes_id' => $_GET["plugin_ideabox_ideaboxes_id"]));
                if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
                    Html::footer();
                } else {
                    Html::helpFooter();
                }
            }
        }
    }
}
Example #11
0
                        case 'Profile':
                            if (isset($_POST['profiles_id']) && $_POST['profiles_id']) {
                                $item = new Profile_RSSFeed();
                            }
                            break;
                        case 'Entity':
                            $item = new Entity_RSSFeed();
                            break;
                    }
                    if (!is_null($item)) {
                        $item->add($_POST);
                        Event::log($_POST["rssfeeds_id"], "rssfeed", 4, "tools", sprintf(__('%s adds a target'), $_SESSION["glpiname"]));
                    }
                }
                Html::back();
            } else {
                if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
                    Html::helpHeader(RSSFeed::getTypeName(2), '', $_SESSION["glpiname"]);
                } else {
                    Html::header(RSSFeed::getTypeName(2), '', "utils", "rssfeed");
                }
                $rssfeed->showForm($_GET["id"]);
                if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
                    Html::helpFooter();
                } else {
                    Html::footer();
                }
            }
        }
    }
}
Example #12
0
LICENSE

This file is part of GLPI.

GLPI 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.

GLPI 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. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
// ----------------------------------------------------------------------
// Original Author of file:
// Purpose of file:
// ----------------------------------------------------------------------
include '../../../inc/includes.php';
if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
    Html::header("TITRE", $_SERVER['PHP_SELF'], "plugins", "pluginexampleexample", "");
} else {
    Html::helpHeader("TITRE", $_SERVER['PHP_SELF']);
}
//checkTypeRight('PluginExampleExample',"r");
Search::show('PluginExampleExample');
Html::footer();
Example #13
0
                        case 'Profile':
                            if (isset($_POST['profiles_id']) && $_POST['profiles_id']) {
                                $item = new Profile_Reminder();
                            }
                            break;
                        case 'Entity':
                            $item = new Entity_Reminder();
                            break;
                    }
                    if (!is_null($item)) {
                        $item->add($_POST);
                        Event::log($_POST["reminders_id"], "reminder", 4, "tools", sprintf(__('%s adds a target'), $_SESSION["glpiname"]));
                    }
                }
                Html::back();
            } else {
                if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
                    Html::helpHeader(Reminder::getTypeName(2), '', $_SESSION["glpiname"]);
                } else {
                    Html::header(Reminder::getTypeName(2), '', "utils", "reminder");
                }
                $remind->showForm($_GET["id"]);
                if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
                    Html::helpFooter();
                } else {
                    Html::footer();
                }
            }
        }
    }
}
Example #14
0
             exit;
         }
     }
     if ($form->fields['access_rights'] == PluginFormcreatorForm::ACCESS_PUBLIC && !isset($_SESSION['glpiID'])) {
         // If user is not authenticated, create temporary user
         if (!isset($_SESSION['glpiname'])) {
             $_SESSION['formcreator_forms_id'] = $form->fields['id'];
             $_SESSION['glpiname'] = 'formcreator_temp_user';
             $_SESSION['valid_id'] = session_id();
             $_SESSION['glpiactiveentities'] = $form->fields['entities_id'];
             $subentities = getSonsOf('glpi_entities', $form->fields['entities_id']);
             $_SESSION['glpiactiveentities_string'] = !empty($subentities) ? "'" . implode("', '", $subentities) . "'" : "'" . $form->fields['entities_id'] . "'";
         }
     }
     if (isset($_SESSION['glpiactiveprofile']['interface']) && $_SESSION['glpiactiveprofile']['interface'] == 'helpdesk') {
         Html::helpHeader(__('Form list', 'formcreator'), $_SERVER['PHP_SELF']);
         $form->displayUserForm($form);
         Html::helpFooter();
     } elseif (!empty($_SESSION['glpiactiveprofile'])) {
         Html::header(__('Form Creator', 'formcreator'), $_SERVER['PHP_SELF'], 'helpdesk', 'PluginFormcreatorFormlist');
         $form->displayUserForm($form);
         Html::footer();
     } else {
         Html::nullHeader(__('Form Creator', 'formcreator'), $_SERVER['PHP_SELF']);
         Html::displayMessageAfterRedirect();
         $form->displayUserForm($form);
         Html::nullFooter();
     }
 } else {
     Html::displayNotFoundError();
 }
* @brief
*/
include '../inc/includes.php';
if (empty($_POST["_type"]) || $_POST["_type"] != "Helpdesk" || !$CFG_GLPI["use_anonymous_helpdesk"]) {
    Session::checkRight("ticket", CREATE);
}
$track = new Ticket();
// Security check
if (empty($_POST) || count($_POST) == 0) {
    Html::redirect($CFG_GLPI["root_doc"] . "/front/helpdesk.public.php");
}
if (isset($_POST["_type"]) && $_POST["_type"] == "Helpdesk") {
    Html::nullHeader(Ticket::getTypeName(Session::getPluralNumber()));
} else {
    if ($_POST["_from_helpdesk"]) {
        Html::helpHeader(__('Simplified interface'), '', $_SESSION["glpiname"]);
    } else {
        Html::header(__('Simplified interface'), '', $_SESSION["glpiname"], "helpdesk", "tracking");
    }
}
if (isset($_POST["my_items"]) && !empty($_POST["my_items"])) {
    $splitter = explode("_", $_POST["my_items"]);
    if (count($splitter) == 2) {
        $_POST["itemtype"] = $splitter[0];
        $_POST["items_id"] = $splitter[1];
    }
}
if (!isset($_POST["itemtype"]) || empty($_POST["items_id"]) && $_POST["itemtype"] != 0) {
    $_POST["itemtype"] = '';
    $_POST["items_id"] = 0;
}
Example #16
0
GLPI 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. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
/** @file
* @brief
*/
include '../inc/includes.php';
Session::checkLoginUser();
if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
    Html::helpHeader(Ticket::getTypeName(2), '', $_SESSION["glpiname"]);
} else {
    Html::header(Ticket::getTypeName(2), '', "maintain", "ticket");
}
if ($_SESSION['glpirefresh_ticket_list'] > 0) {
    // Refresh automatique  sur tracking.php
    echo "<script type=\"text/javascript\">\n";
    echo "setInterval(\"window.location.reload()\"," . 60000 * $_SESSION['glpirefresh_ticket_list'] . ");\n";
    echo "</script>\n";
}
Search::show('Ticket');
if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
    Html::helpFooter();
} else {
    Html::footer();
}
Example #17
0
                             if (isset($_POST["deleteaccounts"])) {
                                 $input = array('id' => $_POST["id"]);
                                 $account_item->check($_POST["id"], 'w');
                                 $account_item->delete($input);
                                 Html::back();
                             } else {
                                 $account->checkGlobal("r");
                                 if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
                                     $plugin = new Plugin();
                                     if ($plugin->isActivated("environment")) {
                                         Html::header(PluginAccountsAccount::getTypeName(2), '', "plugins", "environment", "accounts");
                                     } else {
                                         Html::header(PluginAccountsAccount::getTypeName(2), '', "plugins", "accounts");
                                     }
                                 } else {
                                     Html::helpHeader(PluginAccountsAccount::getTypeName(2));
                                 }
                                 $account->showForm($_GET["id"]);
                                 if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
                                     Html::footer();
                                 } else {
                                     Html::helpFooter();
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
Example #18
0
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

GLPI 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. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
/** @file
* @brief
*/
include '../inc/includes.php';
Session::checkLoginUser();
if (!isset($_GET["reservationitems_id"])) {
    $_GET["reservationitems_id"] = '';
}
if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
    Html::helpHeader(__('Simplified interface'), $_SERVER['PHP_SELF'], $_SESSION["glpiname"]);
} else {
    Html::header(Reservation::getTypeName(2), $_SERVER['PHP_SELF'], "utils", "reservation");
}
Reservation::showCalendar($_GET["reservationitems_id"]);
if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
    Html::helpFooter();
} else {
    Html::footer();
}
 LICENSE

 This file is part of Shellcommands.

 Shellcommands 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.

 Shellcommands 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 Shellcommands. If not, see <http://www.gnu.org/licenses/>.
 --------------------------------------------------------------------------  */
include '../../../inc/includes.php';
if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
    Html::header(PluginShellcommandsMenu::getTypeName(2), '', "tools", "pluginshellcommandsshellcommand");
} else {
    Html::helpHeader(PluginShellcommandsMenu::getTypeName(2));
}
$menu = new PluginShellcommandsMenu();
$menu->showMenu();
if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
    Html::footer();
} else {
    Html::helpFooter();
}