RT# 73422 Fix report Customer Contacts
[freeside.git] / httemplate / search / report_contact.html
1 <& /elements/header.html, mt($title) &>
2
3 <FORM ACTION="contact.html" METHOD="GET">
4
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
6
7 %#  This has never been actually supported on this report.
8 %#  Remove the selectbox until support is implemented
9 %#
10 %#  <& /elements/tr-select-agent.html,
11 %#                 'curr_value'    => scalar( $cgi->param('agentnum') ),
12 %#                 'label'         => emt('Contacts for agent: '),
13 %#                 'disable_empty' => 0,
14 %#  &>
15
16   <& /elements/tr-select.html,
17        'label'      => 'Contact source:', #??? not "type" - contacts have a type
18        'field'      => 'link',
19        'options'    => [ 'prospect_main', 'cust_main', 'both' ],
20        'labels'     => { 'prospect_main' => 'Prospect contacts',
21                          'cust_main'     => 'Customer contacts',
22                          'both'          => 'All contacts',
23                        },
24        'curr_value' => scalar( $cgi->param('link') ),
25   &>
26
27   <& /elements/tr-checkbox-multiple.html,
28     label => emt('Destinations').':',
29     field => 'dest',
30     options => [ 'message', 'invoice' ],
31     labels => {
32       invoice => 'Invoice recipients',
33       message => 'Message recipients',
34     },
35     value => { message => 1 },
36   &>
37
38   <& /elements/tr-select-multiple-contact_class.html,
39     label => emt('Contact Type').':',
40     field => 'classnum',
41   &>
42
43 </FORM>
44
45 </TABLE>
46
47 <BR>
48 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
49
50 </FORM>
51
52 <& /elements/footer.html &>
53 <%init>
54
55 die "access denied"
56   unless $FS::CurrentUser::CurrentUser->access_right('List contacts');
57
58 my $conf = new FS::Conf;
59
60 my $title = 'Contact Report';
61
62 </%init>