Ejemplo n.º 1
0
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == __CLASS__) {
         $item->cleanProfile();
         switch ($tabnum) {
             case 2:
                 $item->showFormAsset();
                 break;
             case 3:
                 if ($item->fields['interface'] == 'helpdesk') {
                     $item->showFormTrackingHelpdesk();
                 } else {
                     $item->showFormTracking();
                 }
                 break;
             case 4:
                 if ($item->fields['interface'] == 'helpdesk') {
                     $item->showFormLifeCycleHelpdesk();
                 } else {
                     $item->showFormLifeCycle();
                 }
                 break;
             case 5:
                 $item->showFormManagement();
                 break;
             case 6:
                 if ($item->fields['interface'] == 'helpdesk') {
                     $item->showFormToolsHelpdesk();
                 } else {
                     $item->showFormTools();
                 }
                 break;
             case 7:
                 $item->showFormAdmin();
                 break;
             case 8:
                 $item->showFormSetup();
                 break;
         }
     }
     return true;
 }
Ejemplo n.º 2
0
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == __CLASS__) {
         $item->cleanProfile();
         switch ($tabnum) {
             case 1:
                 $item->showFormHelpdesk();
                 break;
             case 2:
                 $item->showFormInventory();
                 break;
             case 3:
                 $item->showFormTracking();
                 break;
             case 4:
                 $item->showFormLifeCycle();
                 break;
             case 5:
                 $item->showFormAdmin();
                 break;
             case 6:
                 $item->showFormSetup();
                 break;
         }
     }
     return true;
 }