Return to Snippet

Revision: 38955
at January 11, 2011 02:35 by krillzip


Updated Code
<?php

if (!isset($gCms)) exit;

$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->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();

?>

Revision: 38954
at January 11, 2011 02:35 by krillzip


Updated Code
<?php

if (!isset($gCms)) exit;

$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->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();

?>

Revision: 38953
at January 11, 2011 02:33 by krillzip


Updated Code
<?php

if (!isset($gCms)) exit;

$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->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();

?>

Revision: 38952
at January 11, 2011 01:28 by krillzip


Initial Code
<?php

if (!isset($gCms)) exit;

$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->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('detail4', $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, with CGExtensions

Initial Title
defaultadmin.php - cge

Initial Tags
module

Initial Language
PHP