1 % unless ( $m->count == $previous_request_count ) {
2 <LINK REL="stylesheet" TYPE="text/css" HREF="<%$fsurl%>elements/calendar-win2k-2.css" TITLE="win2k-2">
3 <SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar_stripped.js"></SCRIPT>
4 <SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar-en.js"></SCRIPT>
5 <SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar-setup.js"></SCRIPT>
9 <TD ALIGN="right">From date: </TD>
10 <TD><INPUT TYPE="text" NAME="<% $opt{prefix} %>beginning" ID="<% $opt{prefix} %>beginning_text" VALUE="" SIZE=<%$size%> MAXLENGTH=<%$maxlength%>> <IMG SRC="<%$fsurl%>images/calendar.png" ID="<% $opt{prefix} %>beginning_button" STYLE="cursor: pointer" TITLE="Select date"><IMG SRC="<%$fsurl%>images/calendar-disabled.png" ID="<% $opt{prefix} %>beginning_disabled" STYLE="display:none"><BR><i>m/d/y<% $time_hint %></i></TD>
11 <SCRIPT TYPE="text/javascript">
13 inputField: "<% $opt{prefix} %>beginning_text",
14 ifFormat: "%m/%d/%Y<% $time_format %>",
15 button: "<% $opt{prefix} %>beginning_button",
21 % unless ( $opt{layout} =~ /^h/i ) { #horizontal
28 <TD ALIGN="right">To date: </TD>
29 <TD><INPUT TYPE="text" NAME="<% $opt{prefix} %>ending" ID="<% $opt{prefix} %>ending_text" VALUE="" SIZE=<%$size%> MAXLENGTH=<%$maxlength%>> <IMG SRC="<%$fsurl%>images/calendar.png" ID="<% $opt{prefix} %>ending_button" STYLE="cursor: pointer" TITLE="Select date"><IMG SRC="<%$fsurl%>images/calendar-disabled.png" ID="<% $opt{prefix} %>ending_disabled" STYLE="display:none"><BR><i>m/d/y<% $time_hint %></i></TD>
30 <SCRIPT TYPE="text/javascript">
32 inputField: "<% $opt{prefix} %>ending_text",
33 ifFormat: "%m/%d/%Y<% $time_format %>",
34 button: "<% $opt{prefix} %>ending_button",
43 <TD COLSPAN=<% $opt{layout} =~ /^h/i ? 3 : 1 %>>
44 <FONT SIZE="-1">(leave one or both dates blank for an open-ended search)</FONT>
50 my $previous_request_count = '';
57 $opt{prefix} = '' unless defined $opt{prefix};
58 $opt{prefix} .= '_' if $opt{prefix};
60 my( $input_time, $time_format, $time_hint ) = ( '', '', '' );
61 my( $size, $maxlength ) = ( 11, 10 );
62 if ( $opt{'input_time'} ) {
63 $input_time = ', showsTime: true, timeFormat: "12"'; # http://www.dynarch.com/demos/jscalendar/doc/html/reference.html#node_sec_2.3
64 $time_format = ' %k:%M:%S'; # http://www.dynarch.com/demos/jscalendar/doc/html/reference.html#node_sec_5.3.5
65 $time_hint = ' h:m:s';
73 $previous_request_count = $m->count;