defaultadmin.php - cge
Skeleton for the main panel in a CMSMS module. defaultadmin.php, with CGExtensions
Copy this code and paste it in your HTML
<?php
$this->SetCurrentTab(isset($params['active_tab'])?
$params['active_tab']:'');
echo $this->StartTabHeaders();
echo $this->SetTabHeader('tab1', $this->Lang('tab_1'));
echo $this->SetTabHeader('tab2', $this->Lang('tab_2'));
echo $this->SetTabHeader('tab3', $this->Lang('tab_3'));
echo $this->SetTabHeader('tab4', $this->Lang('tab_4'));
echo $this->EndTabHeaders();
echo $this->StartTabContent();
echo $this->StartTab('tab1', $params);
include(dirname(__FILE__).'/function.admin_tab1.php');
echo $this->StartTab('tab2', $params);
include(dirname(__FILE__).'/function.admin_tab2.php');
echo $this->StartTab('tab3', $params);
include(dirname(__FILE__).'/function.admin_tab3.php');
echo $this->StartTab('tab4', $params);
include(dirname(__FILE__).'/function.admin_tab4.php');
echo $this->EndTabContent();
?>
Report this snippet