blob: 82f42924f3ec3c3db0231a7cf291625b3c30c5b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<!-- $Id: part_referral.cgi,v 1.7 2002-01-30 14:18:08 ivan Exp $ -->
<%
print 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;
<TR>
<TH COLSPAN=2>Referral</TH>
</TR>
END
foreach my $part_referral ( sort {
$a->getfield('refnum') <=> $b->getfield('refnum')
} qsearch('part_referral',{}) ) {
my($hashref)=$part_referral->hashref;
print <<END;
<TR>
<TD><A HREF="${p}edit/part_referral.cgi?$hashref->{refnum}">
$hashref->{refnum}</A></TD>
<TD><A HREF="${p}edit/part_referral.cgi?$hashref->{refnum}">
$hashref->{referral}</A></TD>
</TR>
END
}
print <<END;
<TR>
<TD COLSPAN=2><A HREF="${p}edit/part_referral.cgi"><I>Add a new referral</I></A></TD>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>
END
%>
|