static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if (in_array($item->getType(), array('Preference', 'User'))) { $pref = new self(); $user_id = $item->getType() == 'Preference' ? Session::getLoginUserID() : $item->getID(); $pref->showForm($user_id); } return true; }
function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { if ($item->getType() == 'Computer') { return "WinAdminPassword"; } elseif ($item->getType() == 'Printer') { return "WinAdminPassword"; } elseif ($item->getType() == 'NetworkEquipment') { return "WinAdminPassword"; } return ''; }
/** * Fonction native GLPI * @param CommonGLPI $item * @param int $tabnum * @param int $withtemplate * @return boolean */ static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'Computer' || $item->getType() == 'Monitor') { if (Session::haveRightsOr('plugin_reforme_reforme', array(CREATE))) { $reforme = new self(); $ID = $item->getField('id'); $Name = $item->getField('name'); // j'affiche le formulaire $reforme->showForm($ID, $item->getType()); } } }
/** * Display content of tab * * @param CommonGLPI $item * @param integer $tabnum * @param interger $withtemplate * * @return boolean TRUE */ static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'PluginFusioninventoryConfig') { $pfAgentmodule = new self(); $pfAgentmodule->showForm(); } else { if ($item->getType() == 'PluginFusioninventoryAgent') { $pfAgentmodule = new self(); $pfAgentmodule->showFormAgentException($item->getID()); } } return TRUE; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { global $CFG_GLPI; if ($item->getType() == 'User') { $ID = $item->getField('id'); } else { if ($item->getType() == 'Preference') { $ID = Session::getLoginUserID(); } } $self = new self(); $self->showForm($ID); return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { global $CFG_GLPI; if ($item->getType() == 'NotificationMailSetting') { $target = $CFG_GLPI["root_doc"] . "/plugins/additionalalerts/front/config.form.php"; self::showFormAlerts($target); } else { if ($item->getType() == 'Entity') { PluginAdditionalalertsInfocomAlert::showNotificationOptions($item); PluginAdditionalalertsOcsAlert::showNotificationOptions($item); } } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'Config') { $config = new self(); $config->showFormExample(); } }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == __CLASS__) { switch ($tabnum) { case 1: // all Planning::showSelectionForm($_POST['type'], $_POST['date'], 'my', 0, $_POST["limititemtype"]); Planning::showPlanning($_SESSION['glpiID'], $_POST["gID"], $_POST["date"], $_POST["type"], $_POST["limititemtype"]); break; case 2: Planning::showSelectionForm($_POST['type'], $_POST['date'], 'mygroups', 0, $_POST["limititemtype"]); Planning::showPlanning($_SESSION['glpiID'], 'mine', $_POST["date"], $_POST["type"], $_POST["limititemtype"]); break; case 3: Planning::showSelectionForm($_POST['type'], $_POST['date'], 'users', $_POST["uID"], $_POST["limititemtype"]); Planning::showPlanning($_POST['uID'], 0, $_POST["date"], $_POST["type"], $_POST["limititemtype"]); break; case 4: Planning::showSelectionForm($_POST['type'], $_POST['date'], 'groups', $_POST["gID"], $_POST["limititemtype"]); Planning::showPlanning(0, $_POST['gID'], $_POST["date"], $_POST["type"], $_POST["limititemtype"]); break; } } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { global $DB; if ($item->getType() == 'PluginFusioninventoryTask') { $item->showJobLogs(); } }
function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { if ($item->getType() == 'Profile') { return "WinAdminPassword"; } return ''; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { $pflock = new self(); if ($item->getType() == 'PluginFusioninventoryConfig') { echo "<table width='950'>"; echo "<tr>"; echo "<td valign='top' width='33%'>"; $pflock->showFormItemtype('Computer'); echo "</td>"; echo "<td valign='top' width='33%'>"; $pflock->showFormItemtype('Printer'); echo "</td>"; echo "<td valign='top' width='33%'>"; $pflock->showFormItemtype('NetworkEquipment'); echo "</td>"; echo "</tr>"; echo "</table>"; return TRUE; } if ($item->getID() < 1) { $pflock->showForm(Toolbox::getItemTypeFormURL('PluginFusioninventoryLock'), $item->getType()); } else { $pflock->showForm(Toolbox::getItemTypeFormURL('PluginFusioninventoryLock') . '?id=' . $item->getID(), $item->getType(), $item->getID()); } return TRUE; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { $pfRulematchedlog = new self(); if ($tabnum == '0') { if ($item->getID() > 0) { $pfRulematchedlog->showFormAgent($item->getID()); } } else { if ($tabnum == '1') { if ($item->getID() > 0) { $pfRulematchedlog->showForm($item->getID(), $item->getType()); $itemtype = ''; switch (get_class($item)) { case 'Computer': $itemtype = new PluginFusioninventoryInventoryComputerComputer(); break; case 'Printer': $itemtype = new PluginFusioninventoryPrinter(); break; case 'NetworkEquipment': $itemtype = new PluginFusioninventoryNetworkEquipment(); break; } if (is_object($itemtype) && $itemtype->canView()) { $itemtype->displaySerializedInventory($item->getID()); } } } } return TRUE; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == __CLASS__) { $item->showMergeCandidates(); } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum=1, $withtemplate=0) { if ($item->getType()=='Computer') { if (self::canView()) { // Show list filtered on item, sorted on component ascending ... Search::manageGetValues(PluginMonitoringUnavailability::getTypeName()); Search::showList(PluginMonitoringUnavailability::getTypeName(), array( 'field' => array(22), 'searchtype' => array('equals'), 'contains' => array($item->getID()), 'sort' => 3, 'order' => 'DESC' )); return true; } } else if ($item->getType()=='NetworkEquipment') { if (self::canView()) { // Show list filtered on item, sorted on component ascending ... Search::manageGetValues(PluginMonitoringUnavailability::getTypeName()); Search::showList(PluginMonitoringUnavailability::getTypeName(), array( 'field' => array(23), 'searchtype' => array('equals'), 'contains' => array($item->getID()), 'sort' => 3, 'order' => 'DESC' )); return true; } } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == __CLASS__) { self::showDoubles($item); } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'Group') { self::showForGroup($item); } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { $self = new self(); if ($item->getType() == 'PluginResourcesTask') { $self->showItemFromPlugin($item->getID(), $withtemplate); } return true; }
function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { return; if ($item->getType() == 'PluginCustomTab' && $item->canView()) { return Toolbox::ucfirst(_n("Profile", "Profiles", 1)); } return ''; }
/** * Display tab's content for each users * * @static * @param CommonGLPI $item * @param int $tabnum * @param int $withtemplate * @return bool|true */ static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { $config = new PluginMoreticketConfig(); if ($item->getType() == 'Ticket' && $item->fields['status'] == Ticket::CLOSED && $config->closeInformations()) { self::showForTicket($item); } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'Group') { $PluginEscaladeGroup_Group = new PluginEscaladeGroup_Group(); $PluginEscaladeGroup_Group->manageGroup($item->getID()); } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { global $CFG_GLPI; if ($item->getType() == 'Supplier') { PluginWebapplicationsWebapplication_Item::showForSupplier($item); } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { $config = PluginOrderConfig::getConfig(); if ($item->getType() == "DocumentCategory" && $config->canRenameDocuments()) { self::showForDocumentCategory($item); } return true; }
function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { // can exists for template if ($item->getType() == 'PluginMonitoringServicescatalog' && $item->getID() > 0) { return self::createTabEntry(self::getTypeName(2), 0); } return ''; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if (in_array($item->getType(), self::getTypes(true))) { self::showInformationsForm(get_class($item), $item->getID()); PluginManufacturersimportsModel::showForm(get_class($item), $item->getID()); } return true; }
/** * Display content of tab * * @param CommonGLPI $item * @param integer $tabnum * @param interger $withtemplate * * @return boolean TRUE */ static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'Ticket') { $peTicketCopy = new self(); $peTicketCopy->showForm($item); } return TRUE; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { $self = new self(); if (in_array($item->getType(), self::getTypes(true))) { self::showForm(get_class($item), $item->getField('id')); } return true; }
/** * Display content for each users * * @static * @param CommonGLPI $item * @param int $tabnum * @param int $withtemplate * @return bool|true */ static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { $field = new self(); if ($item->getType() == 'User') { $field->showForUser($item); } return true; }
/** * Display content of tab * * @param CommonGLPI $item * @param integer $tabnum * @param interger $withtemplate * * @return boolean TRUE */ static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'PluginSurveyticketSurvey') { $psTicketTemplate = new self(); $psTicketTemplate->showTicketTemplate($item->getID()); } return TRUE; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'Supplier') { $self = new self(); $self->showPluginFromSupplier($item->getField('id')); } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'PluginResourcesResource') { $self = new self(); $self->showItemHelpdesk($item->getField('id'), 0, $withtemplate); } return true; }