#!/usr/bin/perl -Tw
#
-# $Id: cust_main.cgi,v 1.13 1999-02-28 00:04:00 ivan Exp $
+# $Id: cust_main.cgi,v 1.16 1999-04-09 04:22:34 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.13 1999-02-28 00:04:00 ivan
+# Revision 1.16 1999-04-09 04:22:34 ivan
+# also table()
+#
+# 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
# removed misleading comments
#
# Revision 1.12 1999/02/07 09:59:40 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>!,
foreach my $cust_svc ( @cust_svc ) {
my($label, $value, $svcdb) = $cust_svc->label;
my($svcnum) = $cust_svc->svcnum;
- my($sview) = popurl(2). "/view";
+ my($sview) = popurl(2). "view";
print $n2,qq!<TD><A HREF="$sview/$svcdb.cgi?$svcnum"><FONT SIZE=-1>$label</FONT></A></TD>!,
qq!<TD><A HREF="$sview/$svcdb.cgi?$svcnum"><FONT SIZE=-1>$value</FONT></A></TD>!;
$n2="</TR><TR>";
}
#formatting
- print table(), <<END;
+ print &table(), <<END;
<TR>
<TH>Date</TH>
<TH>Description</TH>