X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Felements%2Ftr-select-from_to.html;h=7ea2307c28ec93f8779c4750e594c27d3bc891a0;hb=f1c2b39355e0f78a6e90a107144210993d2e5f8c;hp=d7e5a8337d0541c5afc628028f2805b9af3b64d7;hpb=e65c6a26ca778166aec2b2d1dd3012ab84fa611a;p=freeside.git
diff --git a/httemplate/elements/tr-select-from_to.html b/httemplate/elements/tr-select-from_to.html
index d7e5a8337..7ea2307c2 100644
--- a/httemplate/elements/tr-select-from_to.html
+++ b/httemplate/elements/tr-select-from_to.html
@@ -1,6 +1,27 @@
-<%
+
+ <% mt('From: ') |h %> |
+
+ <& /elements/select-month_year.html,
+ 'prefix' => 'start',
+ 'selected_mon' => $smonth,
+ 'selected_year' => $syear,
+ %hash,
+ &>
+ |
+
- #my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
+
+ <% mt('To: ') |h %> |
+
+ <& /elements/select-month_year.html,
+ 'prefix' => 'end',
+ 'selected_mon' => $emonth,
+ 'selected_year' => $eyear,
+ %hash,
+ &>
+ |
+
+<%init>
my ($curmon,$curyear) = (localtime(time))[4,5];
#find first month
@@ -18,34 +39,7 @@
my %hash = (
'show_month_abbr' => 1,
'start_year' => '1999',
- 'end_year' => '2012', #haha, well...
+ 'end_year' => '2020', #and that's really the end of the line for 3.x
@_,
);
-
-%>
-
-
- From: |
-
- <%= include('/elements/select-month_year.html',
- 'prefix' => 'start',
- 'selected_mon' => $smonth,
- 'selected_year' => $syear,
- %hash,
- )
- %>
- |
-
-
-
- To: |
-
- <%= include('/elements/select-month_year.html',
- 'prefix' => 'end',
- 'selected_mon' => $emonth,
- 'selected_year' => $eyear,
- %hash,
- )
- %>
- |
-
+%init>