% if ( $link eq 'popup' ) {
- <% include('/elements/header-popup.html', $title ) %>
+ <& /elements/header-popup.html, $title &>
% } else {
- <% include("/elements/header.html", $title, '') %>
+ <& /elements/header.html, $title, '' &>
% }
-<% include('/elements/init_calendar.html') %>
+<& /elements/init_calendar.html &>
-<% include('/elements/error.html') %>
+<& /elements/error.html &>
% unless ( $link eq 'popup' ) {
<% small_custview($custnum, $conf->config('countrydefault')) %>
<BR><BR>
-Payment
+<% mt('Payment') |h %>
<% ntable("#cccccc", 2) %>
<TR>
- <TD ALIGN="right">Date</TD>
+ <TD ALIGN="right"><% mt('Date') |h %></TD>
<TD COLSPAN=2>
<INPUT TYPE="text" NAME="_date" ID="_date_text" VALUE="<% time2str($date_format.' %r',$_date) %>">
- <IMG SRC="../images/calendar.png" ID="_date_button" STYLE="cursor: pointer" TITLE="Select date">
+ <IMG SRC="../images/calendar.png" ID="_date_button" STYLE="cursor: pointer" TITLE="<% mt('Select date') |h %>">
</TD>
</TR>
</SCRIPT>
<TR>
- <TD ALIGN="right">Amount</TD>
+ <TD ALIGN="right"><% mt('Amount') |h %></TD>
<TD BGCOLOR="#ffffff" ALIGN="right"><% $money_char %></TD>
<TD><INPUT TYPE="text" NAME="paid" VALUE="<% $paid %>" SIZE=8 MAXLENGTH=9> by <B><% FS::payby->payname($payby) %></B></TD>
</TR>
- <% include('/elements/tr-select-discount_term.html',
+ <& /elements/tr-select-discount_term.html,
'custnum' => $custnum,
'cgi' => $cgi
- )
- %>
+ &>
% if ( $payby eq 'BILL' ) {
<TR>
- <TD ALIGN="right">Check #</TD>
+ <TD ALIGN="right"><% mt('Check #') |h %></TD>
<TD COLSPAN=2><INPUT TYPE="text" NAME="payinfo" VALUE="<% $payinfo %>" SIZE=10></TD>
</TR>
% }
<TR>
% if ( $link eq 'custnum' || $link eq 'popup' ) {
- <TD ALIGN="right">Auto-apply<BR>to invoices</TD>
+ <TD ALIGN="right"><% mt('Auto-apply to invoices') |h %></TD>
<TD COLSPAN=2>
<SELECT NAME="apply">
- <OPTION VALUE="yes" SELECTED>yes
- <OPTION>no</SELECT>
+ <OPTION VALUE="yes" SELECTED><% mt('yes') |h %>
+ <OPTION><% mt('no') |h %></SELECT>
</TD>
% } elsif ( $link eq 'invnum' ) {
- <TD ALIGN="right">Apply to</TD>
+ <TD ALIGN="right"><% mt('Apply to') |h %></TD>
<TD COLSPAN=2 BGCOLOR="#ffffff">Invoice #<B><% $linknum %></B> only</TD>
<INPUT TYPE="hidden" NAME="apply" VALUE="no">
</TR>
% if ( $conf->exists('pkg-balances') ) {
- <% include('/elements/tr-select-cust_pkg-balances.html',
+ <& /elements/tr-select-cust_pkg-balances.html,
'custnum' => $custnum,
'cgi' => $cgi
- )
- %>
+ &>
% } else {
<INPUT TYPE="hidden" NAME="pkgnum" VALUE="">
% }
</TABLE>
<BR>
-<INPUT TYPE="submit" VALUE="Post payment">
+<INPUT TYPE="submit" VALUE="<% mt('Post payment') |h %>">
</FORM>
</BODY>
</HTML>
% } else {
- <% include('/elements/footer.html') %>
+ <& /elements/footer.html &>
% }
<%init>
my $paybatch = "webui-$_date-$$-". rand() * 2**32;
-my $title = 'Post '. FS::payby->payname($payby). ' payment';
-$title .= " against Invoice #$linknum" if $link eq 'invnum';
+my $title = emt('Post '. FS::payby->payname($payby). ' payment');
+$title .= emt(" against Invoice #[_1]",$linknum) if $link eq 'invnum';
my $custnum;
if ( $link eq 'invnum' ) {
-<% include("/elements/header-popup.html", 'One-time charge', '',
+<& /elements/header-popup.html, emt('One-time charge'), '',
( $cgi->param('error') ? '' : 'onload="addRow()"' ),
- )
-%>
+&>
<LINK REL="stylesheet" TYPE="text/css" HREF="<%$fsurl%>elements/calendar-win2k-2.css" TITLE="win2k-2">
<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar_stripped.js"></SCRIPT>
<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar-en.js"></SCRIPT>
<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar-setup.js"></SCRIPT>
-<% include('/elements/error.html') %>
+<& /elements/error.html &>
<SCRIPT TYPE="text/javascript">
<TABLE ID="QuickChargeTable" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0 STYLE="background-color: #cccccc">
<TR>
- <TD ALIGN="right">Amount </TD>
+ <TD ALIGN="right"><% mt('Amount') |h %> </TD>
<TD>
- $<INPUT TYPE="text" NAME="amount" SIZE=6 VALUE="<% $amount %>" onChange="enable_quick_charge()" onKeyPress="enable_quick_charge()">
+ <% $money_char %><INPUT TYPE="text" NAME="amount" SIZE=6 VALUE="<% $amount %>" onChange="enable_quick_charge()" onKeyPress="enable_quick_charge()">
</TD>
</TR>
% if ( $conf->exists('invoice-unitprice') ) {
<TR>
- <TD ALIGN="right">Quantity </TD>
+ <TD ALIGN="right"><% mt('Quantity') |h %> </TD>
<TD>
<INPUT TYPE="text" NAME="quantity" SIZE=4 VALUE="<% $quantity %>">
</TD>
</TR>
% }
-<% include('/elements/tr-select-pkg_class.html', 'curr_value' => $cgi->param('classnum') ) %>
+<& /elements/tr-select-pkg_class.html, 'curr_value' => $cgi->param('classnum') &>
<TR>
- <TD ALIGN="right">Invoice now</TD>
+ <TD ALIGN="right"><% mt('Invoice now') |h %></TD>
<TD>
<INPUT TYPE = "checkbox"
NAME = "bill_now"
<% $cgi->param('bill_now') ? 'CHECKED' : '' %>
onChange = "bill_now_changed(this);"
>
- with terms
- <% include('/elements/select-terms.html',
+ <% mt('with terms') |h %>
+ <& /elements/select-terms.html,
'curr_value' => scalar($cgi->param('invoice_terms')),
'empty_value' => $default_terms,
'disabled' => ( $cgi->param('bill_now') ? 0 : 1 ),
- )
- %>
+ &>
</TD>
</TR>
%# false laziness w/misc/order_pkg.html
<TR>
- <TD ALIGN="right">Charge date </TD>
+ <TD ALIGN="right"><% mt('Charge date') |h %> </TD>
<TD>
<INPUT TYPE = "text"
NAME = "start_date"
>
<IMG SRC = "<%$fsurl%>images/calendar.png"
ID = "start_date_button"
- TITLE = "Select date"
+ TITLE = "<% mt('Select date') |h %>"
STYLE = "cursor:pointer<% $cgi->param('bill_now') ? ';display:none' : '' %>"
>
<IMG SRC = "<%$fsurl%>images/calendar-disabled.png"
ID = "start_date_button_disabled"
<% $cgi->param('bill_now') ? '' : 'STYLE="display:none"' %>
>
- <FONT SIZE=-1>(leave blank to charge immediately)</FONT>
+ <FONT SIZE=-1>(<% mt('leave blank to charge immediately') |h %>)</FONT>
</TD>
</TR>
% if ( $cust_main->payby =~ /^(CARD|CHEK)$/ ) {
% my $what = lc(FS::payby->shortname($cust_main->payby));
<TR>
- <TD ALIGN="right">Disable automatic <% $what %> charge </TD>
+ <TD ALIGN="right"><% mt('Disable automatic $what charge') |h %> </TD>
<TD COLSPAN=6><INPUT TYPE="checkbox" NAME="no_auto" VALUE="Y"></TD>
</TR>
% }
<TR>
- <TD ALIGN="right">Tax exempt </TD>
+ <TD ALIGN="right"><% mt('Tax exempt') |h %> </TD>
<TD><INPUT TYPE="checkbox" NAME="setuptax" VALUE="Y" <% $cgi->param('setuptax') ? 'CHECKED' : '' %>></TD>
</TR>
-<% include('/elements/tr-select-taxclass.html', 'curr_value' => $cgi->param('taxclass') ) %>
+<& /elements/tr-select-taxclass.html, 'curr_value' => $cgi->param('taxclass') &>
-<% include('/elements/tr-select-taxproduct.html', 'label' => 'Tax product', 'onclick' => 'parent.taxproductmagic(this);', 'curr_value' => $cgi->param('taxproductnum') ) %>
+<& /elements/tr-select-taxproduct.html, 'label' => emt('Tax product'), 'onclick' => 'parent.taxproductmagic(this);', 'curr_value' => $cgi->param('taxproductnum') &>
-<% include('/elements/tr-select-taxoverride.html', 'onclick' => 'parent.taxoverridemagic(this);', 'curr_value' => $cgi->param('tax_override') ) %>
+<& /elements/tr-select-taxoverride.html, 'onclick' => 'parent.taxoverridemagic(this);', 'curr_value' => $cgi->param('tax_override') &>
<TR>
- <TD ALIGN="right">Description </TD>
+ <TD ALIGN="right"><% mt('Description') |h %> </TD>
<TD>
<INPUT TYPE="text" NAME="pkg" SIZE="50" MAXLENGTH="50" VALUE="<% $pkg %>" onChange="enable_quick_charge()" onKeyPress="enable_quick_charge()">
</TD>
<TR>
<TD></TD>
- <TD><FONT SIZE="-1">Optional additional description (also printed on invoice): </FONT></TD>
+ <TD><FONT SIZE="-1"><% mt('Optional additional description (also printed on invoice):') |h %> </FONT></TD>
</TR>
% my $row = 0;
</TABLE>
<BR>
-<INPUT TYPE="submit" ID="submit" NAME="submit" VALUE="Add one-time charge" <% $cgi->param('error') ? '' :' DISABLED' %>>
+<INPUT TYPE="submit" ID="submit" NAME="submit" VALUE="<% mt('Add one-time charge') |h %>" <% $cgi->param('error') ? '' :' DISABLED' %>>
</FORM>
my $conf = new FS::Conf;
my $date_format = $conf->config('date_format') || '%m/%d/%Y';
+my $money_char = $conf->config('money_char') || '$';
$cgi->param('custnum') =~ /^(\d+)$/ or die 'illegal custnum';
my $custnum = $1;
my $default_terms;
if ( $cust_main->invoice_terms ) {
- $default_terms = 'Customer default ('. $cust_main->invoice_terms. ')';
+ $default_terms = emt("Customer default ([_1])", $cust_main->invoice_terms);
} else {
- $default_terms =
- 'Default ('.
- ($conf->config('invoice_default_terms') || 'Payable upon receipt').
- ')';
+ $default_terms = emt("Default ([_1])",
+ ($conf->config('invoice_default_terms') || emt('Payable upon receipt'))
+ );
}
</%init>
-<% include('/elements/header.html', "$action $svc account") %>
+<& /elements/header.html, "$action $svc account" &>
<% include('/elements/error.html') %>
% my $fs_popup = include( '/elements/popup_link_onclick.html',
% 'action' => $fsurl.'docs/about.html',
-% 'label' => 'Freeside',
+% 'label' => emt('Freeside'),
% 'style' => 'color:#999999',
-% 'actionlabel' => 'About',
+% 'actionlabel' => emt('About'),
% 'width' => 300,
% 'height' => 360,
% 'color' => '#7e0079',
% my( $subhtml, $submenuname ) = submenu($url_or_submenu, $item);
<% $subhtml |n %>
- myBar.add(new WebFXMenuButton("<% $item %>", null, "<% $tooltip %>", <% $submenuname |n %> ));
+ myBar.add(new WebFXMenuButton("<% emt($item) %>", null, "<% emt($tooltip) %>", <% $submenuname |n %> ));
% } else {
- myBar.add(new WebFXMenuButton("<% $item %>", "<% $url_or_submenu %>", "<% $tooltip %>" ));
+ myBar.add(new WebFXMenuButton("<% emt($item) %>", "<% $url_or_submenu %>", "<% emt($tooltip) %>" ));
% }
% } #foreach $item
'Payments from CSV file' => [ $fsurl.'misc/cust_pay-import.cgi', '' ],
'Phone numbers (DIDs)' => [ $fsurl.'misc/phone_avail-import.html', '' ],
'Call Detail Records (CDRs)' => [ $fsurl.'misc/cdr-import.html', '' ],
-# 'Import call rates and regions' => [ $fsurl.'misc/rate-import.html', '' ],
;
if ( $conf->exists('enable_taxproducts') ) {
if ( $conf->exists('taxdatadirectdownload') ) {
'Download database dump' => [ $fsurl. 'misc/dump.cgi', '' ],
;
-# <!-- <BR>View active NAS ports:
-# <A HREF="browse/nas.cgi">session server</A> -->
-# <!-- or <A HREF="browse/nas-sqlradius.cgi">RADIUS</A>
-# <BR> -->
-
tie my %tools_ticketing, 'Tie::IxHash',
'Offline' => [ $fsurl.'rt/Tools/Offline.html', '' ],
'My Day' => [ $fsurl.'rt/Tools/MyDay.html', '' ],