X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-from_to.html;h=100381234184730631f30cc0990e5d7ef8db857b;hp=d7e5a8337d0541c5afc628028f2805b9af3b64d7;hb=c3da5cf1caa244937d280e0f406927103beef148;hpb=e65c6a26ca778166aec2b2d1dd3012ab84fa611a diff --git a/httemplate/elements/tr-select-from_to.html b/httemplate/elements/tr-select-from_to.html index d7e5a8337..100381234 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 @@ -21,31 +42,4 @@ 'end_year' => '2012', #haha, well... @_, ); - -%> - - - 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, - ) - %> - - +