diff options
author | ivan <ivan> | 2006-09-04 20:05:58 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-09-04 20:05:58 +0000 |
commit | b9dea1e88a8a13a0d206e23ee5c864a0be813030 (patch) | |
tree | 54b05c4a8bfecf699b24a96bfec226d7235d77ee /httemplate/elements/tr-input-beginning_ending.html | |
parent | 4b4f61a65ed9780bc9eca211d2bd8fd57173e945 (diff) |
allow time selection in RADIUS searches and grid-ize the resulting table
Diffstat (limited to 'httemplate/elements/tr-input-beginning_ending.html')
-rw-r--r-- | httemplate/elements/tr-input-beginning_ending.html | 22 |
1 files changed, 18 insertions, 4 deletions
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 @@ <TR> <TD ALIGN="right">From: </TD> - <TD><INPUT TYPE="text" NAME="beginning" ID="beginning_text" VALUE="" SIZE=11 MAXLENGTH=10> <IMG SRC="../images/calendar.png" ID="beginning_button" STYLE="cursor: pointer" TITLE="Select date"><BR><i>m/d/y</i></TD> + <TD><INPUT TYPE="text" NAME="beginning" ID="beginning_text" VALUE="" SIZE=<%$size%> MAXLENGTH=<%$maxlength%>> <IMG SRC="../images/calendar.png" ID="beginning_button" STYLE="cursor: pointer" TITLE="Select date"><BR><i>m/d/y<% $time_hint %></i></TD> <SCRIPT TYPE="text/javascript"> Calendar.setup({ inputField: "beginning_text", - ifFormat: "%m/%d/%Y", + ifFormat: "%m/%d/%Y<% $time_format %>", button: "beginning_button", align: "BR" + <% $input_time %> }); </SCRIPT> </TR> <TR> <TD ALIGN="right">To: </TD> - <TD><INPUT TYPE="text" NAME="ending" ID="ending_text" VALUE="" SIZE=11 MAXLENGTH=10> <IMG SRC="../images/calendar.png" ID="ending_button" STYLE="cursor: pointer" TITLE="Select date"><BR><i>m/d/y</i></TD> + <TD><INPUT TYPE="text" NAME="ending" ID="ending_text" VALUE="" SIZE=<%$size%> MAXLENGTH=<%$maxlength%>> <IMG SRC="../images/calendar.png" ID="ending_button" STYLE="cursor: pointer" TITLE="Select date"><BR><i>m/d/y<% $time_hint %></i></TD> <SCRIPT TYPE="text/javascript"> Calendar.setup({ inputField: "ending_text", - ifFormat: "%m/%d/%Y", + ifFormat: "%m/%d/%Y<% $time_format %>", button: "ending_button", align: "BR" + <% $input_time %> }); </SCRIPT> </TR> @@ -37,3 +39,15 @@ </TD> </TR> +<%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; +} +</%init> |