% unless ( $m->count == $previous_request_count ) { % } From date: MAXLENGTH=<%$maxlength%>>
m/d/y<% $time_hint %> % unless ( $opt{layout} =~ /^h/i ) { #horizontal % } To date: MAXLENGTH=<%$maxlength%>>
m/d/y<% $time_hint %> > (leave one or both dates blank for an open-ended search) <%once> my $previous_request_count = ''; <%init> my %opt = @_; $opt{prefix} = '' unless defined $opt{prefix}; $opt{prefix} .= '_' if $opt{prefix}; my( $input_time, $time_format, $time_hint ) = ( '', '', '' ); my( $size, $maxlength ) = ( 11, 10 ); if ( $opt{'input_time'} ) { $input_time = ', showsTime: true, timeFormat: "12"'; # http://www.dynarch.com/demos/jscalendar/doc/html/reference.html#node_sec_2.3 $time_format = ' %k:%M:%S'; # http://www.dynarch.com/demos/jscalendar/doc/html/reference.html#node_sec_5.3.5 $time_hint = ' h:m:s'; $size = 21; $maxlength = 27; } <%cleanup> $previous_request_count = $m->count;