Hi! all
I was trying the boonex module tutorial and i want to know how to create two or more design box in the admin panel or create a tab menu in the below image in red
I know to create a block this is the code in nameModule.php
$this->_oTemplate->pageStart(); // all the code below will be wrapped by the admin design
$iId = $this->_oDb->getSettingsCategory(); // get our setting category id
if(empty($iId)) { // if category is not found display page not found
echo MsgBox(_t('_sys_request_page_not_found_cpt'));
$this->_oTemplate->pageCodeAdmin (_t('_me_blgg'));
return;
}
bx_import('BxDolAdminSettings'); // import class
$mixedResult = '';
if(isset($_POST['save']) && isset($_POST['cat'])) { // save settings
$oSettings = new BxDolAdminSettings($iId);
$mixedResult = $oSettings->saveChanges($_POST);
}
$oSettings = new BxDolAdminSettings($iId); // get display form code
$sResult = $oSettings->getForm();
if($mixedResult !== true && !empty($mixedResult)) // attach any resulted messages at the form beginning
$sResult = $mixedResult . $sResult;
echo DesignBoxAdmin (_t('_me_blgg'), $sResult); // dsiplay box
$this->_oTemplate->pageCodeAdmin (_t('_me_blgg')); // output is completed, admin page will be displaed here
}
If i add "echo DesignBoxAdmin (_t('_me_blgg'), $sResult);" than this will create a new box but i want to show setting options in it.
Please help me.