samechanged(document.getElementById('same'));
</SCRIPT>
-<BR>
-
<& cust_main/contacts_new.html, 'cust_main'=>$cust_main, &>
%# billing info
<BR><FONT CLASS="fsinnerbox-title"><% mt('Billing information') |h %></FONT>
- <% &ntable("#cccccc") %>
+ <TABLE CLASS="fsinnerbox">
% my $curuser = $FS::CurrentUser::CurrentUser;
% #escape $exempt_group for NAME etc.
% my $checked = ($cust_main_exemption || $cgi->param("tax_$exempt_group"));
<TR>
- <TD> <INPUT TYPE="checkbox" NAME="tax_<% $exempt_group %>" ID="tax_<% $exempt_group %>" VALUE="Y" <% $checked ? 'CHECKED' : '' %> onChange="tax_changed(this)"> Tax Exempt (<% $exempt_group %> taxes)</TD>
+ <TD STYLE="white-space:nowrap"> <INPUT TYPE="checkbox" NAME="tax_<% $exempt_group %>" ID="tax_<% $exempt_group %>" VALUE="Y" <% $checked ? 'CHECKED' : '' %> onChange="tax_changed(this)"> Tax Exempt (<% $exempt_group %> taxes)</TD>
<TD> - Exemption number <INPUT TYPE="text" NAME="tax_<% $exempt_group %>_num" ID="tax_<% $exempt_group %>_num" VALUE="<% $cgi->param("tax_$exempt_group".'_num') || ( $cust_main_exemption ? $cust_main_exemption->exempt_number : '' ) |h %>" <% $checked ? '' : 'DISABLED' %>></TD>
</TR>
% }
% unless ( $conf->exists('cust-email-high-visibility')) {
<TR>
- <TD ALIGN="right" WIDTH="200">
+ <TH ALIGN="right" WIDTH="200">
<% $conf->exists('cust_main-require_invoicing_list_email', $agentnum)
? $r : '' %>Email address(es)
</TD>
( $cust_main->message_noemail eq 'Y' )
? 'CHECKED'
: ''
- %>> <% emt('Do not send notices') %>
+ %>> <FONT SIZE="-1"><% emt('Do not send notices') %></FONT>
</TD>
</TR>
% }
% if ( $conf->exists('cust_main-select-prorate_day') ) {
<TR>
- <TD ALIGN="right" WIDTH="200"><% mt('Prorate day (1-28)') |h %> </TD>
+ <TH ALIGN="right" WIDTH="200"><% mt('Prorate day (1-28)') |h %> </TD>
<TD>
<INPUT TYPE="text" NAME="prorate_day" VALUE="<% $cust_main->prorate_day %>" SIZE=3 MAXLENGTH=2>
</TD>
% ###
<TR>
- <TD ALIGN="right" WIDTH="200"><% mt('Charge card/e-check on this day of the month') |h %> </TD>
+ <TH ALIGN="right" WIDTH="200"><% mt('Charge card/e-check on this day of the month') |h %> </TD>
<TD>
<SELECT NAME="billday">
<% billday_options($cust_main->billday) %>
% ###
<TR>
- <TD ALIGN="right" WIDTH="200"><% mt('Invoice terms') |h %> </TD>
+ <TH ALIGN="right" WIDTH="200"><% mt('Invoice terms') |h %> </TD>
<TD WIDTH="408">
<& /elements/select-terms.html,
'curr_value' => $cust_main->invoice_terms,
% ###
<TR>
- <TD ALIGN="right" WIDTH="200"><% mt('Credit limit') |h %> </TD>
+ <TH ALIGN="right" WIDTH="200"><% mt('Credit limit') |h %> </TD>
<TD WIDTH="408">
<SCRIPT TYPE="text/javascript">
function toggle(obj) {
VALUE = 1
onClick="toggle(this)"
<% length($cust_main->credit_limit) ? '' : ' CHECKED'%>
- > <% $default_credit_limit
+ > <FONT SIZE="-1" COLOR="#333333">
+ <% $default_credit_limit
? "Default ($money_char". sprintf("%.2f", $default_credit_limit).
")"
: mt('Unlimited')
|h
- %>
+ %>
+ </FONT>
</TD>
</TR>
% if ( $show_term || $cust_main->cdr_termination_percentage ) {
<TR>
- <TD ALIGN="right"><% mt('CDR termination settlement') |h %></TD>
+ <TH ALIGN="right"><% mt('CDR termination settlement') |h %></TD>
<TD><INPUT TYPE = "text"
NAME = "cdr_termination_percentage"
SIZE = 6
<DIV ID="contacts_div" STYLE="display:<% $display %>">
+<BR>
<FONT CLASS="fsinnerbox-title">Contacts</FONT>
<% include('/edit/elements/edit.html',
- 'embed' => $opt{cust_main},
- 'table' => 'cust_main',
- 'labels' => { 'contactnum' => '', #'Contact',
- #'locationnum' => ' ',
- },
- 'fields' => [
+ 'embed' => $opt{cust_main},
+ 'table' => 'cust_main',
+ 'agent_virt' => 1,
+ 'html_table_class' => 'fsinnerbox',
+ 'labels' => { 'contactnum' => '', #'Contact',
+ #'locationnum' => ' ',
+ },
+ 'fields' => [
{ 'field' => 'contactnum',
'type' => 'contact',
'colspan' => 6,
'm2_error_callback' => $m2_error_callback,
},
],
- 'agent_virt' => 1,
)
%>
</DIV>
<% include('/edit/elements/edit.html',
- 'embed' => $opt{cust_main},
- 'tablenum' => 1,
- 'table' => 'cust_main',
- 'labels' => { 'custpaybynum' => '',
- #'locationnum' => ' ',
- },
- 'fields' => [
+ 'embed' => $opt{cust_main},
+ 'tablenum' => 1,
+ 'table' => 'cust_main',
+ 'agent_virt' => 1,
+ 'html_table_class' => 'fsinnerbox',
+ 'labels' => { 'custpaybynum' => '',
+ #'locationnum' => ' ',
+ },
+ 'fields' => [
{ 'field' => 'custpaybynum',
'type' => 'cust_payby',
'colspan' => 6,
'm2_error_callback' => $m2_error_callback,
},
],
- 'agent_virt' => 1,
)
%>
</DIV>
<BR>
<FONT CLASS="fsinnerbox-title"><% mt('First package') |h %></FONT>
- <% ntable("#cccccc") %>
+ <TABLE BORDER=0 CELLSPACING=0>
<TR>
<TD COLSPAN=2>
-<% ntable("#cccccc") %>
+<TABLE CLASS="fsinnerbox">
<TR>
- <TD ALIGN="right"><% mt('Username') |h %></TD>
+ <TH ALIGN="right"><% mt('Username') |h %></TD>
<TD>
<INPUT TYPE = "text"
NAME = "username"
</TR>
<TR>
- <TD ALIGN="right"><% mt('Domain') |h %></TD>
+ <TH ALIGN="right"><% mt('Domain') |h %></TD>
<TD>
<SELECT NAME="domsvc">
<OPTION>(<% mt('none') |h %>)</OPTION>
</TR>
<TR>
- <TD ALIGN="right"><% mt('Password') |h %></TD>
+ <TH ALIGN="right"><% mt('Password') |h %></TD>
<TD>
<INPUT TYPE = "text"
NAME = "_password"
% if ( $opt{'password_verify'} ) {
<TR>
- <TD ALIGN="right"><% mt('Re-enter Password') |h %></TD>
+ <TH ALIGN="right"><% mt('Re-enter Password') |h %></TD>
<TD>
<INPUT TYPE = "text"
NAME = "_password2"
% if ( $conf->exists('security_phrase') ) {
<TR>
- <TD ALIGN="right"><% mt('Security Phrase') |h %></TD>
+ <TH ALIGN="right"><% mt('Security Phrase') |h %></TD>
<TD><INPUT TYPE="text" NAME="sec_phrase" VALUE="<% $opt{'sec_phrase'} |h %>">
</TD>
</TR>
<INPUT TYPE="hidden" NAME="popnum" VALUE="">
% } else {
<TR>
- <TD ALIGN="right"><% mt('Access number') |h %></TD>
+ <TH ALIGN="right"><% mt('Access number') |h %></TD>
%# XXX should gain "area code" selection and labels on the dropdowns
<TD><% FS::svc_acct_pop::popselector($opt{'popnum'}) %></TD>
</TR>
-<% ntable("#cccccc") %>
+<TABLE CLASS="fsinnerbox">
% if ( $opt{'phonenum'} ) {
<INPUT TYPE="hidden" NAME="phonenum" VALUE="<% $opt{'phonenum'} %>">
<TR>
- <TD ALIGN="right">Loop Type</TD>
+ <TH ALIGN="right">Loop Type</TD>
<TD BGCOLOR="#eeeeee">Line-share</TD>
</TR>
<TR>
- <TD ALIGN="right">Phone Number</TD>
+ <TH ALIGN="right">Phone Number</TD>
<TD BGCOLOR="#eeeeee"><% $opt{'phonenum'} %></TD>
</TR>
<INPUT TYPE="hidden" NAME="phonenum" VALUE="">
<TR>
- <TD ALIGN="right">Loop Type</TD>
+ <TH ALIGN="right">Loop Type</TD>
<TD BGCOLOR="#eeeeee">Standalone</TD>
</TR>
% }
<TR>
- <TD ALIGN="right">PPPoE password</TD>
+ <TH ALIGN="right">PPPoE password</TD>
<TD>
<INPUT TYPE = "text"
NAME = "password"
</TR>
<TR>
- <TD ALIGN="right">ISP Changing?</TD>
+ <TH ALIGN="right">ISP Changing?</TD>
<TD>
<INPUT TYPE = "checkbox"
NAME = "isp_chg"
</TR>
<TR>
- <TD ALIGN="right">Current or Previous ISP</TD>
+ <TH ALIGN="right">Current or Previous ISP</TD>
<TD>
<INPUT TYPE = "text"
NAME = "isp_prev"
<INPUT TYPE="hidden" NAME="vendor_qual_id" VALUE="<% $opt{'vendor_qual_id'} %>">
<TR>
- <TD ALIGN="right">Vendor Qualification ID</TD>
+ <TH ALIGN="right">Vendor Qualification ID</TD>
<TD BGCOLOR="#eeeeee"><% $opt{'vendor_qual_id'} %></TD>
</TR>
-<% ntable("#cccccc") %>
+<TABLE CLASS="fsinnerbox">
%#XXX this should be hidden or something in most/all cases
<TR>
- <TD ALIGN="right" ID="countrycode_label_td">Country code</TD>
+ <TH ALIGN="right" ID="countrycode_label_td">Country code</TD>
<TD ID="countrycode_td">
<INPUT TYPE = "text"
NAME = "countrycode"
%# )
%#%>
<TR>
- <TD ALIGN="right" ID="phonenum_label_td">Phone Number</TD>
+ <TH ALIGN="right" ID="phonenum_label_td">Phone Number</TD>
<TD ID="phonenum_td">
<INPUT TYPE = "text"
NAME = "phonenum"
</TR>
<TR>
- <TD ALIGN="right" ID="sip_password_label_td">SIP password</TD>
+ <TH ALIGN="right" ID="sip_password_label_td">SIP password</TD>
<TD ID="sip_password_td">
<INPUT TYPE = "text"
NAME = "sip_password"
</TR>
<TR>
- <TD ALIGN="right" ID="pin_label_td">Voicemail PIN</TD>
+ <TH ALIGN="right" ID="pin_label_td">Voicemail PIN</TD>
<TD ID="pin_td">
<INPUT TYPE = "text"
NAME = "pin"
%#XXX this should be hidden or something in most/all cases
<TR>
- <TD ALIGN="right" ID="phone_name_label_td">Name</TD>
+ <TH ALIGN="right" ID="phone_name_label_td">Name</TD>
<TD ID="phone_name_td">
<INPUT TYPE = "text"
NAME = "phone_name"
# (preferred, will be pluralized automatically)
'name' => #name for the record
# (deprecated, will be pluralized simplistically)
- 'table' =>
+ 'table' => #database table
#? 'primary_key' => #required when the dbdef doesn't know...???
'labels' => {
'form_init' => '', #after html_init, error and the opening <FORM>, but
#before any other form contents
+ 'html_table_class' => '', #HTML <TABLE CLASS=
+
#string or coderef of additional HTML to add before </TABLE>
'html_table_bottom' => '',
% }
% my $tablenum = $opt{'tablenum'} || 0;
-<TABLE ID="TableNumber<% $tablenum++ %>" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
+<TABLE ID="TableNumber<% $tablenum++ %>"
+ <% $opt{html_table_class} ? 'CLASS="'. $opt{html_table_class}. '"'
+ : 'BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0'
+ %>
+>
% my $g_row = 0;
% my @g_row_stack = ();