diff options
Diffstat (limited to 'rt/webrt/Elements/dayMenu')
-rwxr-xr-x | rt/webrt/Elements/dayMenu | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/rt/webrt/Elements/dayMenu b/rt/webrt/Elements/dayMenu new file mode 100755 index 000000000..6591b05d2 --- /dev/null +++ b/rt/webrt/Elements/dayMenu @@ -0,0 +1,19 @@ +<%doc>------------------------------------------------------------------- +dayMenu: Display a pulldown menu of days of the month (1 to 31) + +Optional arguments: +$menu_name - Name of menu, defaults to 'day' +$current - Selected day value (1 to 31) +-------------------------------------------------------------------</%doc> + +<select name="<% $menu_name %>"> +<option value="-1">- +% foreach my $day (1..31) { +<option value="<% $day %>" <% $day==$current ? "selected" : "" %>><% sprintf("%02d",$day) %> +% } +</select> + +<%args> +$menu_name=>'day' +$current=>undef +</%args> |