5
In the main windows I open a smaller one with javascript.
Here's a part of the code of the window I open:
require_once "../../mainfile.php";
require_once XOOPS_ROOT_PATH."/class/template.php";
require_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
$xoopsTpl = new XoopsTpl();
global $xoopsDB;
$my_form = new XoopsThemeForm(_SOUS_ENVOYES_WINDOW,"myform",$_SERVER['PHP_SELF']);
$ctrldate = new XoopsFormTextDateSelect(null, "date", null, strtotime($db_date));
$my_form->addElement($ctrldate,true);
$ctrlnobl = new XoopsFormText("Le no bl", "nobl", 15, 15, $db_nobl);
$my_form->addElement($ctrlnobl,true);
$hidden = new XoopsFormHidden("param_op","save");
$my_form->addElement($hidden);
$hidden2 = new XoopsFormHidden("sous_pk",$sous_pk);
$my_form->addElement($hidden2);
$hidden3 = new XoopsFormHidden("exist", $exist);
$my_form->addElement($hidden3);
$send = new XoopsFormButton(null,"save",_SOUS_ENVOYES_BUTTON,"submit");
$my_form->addElement($send);
$my_form->assign($xoopsTpl);
The problem is that I assign $xoopsTpl...
Because if I use ->display I see my form. But I'd need the template (colors and style).
Thanks for your help