test page

Testing forum

Search

Subject User Views Replies Rating Date

Testing weblog

Search

News messages

In this collaboration system are news messages wich you can show on your front page with a SQL report. We added the next piece of code to the'Post Form Template' to add an extra date parameter as userDefined1.

		<tr>
<td>Date:</td>
<td><tmpl_var userDefined1.form>
<script type="text/javascript">

Calendar.setup({
inputField : "userDefined1_formId",
ifFormat : "%d %B %Y",
showsTime : true,
step : 1,
timeFormat : "12",
firstDay : 0
});
</script>
</td>

</tr>

and in the 'Head block' of the 'Post Form Template':

<link href="/extras/calendar/calendar-win2k-1.css" rel="stylesheet" media="all" type="text/css"/>
<script src="/extras/calendar/calendar.js" type="text/javascript"></script>
<script src="/extras/calendar/lang/calendar-en.js" type="text/javascript"></script>
<script src="/extras/calendar/calendar-setup.js" type="text/javascript"></script>

Search