summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_main.cgi
diff options
context:
space:
mode:
authorivan <ivan>2004-12-06 14:36:47 +0000
committerivan <ivan>2004-12-06 14:36:47 +0000
commita6595fa854b75f109450bf1af3cc9333ba9dc723 (patch)
treea4720be30d82c930c6dd0af3e28fa9a0b5e06dbf /httemplate/search/cust_main.cgi
parent7114ddae6f6595d72b7e17cdaefb9d7f915a8b7b (diff)
fix total links and line up custom field columns
Diffstat (limited to 'httemplate/search/cust_main.cgi')
-rwxr-xr-xhttemplate/search/cust_main.cgi27
1 files changed, 16 insertions, 11 deletions
diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi
index 916ccf24e..56b4f27d4 100755
--- a/httemplate/search/cust_main.cgi
+++ b/httemplate/search/cust_main.cgi
@@ -401,21 +401,26 @@ END
print "<TD ROWSPAN=$rowspan ALIGN=right>";
if ( $addl_col eq 'tickets' ) {
if ( @custom_priorities ) {
+ print '<TABLE>';
foreach my $priority ( @custom_priorities ) {
- print '<A HREF="'.
- FS::TicketSystem->href_customer_tickets($custnum,$priority).
- '">'.
- FS::TicketSystem->num_customer_tickets($custnum,$priority).
- "&nbsp;$priority</A><BR>";
+ my $ahref =
+ '<A HREF="'.
+ FS::TicketSystem->href_customer_tickets($custnum,$priority).
+ '">';
+ print "<TR><TD ALIGN=right>$ahref".
+ FS::TicketSystem->num_customer_tickets($custnum,$priority).
+ "</A></TD>".
+ "<TD ALIGN=left>$ahref$priority</A></TD></TR>";
}
+ print "<TR><TD ALIGN=right>";
}
- print '<A HREF="'.
- FS::TicketSystem->href_customer_tickets($cust_main->custnum, $p).
- '">'.
- $cust_main->get($addl_col);
- print '&nbsp;total'
+ my $ahref =
+ '<A HREF="'.
+ FS::TicketSystem->href_customer_tickets($custnum).
+ '">';
+ print $ahref. $cust_main->get($addl_col). '</A>';
+ print '</TD><TD ALIGN=left>${ahref}total</A></TD></TR></TABLE>'
if @custom_priorities;
- print "</A>";
} else {
print $cust_main->get($addl_col);
}