Posted By


krillzip on 01/11/11

Tagged


Statistics


Viewed 728 times
Favorited by 1 user(s)

Related snippets


defaultadmin.php - cge


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.