RT# 73422 Changes to 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   <& /elements/tr-select-agent.html,
8                  'curr_value'    => scalar( $cgi->param('agentnum') ),
9                  'label'         => emt('Contacts for agent: '),
10                  'disable_empty' => 0,
11   &>
12
13   <& /elements/tr-select.html,
14        'label'      => 'Contact source', #??? not "type" - contacts have a type
15        'field'      => 'link',
16        'options'    => [ 'prospect_main', 'cust_main', '' ],
17        'labels'     => { 'prospect_main' => 'Prospect contacts',
18                          'cust_main'     => 'Customer contacts',
19                          ''              => 'All contacts',
20                        },
21        'curr_value' => scalar( $cgi->param('link') ),
22   &>
23
24   <& /elements/tr-select-multiple-contact_class.html,
25     label => 'Contact Type',
26     field => 'classnum',
27   &>
28
29 </FORM>
30
31 </TABLE>
32
33 <BR>
34 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
35
36 </FORM>
37
38 <& /elements/footer.html &>
39 <%init>
40
41 die "access denied"
42   unless $FS::CurrentUser::CurrentUser->access_right('List contacts');
43
44 my $conf = new FS::Conf;
45
46 my $title = 'Contact Report';
47
48 </%init>