Posted By

krillzip on 01/11/11


Tagged

module skeleton cmsms defaultadmin


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

krillzip


defaultadmin.php - cge


 / Published in: PHP
 

Skeleton for the main panel in a CMSMS module. defaultadmin.php, with CGExtensions

  1. <?php
  2.  
  3. if (!isset($gCms)) exit;
  4.  
  5. $this->SetCurrentTab(isset($params['active_tab'])?$params['active_tab']:'');
  6.  
  7. echo $this->StartTabHeaders();
  8.  
  9. echo $this->SetTabHeader('tab1', $this->Lang('tab_1'));
  10. echo $this->SetTabHeader('tab2', $this->Lang('tab_2'));
  11. echo $this->SetTabHeader('tab3', $this->Lang('tab_3'));
  12. echo $this->SetTabHeader('tab4', $this->Lang('tab_4'));
  13.  
  14. echo $this->EndTabHeaders();
  15.  
  16. echo $this->StartTabContent();
  17.  
  18. echo $this->StartTab('tab1', $params);
  19. include(dirname(__FILE__).'/function.admin_tab1.php');
  20. echo $this->EndTab();
  21.  
  22. echo $this->StartTab('tab2', $params);
  23. include(dirname(__FILE__).'/function.admin_tab2.php');
  24. echo $this->EndTab();
  25.  
  26. echo $this->StartTab('tab3', $params);
  27. include(dirname(__FILE__).'/function.admin_tab3.php');
  28. echo $this->EndTab();
  29.  
  30. echo $this->StartTab('tab4', $params);
  31. include(dirname(__FILE__).'/function.admin_tab4.php');
  32. echo $this->EndTab();
  33.  
  34. echo $this->EndTabContent();
  35.  
  36. ?>

Report this snippet  

You need to login to post a comment.