stray closing /TABLE in the no-ticket case
[freeside.git] / httemplate / elements / tr-select-from_to.html
index d7e5a83..1224de6 100644 (file)
@@ -1,6 +1,27 @@
-<%
+<TR>
+  <TD ALIGN="right"><% mt('From: ') |h %></TD>
+  <TD>
+    <& /elements/select-month_year.html,
+                  'prefix'        => 'start',
+                  'selected_mon'  => $smonth,
+                  'selected_year' => $syear,
+                  %hash,
+    &>
+  </TD>
+</TR>
 
-  #my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
+<TR>
+  <TD ALIGN="right"><% mt('To: ') |h %></TD>
+  <TD>
+    <& /elements/select-month_year.html,
+                  'prefix'        => 'end',
+                  'selected_mon'  => $emonth,
+                  'selected_year' => $eyear,
+                  %hash,
+    &>
+  </TD>
+</TR>
+<%init>
   my ($curmon,$curyear) = (localtime(time))[4,5];
   
   #find first month
   my %hash = (
     'show_month_abbr' => 1,
     'start_year'      => '1999',
-    'end_year'        => '2012', #haha, well...
+    'end_year'        => '2017',
      @_,
   );
-
-%>
-
-<TR>
-  <TD ALIGN="right">From: </TD>
-  <TD>
-    <%= include('/elements/select-month_year.html',
-                  'prefix'        => 'start',
-                  'selected_mon'  => $smonth,
-                  'selected_year' => $syear,
-                  %hash,
-               )
-    %>
-  </TD>
-</TR>
-
-<TR>
-  <TD ALIGN="right">To: </TD>
-  <TD>
-    <%= include('/elements/select-month_year.html',
-                  'prefix'        => 'end',
-                  'selected_mon'  => $emonth,
-                  'selected_year' => $eyear,
-                  %hash,
-               )
-    %>
-  </TD>
-</TR>
+</%init>