/ Published in: PHP
Skeleton for the main panel in a CMSMS module. defaultadmin.php
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php exit; $tab = $params['active_tab']; } else { $tab = ''; } echo $this->StartTabHeaders(); echo $this->SetTabHeader('tab1', $this->Lang('tab_1'), ('tab1' == $tab) ? true : false); echo $this->SetTabHeader('tab2', $this->Lang('tab_2'), ('tab2' == $tab) ? true : false); echo $this->SetTabHeader('tab3', $this->Lang('tab_3'), ('tab3' == $tab) ? true : false); echo $this->SetTabHeader('tab4', $this->Lang('tab_4'), ('tab4' == $tab) ? true : false); echo $this->EndTabHeaders(); echo $this->StartTabContent(); echo $this->StartTab('tab1', $params); echo $this->EndTab(); echo $this->StartTab('tab2', $params); echo $this->EndTab(); echo $this->StartTab('tab3', $params); echo $this->EndTab(); echo $this->StartTab('tab4', $params); echo $this->EndTab(); echo $this->EndTabContent(); ?>