X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-from_to.html;h=1224de68a7b9a4436dbfbd052c7b0f00cfa8e7b9;hb=b6260b4f39cf34b9e0e5b8560ef88c8881ba0766;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..1224de68a 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' => '2017',
@_,
);
-
-%>
-
-
- 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>