1
Why is it that the javascript for calendar appear before the opening html tag? I think it is calendarjs.php that gets written before the opening html tag (even before the dtd). I am using XOOPS version 2.0.5.1. Thanks in advance!
Here is my script:
include "header.php";
$xoopsOption['template_main'] = "grpsched.html";
include XOOPS_ROOT_PATH . "/header.php";
include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
$tform = new XoopsSimpleForm('', 'topform', 'index.php', 'POST');
$calNow = new XoopsFormTextDateSelect('Now', 'DateNow', 15, time());
$tform->addElement($calNow);
$tform->assign($xoopsTpl);
include XOOPS_ROOT_PATH . "/footer.php";
?>
and here is my template:
<{$topform.javascript}>
<form name="<{$topform.name}>" action="<{$topform.action}>" method="<{$topform.method}>" <{$topform.extra}>>
<table>
<{foreach item=element from=$topform.elements}>
<{if $element.hidden != true}>
<tr>
<td><{$element.body}>td>
tr>
<{else}>
<{/if}>
<{/foreach}>
table>
form>