From b9dea1e88a8a13a0d206e23ee5c864a0be813030 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 4 Sep 2006 20:05:58 +0000 Subject: allow time selection in RADIUS searches and grid-ize the resulting table --- httemplate/elements/tr-input-beginning_ending.html | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'httemplate/elements') diff --git a/httemplate/elements/tr-input-beginning_ending.html b/httemplate/elements/tr-input-beginning_ending.html index 9fa936bca..a8ab6ed10 100644 --- a/httemplate/elements/tr-input-beginning_ending.html +++ b/httemplate/elements/tr-input-beginning_ending.html @@ -6,26 +6,28 @@ From: -
m/d/y + MAXLENGTH=<%$maxlength%>>
m/d/y<% $time_hint %> To: -
m/d/y + MAXLENGTH=<%$maxlength%>>
m/d/y<% $time_hint %> @@ -37,3 +39,15 @@ +<%init> +my %opt = @_; +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; +} + -- cgit v1.2.1