1
Hi,
I'm new to XOOPS and I'm trying to build my first module. I have some display problems with the object XoopsFormTextDateSelect in one of my public pages.
$event_form = new XoopsThemeForm("", "eventform", $action, "post", true);
$event_form->addElement(new XoopsFormText(_EVTMNGR_TITLE, "title", 50, 255, $evt->getVar("title")));
$event_form->addElement(new XoopsFormTextDateSelect(_EVTMNGR_START,'start','15',$evt->getVar("start")));
$event_form->addElement(new XoopsFormTextDateSelect(_EVTMNGR_END,'end','15',$evt->getVar("end")));
// Display
include XOOPS_ROOT_PATH.'/header.php';
$event_form->assign($xoopsTpl);
include XOOPS_ROOT_PATH.'/footer.php';
This is based on the contact us module, my problem is when I'm adding the two XoopsFormTextDateSelect elements, the html code generated is missing all the header and meta data parts and the page is then starting with
<link rel="stylesheet" type="text/css" media="all" href="http://mysite/include/calendar-blue.css" />
<script type="text/javascript" src="http://mysite/include/calendar.js">script>
<script type="text/javascript">
if I comment the two XoopsFormTextDateSelect lines, the page is displayed well. What's wrong ???