if (!isset($_POST["withtemplate"])) { $_POST["withtemplate"] = ""; } checkRight("software", "r"); $license = new SoftwareLicense(); if ($_POST["id"] > 0 && $license->can($_POST["id"], 'r')) { switch ($_REQUEST['glpi_tab']) { case -1: Infocom::showForItem($license); Document::showAssociated($license); Plugin::displayAction($license, $_REQUEST['glpi_tab']); break; case 2: Computer_SoftwareLicense::showForLicense($license); break; case 4: Infocom::showForItem($license); break; case 5: Document::showAssociated($license); break; case 12: Log::showForItem($license); break; default: if (!Plugin::displayAction($license, $_REQUEST['glpi_tab'])) { Computer_SoftwareLicense::showForLicenseByEntity($license); } } } ajaxFooter();