1
tchang
XoopsFormTextDateSelect display problem
  • 2006/4/13 22:43

  • tchang

  • Just popping in

  • Posts: 3

  • Since: 2005/2/2 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"50255$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 ???

Login

Who's Online

521 user(s) are online (417 user(s) are browsing Support Forums)


Members: 0


Guests: 521


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits