Admin Tab not working

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
p.ricci

Admin Tab not working

Post by p.ricci »

Hi,
I'm re coding a application with the advantage of CMSMS modules under CMSMS V1.6.7.
On Admin area with the admin user none of the tab can be activate. The display for the tabs is very strange all tab appears but the content is show one under the other. And for the first tab no content is show ??
I have these code for other module and working

Tanks for your help.
Nb: Sorry for my english but is not my mother language.
So there is my code :

Code: Select all

<?php
if (!isset($gCms)) exit;


if (!empty($params['active_tab']))
  $tab = $params['active_tab'];
else
  $tab = 'maillot';

echo $this->StartTabHeaders();


echo $this->SetTabHeader('maillot', $this->Lang('admin_tab_mail'), 'maillot' == $tab ? true : false);

echo $this->SetTabHeader('gabaritList', $this->Lang('admin_tab_gabarit_list'), 'gabaritList' == $tab ? true : false);

echo $this->SetTabHeader('gabaritAdd', $this->Lang('admin_tab_gabarit_add'), 'gabaritAdd' == $tab ? true : false);
echo $this->SetTabHeader('import', $this->Lang('admin_tab_import'), 'import' == $tab ? true : false);
echo $this->SetTabHeader('preference_lot', $this->Lang('admin_tab_preference'), 'preference_lot' == $tab ? true : false);

echo $this->EndTabHeaders();


echo $this->StartTabContent();

echo $this->StartTab('maillot');
echo 'Gabarit mail';
echo $this->EndTab();

?>
alby

Re: Admin Tab not working

Post by alby »

Where is $this->EndTabContent() ?

Alby
p.ricci

Re: Admin Tab not working

Post by p.ricci »

at the end of the code. Just a copy/paste mistake

Code: Select all

echo $this->EndTabContent();
Post Reply

Return to “Developers Discussion”