Return to Snippet

Revision: 39009
at January 11, 2011 23:14 by krillzip


Initial Code
<?php

if (!isset($gCms))
    exit;

if (false == empty($params['active_tab'])) {
    $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);
    include(dirname(__FILE__) . '/function.admin_tab1.php');
    echo $this->EndTab();

    echo $this->StartTab('tab2', $params);
    include(dirname(__FILE__) . '/function.admin_tab2.php');
    echo $this->EndTab();

    echo $this->StartTab('tab3', $params);
    include(dirname(__FILE__) . '/function.admin_tab3.php');
    echo $this->EndTab();

    echo $this->StartTab('tab4', $params);
    include(dirname(__FILE__) . '/function.admin_tab4.php');
    echo $this->EndTab();

echo $this->EndTabContent();
?>

Initial URL

                                

Initial Description
Skeleton for the main panel in a CMSMS module. defaultadmin.php

Initial Title
defaultadmin.php

Initial Tags
module

Initial Language
PHP