$_GET["searchtype"][1] = 'lessthan'; $_GET["contains"][1] = $_GET["date"]; $_GET["link"][2] = 'AND'; $_GET["field"][2] = "4377"; $_GET["searchtype"][2] = 'contains'; $_GET["contains"][2] = 'NULL'; $_GET["link"][3] = 'OR'; $_GET["field"][3] = "4377"; $_GET["searchtype"][3] = 'morethan'; $_GET["contains"][3] = $_GET["date"];*/ if (isset($_GET["resource_ranks_id"]) && $_GET["resource_ranks_id"] != 0) { $_GET["link"][4] = 'AND'; $_GET["field"][4] = "4374"; $_GET["searchtype"][4] = 'equals'; $_GET["contains"][4] = $_GET["resource_ranks_id"]; } } } Search::manageGetValues("PluginResourcesRecap"); $recap->showGenericSearch($_GET); $recap->showMinimalList($_GET); } else { Html::displayRightError(); } if ($_SESSION['glpiactiveprofile']['interface'] == 'central') { Html::footer(); } else { Html::helpFooter(); }
function plugin_resources_dynamicReport($parm) { if ($parm["item_type"] == 'PluginResourcesDirectory') { $PluginResourcesDirectory = new PluginResourcesDirectory(); //$PluginResourcesDirectory->showList($parm); $PluginResourcesDirectory->showMinimalList($parm); return true; } else { if ($parm["item_type"] == 'PluginResourcesRecap') { $PluginResourcesRecap = new PluginResourcesRecap(); $PluginResourcesRecap->showMinimalList($parm); return true; } } return false; }