예제 #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;
 }