2 <FONT CLASS="fsinnerbox-title">Contacts</FONT>
3 <A HREF="<%$p%>/edit/cust_main-contacts.html?<% $cust_main->custnum %>">Edit contacts</A>
4 <TABLE CLASS="fsinnerbox">
5 % foreach my $contact ( @contacts ) {
6 % #XXX maybe this should be a table with alternating colors instead
8 <TD ALIGN="right"><% $contact->contact_classname %> Contact</TD>
9 <TD BGCOLOR="#FFFFFF"><% $contact->line %></TD>
11 % my @contact_email = $contact->contact_email;
12 % if (@contact_email) {
13 <TD ALIGN="right"> Email</TD>
14 <TD BGCOLOR="#FFFFFF"><% join(', ', map $_->emailaddress, @contact_email) %></TD>
17 % foreach my $phone_type (@phone_type) {
19 % qsearchs('contact_phone', {
20 % 'contactnum' => $contact->contactnum,
21 % 'phonetypenum' => $phone_type->phonetypenum,
24 <TD ALIGN="right"> <% $phone_type->typename %> phone</TD>
25 <TD BGCOLOR="#FFFFFF"><% $contact_phone->phonenum |h %></TD>
33 my @phone_type = qsearch({table=>'phone_type', order_by=>'weight'});
38 my( $cust_main ) = @_;
39 #my $conf = new FS::Conf;
41 my @contacts = $cust_main->cust_contact;