#!/usr/bin/perl -Tw
#
-# $Id: agent.cgi,v 1.11 1999-01-20 09:43:16 ivan Exp $
+# $Id: agent.cgi,v 1.12 1999-04-09 03:52:55 ivan Exp $
#
# ivan@sisd.com 97-dec-12
#
# lose background, FS::CGI ivan@sisd.com 98-sep-2
#
# $Log: agent.cgi,v $
-# Revision 1.11 1999-01-20 09:43:16 ivan
+# Revision 1.12 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.11 1999/01/20 09:43:16 ivan
# comment out future UI code (but look at it, it's neat!)
#
# Revision 1.10 1999/01/19 05:13:24 ivan
Agents are resellers of your service. Agents may be limited to a subset of your
full offerings (via their type).<BR><BR>
END
-print table, <<END;
+print &table, <<END;
<TR>
<TH COLSPAN=2>Agent</TH>
<TH>Type</TH>
#!/usr/bin/perl -Tw
#
-# $Id: agent_type.cgi,v 1.6 1999-04-07 11:10:46 ivan Exp $
+# $Id: agent_type.cgi,v 1.7 1999-04-09 03:52:55 ivan Exp $
#
# ivan@sisd.com 97-dec-10
#
# lose background, FS::CGI ivan@sisd.com 98-sep-2
#
# $Log: agent_type.cgi,v $
-# Revision 1.6 1999-04-07 11:10:46 ivan
+# Revision 1.7 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.6 1999/04/07 11:10:46 ivan
# harmless typo
#
# Revision 1.5 1999/01/19 05:13:25 ivan
print $cgi->header( '-expires' => 'now' ), header("Agent Type Listing", menubar(
'Main Menu' => $p,
)), "Agent types define groups of packages that you can then assign to".
- " particular agents.<BR><BR>", table, <<END;
+ " particular agents.<BR><BR>", &table, <<END;
<TR>
<TH COLSPAN=2>Agent Type</TH>
<TH COLSPAN="2">Packages</TH>
#!/usr/bin/perl -Tw
#
-# $Id: cust_main_county.cgi,v 1.5 1999-01-19 05:13:26 ivan Exp $
+# $Id: cust_main_county.cgi,v 1.6 1999-04-09 03:52:55 ivan Exp $
#
# ivan@sisd.com 97-dec-13
#
# lose background, FS::CGI ivan@sisd.com 98-sep-2
#
# $Log: cust_main_county.cgi,v $
-# Revision 1.5 1999-01-19 05:13:26 ivan
+# Revision 1.6 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.5 1999/01/19 05:13:26 ivan
# for mod_perl: no more top-level my() variables; use vars instead
# also the last s/create/new/;
#
<BR>Click on <u>expand state</u> to specify a state's tax rates by county.
<BR><BR>
END
-print table, <<END;
+print &table, <<END;
<TR>
<TH><FONT SIZE=-1>Country</FONT></TH>
<TH><FONT SIZE=-1>State</FONT></TH>
#!/usr/bin/perl -Tw
#
-# $Id: part_pkg.cgi,v 1.6 1999-01-19 05:13:27 ivan Exp $
+# $Id: part_pkg.cgi,v 1.7 1999-04-09 03:52:55 ivan Exp $
#
# ivan@sisd.com 97-dec-5,9
#
# lose background, FS::CGI ivan@sisd.com 98-sep-2
#
# $Log: part_pkg.cgi,v $
-# Revision 1.6 1999-01-19 05:13:27 ivan
+# Revision 1.7 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.6 1999/01/19 05:13:27 ivan
# for mod_perl: no more top-level my() variables; use vars instead
# also the last s/create/new/;
#
'Main Menu' => $p,
)), "One or more services are grouped together into a package and given",
" pricing information. Customers purchase packages, not services.<BR><BR>",
- table, <<END;
+ &table, <<END;
<TABLE BORDER>
<TR>
<TH COLSPAN=2>Package</TH>
#!/usr/bin/perl -Tw
#
-# $Id: part_referral.cgi,v 1.7 1999-01-19 05:13:28 ivan Exp $
+# $Id: part_referral.cgi,v 1.8 1999-04-09 03:52:55 ivan Exp $
#
# ivan@sisd.com 98-feb-23
#
# lose background, FS::CGI ivan@sisd.com 98-sep-2
#
# $Log: part_referral.cgi,v $
-# Revision 1.7 1999-01-19 05:13:28 ivan
+# Revision 1.8 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.7 1999/01/19 05:13:28 ivan
# for mod_perl: no more top-level my() variables; use vars instead
# also the last s/create/new/;
#
print $cgi->header( '-expires' => 'now' ), header("Referral Listing", menubar(
'Main Menu' => $p,
# 'Add new referral' => "../edit/part_referral.cgi",
-)), "Where a customer heard about your service. Tracked for informational purposes.<BR><BR>", table, <<END;
+)), "Where a customer heard about your service. Tracked for informational purposes.<BR><BR>", &table, <<END;
<TR>
<TH COLSPAN=2>Referral</TH>
</TR>
#!/usr/bin/perl -Tw
#
-# $Id: part_svc.cgi,v 1.9 1999-01-19 05:13:29 ivan Exp $
+# $Id: part_svc.cgi,v 1.10 1999-04-09 03:52:55 ivan Exp $
#
# ivan@sisd.com 97-nov-14, 97-dec-9
#
# lose background, FS::CGI ivan@sisd.com 98-sep-2
#
# $Log: part_svc.cgi,v $
-# Revision 1.9 1999-01-19 05:13:29 ivan
+# Revision 1.10 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.9 1999/01/19 05:13:29 ivan
# for mod_perl: no more top-level my() variables; use vars instead
# also the last s/create/new/;
#
)),<<END;
Services are items you offer to your customers.<BR><BR>
END
-print table, <<END;
+print &table, <<END;
<TR>
<TH COLSPAN=2>Service</TH>
<TH>Table</TH>
#!/usr/bin/perl -Tw
#
-# $Id: svc_acct_pop.cgi,v 1.5 1999-01-19 05:13:30 ivan Exp $
+# $Id: svc_acct_pop.cgi,v 1.6 1999-04-09 03:52:55 ivan Exp $
#
# ivan@sisd.com 98-mar-8
#
# lose background, FS::CGI ivan@sisd.com 98-sep-2
#
# $Log: svc_acct_pop.cgi,v $
-# Revision 1.5 1999-01-19 05:13:30 ivan
+# Revision 1.6 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.5 1999/01/19 05:13:30 ivan
# for mod_perl: no more top-level my() variables; use vars instead
# also the last s/create/new/;
#
print $cgi->header( '-expires' => 'now' ), header('POP Listing', menubar(
'Main Menu' => $p,
-)), "Points of Presence<BR><BR>", table, <<END;
+)), "Points of Presence<BR><BR>", &table, <<END;
<TR>
<TH></TH>
<TH>City</TH>
#!/usr/bin/perl -Tw
#
-# $Id: cust_main.cgi,v 1.12 1999-04-06 11:16:16 ivan Exp $
+# $Id: cust_main.cgi,v 1.13 1999-04-09 03:52:55 ivan Exp $
#
# Usage: cust_main.cgi custnum
# http://server.name/path/cust_main.cgi?custnum
# fixed one missed day->daytime ivan@sisd.com 98-jul-13
#
# $Log: cust_main.cgi,v $
-# Revision 1.12 1999-04-06 11:16:16 ivan
+# Revision 1.13 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.12 1999/04/06 11:16:16 ivan
# give a meaningful error message if you try to create a customer before you've
# created an agent
#
$cust_main->zip,
);
-print "<BR><BR>Contact information", itable("#c0c0c0"), <<END;
+print "<BR><BR>Contact information", &itable("#c0c0c0"), <<END;
<TR><TH ALIGN="right">${r}Contact name<BR>(last, first)</TH><TD COLSPAN=3><INPUT TYPE="text" NAME="last" VALUE="$last">, <INPUT TYPE="text" NAME="first" VALUE="$first"></TD><TD ALIGN="right">SS#</TD><TD><INPUT TYPE="text" NAME="ss" VALUE="$ss" SIZE=11></TD></TR>
<TR><TD ALIGN="right">Company</TD><TD COLSPAN=5><INPUT TYPE="text" NAME="company" VALUE="$company" SIZE=70></TD></TR>
<TR><TH ALIGN="right">${r}Address</TH><TD COLSPAN=5><INPUT TYPE="text" NAME="address1" VALUE="$address1" SIZE=70></TD></TR>
$return;
}
-print "<BR>Billing information", itable("#c0c0c0"),
+print "<BR>Billing information", &itable("#c0c0c0"),
qq!<TR><TD><INPUT TYPE="checkbox" NAME="tax" VALUE="Y"!;
print qq! CHECKED! if $cust_main->tax eq "Y";
print qq!>Tax Exempt</TD></TR>!;
print "<TR><TD>Billing type</TD></TR>",
"</TABLE>",
- table("#c0c0c0"), "<TR>";
+ &table("#c0c0c0"), "<TR>";
($payinfo, $payname)=(
$cust_main->payinfo,
if ( @part_pkg ) {
- print "<BR><BR>First package", itable("#c0c0c0"),
+ print "<BR><BR>First package", &itable("#c0c0c0"),
qq!<TR><TD COLSPAN=2><SELECT NAME="pkgpart_svcpart">!;
print qq!<OPTION VALUE="">(none)!;
#!/usr/bin/perl -Tw
#
-# $Id: cust_main_county.cgi,v 1.6 1999-01-25 12:09:55 ivan Exp $
+# $Id: cust_main_county.cgi,v 1.7 1999-04-09 03:52:55 ivan Exp $
#
# ivan@sisd.com 97-dec-13-16
#
# lose background, FS::CGI ivan@sisd.com 98-sep-2
#
# $Log: cust_main_county.cgi,v $
-# Revision 1.6 1999-01-25 12:09:55 ivan
+# Revision 1.7 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.6 1999/01/25 12:09:55 ivan
# yet more mod_perl stuff
#
# Revision 1.5 1999/01/19 05:13:36 ivan
if $cgi->param('error');
print qq!<FORM ACTION="!, popurl(1),
- qq!process/cust_main_county.cgi" METHOD=POST>!, table, <<END;
+ qq!process/cust_main_county.cgi" METHOD=POST>!, &table, <<END;
<TR>
<TH><FONT SIZE=-1>Country</FONT></TH>
<TH><FONT SIZE=-1>State</FONT></TH>
#!/usr/bin/perl -Tw
#
-# $Id: part_svc.cgi,v 1.10 1999-04-08 13:01:50 ivan Exp $
+# $Id: part_svc.cgi,v 1.11 1999-04-09 03:52:55 ivan Exp $
#
# ivan@sisd.com 97-nov-14
#
# use FS::CGI, added inline documentation ivan@sisd.com 98-jul-12
#
# $Log: part_svc.cgi,v $
-# Revision 1.10 1999-04-08 13:01:50 ivan
+# Revision 1.11 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.10 1999/04/08 13:01:50 ivan
# [ AND DOCUMENT! ] all svc_acct services should have a default
# or fixed shell
#
<B>/usr/bin/passwd</B>.
<BR><BR>
END
-print table, '<TR><TH>Table<SELECT NAME="svcdb" SIZE=1>',
+print &table, '<TR><TH>Table<SELECT NAME="svcdb" SIZE=1>',
map '<OPTION'. ' SELECTED'x($_ eq $hashref->{svcdb}). ">$_\n", qw(
svc_acct svc_domain svc_acct_sm
);
#!/usr/bin/perl -Tw
#
-# $Id: cust_main.cgi,v 1.9 1999-02-28 00:03:55 ivan Exp $
+# $Id: cust_main.cgi,v 1.10 1999-04-09 03:52:55 ivan Exp $
#
# Usage: post form to:
# http://server.name/path/cust_main.cgi
# display total, use FS::CGI ivan@sisd.com 98-jul-17
#
# $Log: cust_main.cgi,v $
-# Revision 1.9 1999-02-28 00:03:55 ivan
+# Revision 1.10 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.9 1999/02/28 00:03:55 ivan
# removed misleading comments
#
# Revision 1.8 1999/02/07 09:59:36 ivan
my($total)=scalar(@cust_main);
print $cgi->header( '-expires' => 'now' ), header("Customer Search Results",menubar(
'Main Menu', popurl(2)
- )), "$total matching customers found<BR>", table, <<END;
+ )), "$total matching customers found<BR>", &table, <<END;
<TR>
<TH></TH>
<TH>Contact name</TH>
#!/usr/bin/perl -Tw
#
-# $Id: svc_acct_sm.cgi,v 1.7 1999-02-28 00:03:56 ivan Exp $
+# $Id: svc_acct_sm.cgi,v 1.8 1999-04-09 03:52:55 ivan Exp $
#
# Usage: post form to:
# http://server.name/path/svc_domain.cgi
# bmccane@maxbaud.net 98-apr-3
#
# $Log: svc_acct_sm.cgi,v $
-# Revision 1.7 1999-02-28 00:03:56 ivan
+# Revision 1.8 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.7 1999/02/28 00:03:56 ivan
# removed misleading comments
#
# Revision 1.6 1999/02/09 09:22:58 ivan
} elsif ( scalar(@svc_acct_sm) > 1 ) {
print $cgi->header( '-expires' => 'now' ),
header('Mail Alias Search Results'),
- table, <<END;
+ &table, <<END;
<TR>
<TH>Mail to<BR><FONT SIZE=-1>(click to view mail alias)</FONT></TH>
<TH>Forwards to<BR><FONT SIZE=-1>(click to view account)</FONT></TH>
#!/usr/bin/perl -Tw
#
-# $Id: cust_main.cgi,v 1.14 1999-04-08 04:04:37 ivan Exp $
+# $Id: cust_main.cgi,v 1.15 1999-04-09 03:52:55 ivan Exp $
#
# Usage: cust_main.cgi custnum
# http://server.name/path/cust_main.cgi?custnum
# lose background, FS::CGI ivan@sisd.com 98-sep-2
#
# $Log: cust_main.cgi,v $
-# Revision 1.14 1999-04-08 04:04:37 ivan
+# Revision 1.15 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.14 1999/04/08 04:04:37 ivan
# eliminate double // in links
#
# Revision 1.13 1999/02/28 00:04:00 ivan
die "Customer not found!" unless $cust_main;
$hashref = $cust_main->hashref;
-print itable(), '<TR><TD><A NAME="cust_main"></A>';
+print &itable(), '<TR><TD><A NAME="cust_main"></A>';
print qq!<A HREF="!, popurl(2),
qq!edit/cust_main.cgi?$custnum">Edit this customer</A>!,
- ntable("#c0c0c0"), "<TR><TD>", ntable("#c0c0c0",2),
+ &ntable("#c0c0c0"), "<TR><TD>", &ntable("#c0c0c0",2),
'<TR><TD ALIGN="right">Customer number</TD><TD BGCOLOR="#ffffff">',
$custnum, '</TD></TR>',
;
print '</TD><TD ROWSPAN=2>';
-print "Contact information", ntable("#c0c0c0"), "<TR><TD>",
- ntable("#c0c0c0",2),
+print "Contact information", &ntable("#c0c0c0"), "<TR><TD>",
+ &ntable("#c0c0c0",2),
'<TR><TD ALIGN="right">Contact name<BR>(last, first)</TD>',
'<TD COLSPAN=3 BGCOLOR="#ffffff">',
$cust_main->last, ', ', $cust_main->first,
@invoicing_list = $cust_main->invoicing_list;
print "Billing information (",
qq!<A HREF="!, popurl(2), qq!/misc/bill.cgi?$custnum">!, "Bill now</A>)",
- ntable("#c0c0c0"), "<TR><TD>", ntable("#c0c0c0",2),
+ &ntable("#c0c0c0"), "<TR><TD>", &ntable("#c0c0c0",2),
'<TR><TD ALIGN="right">Tax exempt</TD><TD BGCOLOR="#ffffff">',
$cust_main->tax ? 'yes' : 'no',
'</TD></TR>',
#display packages
#formatting
-print qq!!, table, "\n",
+print qq!!, &table, "\n",
qq!<TR><TH COLSPAN=2 ROWSPAN=2>Package</TH><TH COLSPAN=5>!,
qq!Dates</TH><TH COLSPAN=2 ROWSPAN=2>Services</TH></TR>\n!,
qq!<TR><TH><FONT SIZE=-1>Setup</FONT></TH><TH>!,
}
#formatting
- print table(), <<END;
+ print &table(), <<END;
<TR>
<TH>Date</TH>
<TH>Description</TH>
#!/usr/bin/perl -Tw
#
-# $Id: cust_pkg.cgi,v 1.9 1999-04-08 12:00:19 ivan Exp $
+# $Id: cust_pkg.cgi,v 1.10 1999-04-09 03:52:55 ivan Exp $
#
# Usage: cust_pkg.cgi pkgnum
# http://server.name/path/cust_pkg.cgi?pkgnum
# no FS::Search ivan@sisd.com 98-mar-7
#
# $Log: cust_pkg.cgi,v $
-# Revision 1.9 1999-04-08 12:00:19 ivan
+# Revision 1.10 1999-04-09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.9 1999/04/08 12:00:19 ivan
# aesthetic update
#
# Revision 1.8 1999/02/28 00:04:01 ivan
print ' (<A HREF="'. popurl(2). 'misc/cancel_pkg.cgi?'. $pkgnum.
'">cancel</A>)' unless $cancel;
-print ntable("#c0c0c0"), '<TR><TD>', ntable("#c0c0c0",2),
+print &ntable("#c0c0c0"), '<TR><TD>', &ntable("#c0c0c0",2),
'<TR><TD ALIGN="right">Package number</TD><TD BGCOLOR="#ffffff">',
$pkgnum, '</TD></TR>',
'<TR><TD ALIGN="right">Package</TD><TD BGCOLOR="#ffffff">',
unless ($cancel) {
#services
- print '<BR>Service Information', table,
+ print '<BR>Service Information', &table,
;
#list of services this pkgpart includes