Work on multicompany module with smarty integration
This commit is contained in:
parent
4d52c1525e
commit
215fdf93db
@ -62,9 +62,7 @@ if ($_GET["action"] == 'create')
|
|||||||
{
|
{
|
||||||
print_titre($langs->trans("AddNewEntity"));
|
print_titre($langs->trans("AddNewEntity"));
|
||||||
|
|
||||||
$mc->assign_smarty_values($smarty,$_GET["action"]);
|
$template = 'add-entity.tpl';
|
||||||
|
|
||||||
$smarty->display('add-entity.tpl');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -75,9 +73,7 @@ else if ($_GET["action"] == 'edit')
|
|||||||
{
|
{
|
||||||
print_titre($langs->trans("EditEntity"));
|
print_titre($langs->trans("EditEntity"));
|
||||||
|
|
||||||
$mc->assign_smarty_values($smarty,$_GET["action"]);
|
$template = 'edit-entity.tpl';
|
||||||
|
|
||||||
$smarty->display('edit-entity.tpl');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -91,12 +87,13 @@ else
|
|||||||
$mc->getEntities(1);
|
$mc->getEntities(1);
|
||||||
//var_dump($mc->entities);
|
//var_dump($mc->entities);
|
||||||
|
|
||||||
$mc->assign_smarty_values($smarty,$_GET["action"]);
|
$template = 'admin-entity.tpl';
|
||||||
|
|
||||||
$smarty->display('admin-entity.tpl');
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$mc->assign_smarty_values($smarty,$_GET["action"]);
|
||||||
|
$smarty->display($template);
|
||||||
|
|
||||||
|
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooter('$Date$ - $Revision$');
|
||||||
?>
|
?>
|
||||||
Loading…
Reference in New Issue
Block a user