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'; //show list of users linked with a resource if ($_SESSION['glpiactiveprofile']['interface'] == 'central') { Html::header(PluginResourcesResource::getTypeName(2), '', "plugins", "resources"); } else { Html::helpHeader(PluginResourcesResource::getTypeName(2)); } $directory = new PluginResourcesDirectory(); if ($directory->canView() || Session::haveRight("config", "w")) { if (empty($_GET["sort"])) { $_GET["sort"] = "34"; } if (empty($_GET["order"])) { $_GET["order"] = "ASC"; } Search::manageGetValues("PluginResourcesDirectory"); $directory->showGenericSearch($_GET); $directory->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; }