<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>I have integrated jscalendar-1.0 into RT. I followed the
help files provided with the download and use a small calendar image to click on
and open a flat calendar.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>Here is what I did:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>Add jscalendar files to '/share/html/NoAuth' and add the
appropriate javascript and css links to
'/local/html/Elements/Header'.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>For Example</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>-------</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2><!-- calendar --><BR> <link
rel="stylesheet" type="text/css"
href="<%$RT::WebPath%>/NoAuth/jscalendar/calendar-system.css"
title="calendar-system"><BR> <script language="javascript"
type="text/javascript"
src="<%$RT::WebPath%>/NoAuth/jscalendar/calendar.js"></script><BR>
<script language="javascript" type="text/javascript"
src="<%$RT::WebPath%>/NoAuth/jscalendar/lang/calendar-en.js"></script><BR>
<script language="javascript" type="text/javascript"
src="<%$RT::WebPath%>/NoAuth/jscalendar/calendar-setup.js"></script></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>---------------</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>Use this code for
'/Elements/SelectDate'</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>----------------------------------</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2><INPUT NAME="<%$Name%>" VALUE="<%$Default%>"
size=<%$Size%> id="<%$ID%>"> <BR><img
src="<%$RT::WebPath%>/NoAuth/jscalendar/img.gif"
id="<%$ID%>_trigger" title="Date selector" /></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2><script type="text/javascript"><BR>
Calendar.setup({<BR>
inputField :
"<%$ID%>", // id of the input
field<BR>
ifFormat : "%Y-%m-%d
%H:%M:%S", // format of the input
field<BR>
showsTime :
true, // will
display a time selector<BR>
button :
"<%$ID%>_trigger", // trigger for the calendar (button
ID)<BR> singleClick
:
false, //
double-click mode<BR>
step
:
1
// show all years in drop-down boxes (instead of every other year as
default)<BR> });<BR></script><BR><%init><BR>unless
((defined $Default) or <BR> ($current <= 0)) {<BR> my
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)
=<BR>
localtime($current);<BR> $Default =
sprintf("%04d-%02d-%02d
%02d:%02d",
<BR>
$year+1900,$mon+1,$mday,
<BR>
$hour,$min); <BR>}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>unless ($Name) {<BR> $Name = $menu_prefix.
"_Date";<BR>}<BR></%init></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2><%args></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>$ShowTime =>
undef<BR>$menu_prefix=>''<BR>$current=>time<BR>$Default =>
undef<BR>$Name => undef<BR>$Size => 16<BR>$ID =>
''<BR></%args></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>--------------------------------------</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>Then whenever the 'SelectDate' component is called, add the
appropriate 'Name' and 'ID' arguments. Something like this (from
'/Ticket/Create.html').</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>----------------</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2><& /Elements/SelectDate, Name => 'Due', ID
=>'Due', current => 0, Default => $ARGS{Due} &>
</TD></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>---------------</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=055140219-05012006><FONT face=Arial
color=#000080 size=2>This should get you up and running. It is a very nice
feature that makes it easy to set dates.</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#000080 size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial color=#000080 size=2>** Adam Myers</FONT></DIV>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] <B>On Behalf Of </B>Sam
Crosby<BR><B>Sent:</B> Thursday, January 05, 2006 9:34 AM<BR><B>To:</B>
rt-users@lists.bestpractical.com<BR><B>Subject:</B> [rt-users] Calendar
Widget?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=082513016-05012006><FONT face=Arial size=2>Has anyone
incorporated a calendar widget (such as the java 'jscalendar-1.0') for working
with date fields in the on-line interfaces? Using something like that
would certainly be a welcome enhancement for users...</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>