Example #1
0
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();
}