예제 #1
0
파일: report.php 프로젝트: sx3052/racks
// Initialization of the variables
include '../../../inc/includes.php';
$output_type = Search::HTML_OUTPUT;
if (isset($_REQUEST['list_limit'])) {
    $_SESSION['glpilist_limit'] = $_REQUEST['list_limit'];
    unset($_REQUEST['list_limit']);
}
if (!isset($_REQUEST['sort'])) {
    $_REQUEST['sort'] = "entity";
    $_REQUEST['order'] = "ASC";
}
$limit = $_SESSION['glpilist_limit'];
if (isset($_REQUEST["display_type"])) {
    $output_type = $_REQUEST["display_type"];
    if ($output_type < 0) {
        $output_type = -$output_type;
        $limit = 0;
    }
}
$pReport = new PluginRacksReport();
if ($output_type == Search::HTML_OUTPUT) {
    Html::header(__("Report - Bays management", "racks"), $_SERVER['PHP_SELF'], "utils", "report");
    Report::title();
    $pReport->showForm($_REQUEST);
}
if (isset($_REQUEST['result_search_reports'])) {
    $pReport->showResult($output_type, $limit, $_REQUEST);
}
if ($output_type == Search::HTML_OUTPUT) {
    Html::footer();
}
예제 #2
0
// Initialization of the variables
include '../../../inc/includes.php';
$output_type = Search::HTML_OUTPUT;
if (isset($_POST['list_limit'])) {
    $_SESSION['glpilist_limit'] = $_POST['list_limit'];
    unset($_POST['list_limit']);
}
if (!isset($_REQUEST['sort'])) {
    $_REQUEST['sort'] = "entity";
    $_REQUEST['order'] = "ASC";
}
$limit = $_SESSION['glpilist_limit'];
if (isset($_POST["display_type"])) {
    $output_type = $_POST["display_type"];
    if ($output_type < 0) {
        $output_type = -$output_type;
        $limit = 0;
    }
}
$pReport = new PluginRacksReport();
if ($output_type == Search::HTML_OUTPUT) {
    Html::header(__("Report - Bays management", "racks"), $_SERVER['PHP_SELF'], "utils", "report");
    Report::title();
    $pReport->showForm($_POST);
}
if (isset($_POST['result_search_reports']) || isset($_GET['result_search_reports'])) {
    $pReport->showResult($output_type, $limit);
}
if ($output_type == Search::HTML_OUTPUT) {
    Html::footer();
}