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'; //show list of employment linked with a resource if ($_SESSION['glpiactiveprofile']['interface'] == 'central') { Html::header(PluginResourcesResource::getTypeName(2), '', "plugins", "resources"); } else { Html::helpHeader(PluginResourcesResource::getTypeName(2)); } $recap = new PluginResourcesRecap(); if ($recap->canView() || Session::haveRight("config", "w")) { //if $_GET["employment_professions_id"] exist this show list of resource / employment //by employment rank and profession if (isset($_GET["employment_professions_id"]) && !empty($_GET["employment_professions_id"])) { $_GET["field"][0] = "4373"; $_GET["searchtype"][0] = 'equals'; $_GET["contains"][0] = $_GET["employment_professions_id"]; //depending on the date $_GET["link"][1] = 'AND'; $_GET["field"][1] = "4367"; $_GET["searchtype"][1] = 'lessthan'; $_GET["contains"][1] = $_GET["date"]; $_GET["link"][2] = 'AND'; $_GET["field"][2] = "4368"; $_GET["searchtype"][2] = 'contains';
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; }