deposit slips
[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 % # Selecting contacts and prospects at the same time has been sacrificed
14 % # for agent virtualization
15   <& /elements/tr-select.html,
16        'label'      => 'Contact source:',
17        'field'      => 'link',
18        'options'    => [ 'prospect_main', 'cust_main' ],
19        'labels'     => { 'prospect_main' => 'Prospect contacts',
20                          'cust_main'     => 'Customer contacts',
21                        },
22        'curr_value' => scalar( $cgi->param('link') ),
23   &>
24
25   <& /elements/tr-checkbox-multiple.html,
26     label => emt('Destinations').':',
27     field => 'dest',
28     options => [ 'message', 'invoice' ],
29     labels => {
30       invoice => 'Invoice recipients',
31       message => 'Message recipients',
32     },
33     value => { message => 1 },
34   &>
35
36   <& /elements/tr-select-multiple-contact_class.html,
37     label => emt('Contact Type').':',
38     field => 'classnum',
39   &>
40
41 </FORM>
42
43 </TABLE>
44
45 <BR>
46 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
47
48 </FORM>
49
50 <& /elements/footer.html &>
51 <%init>
52
53 die "access denied"
54   unless $FS::CurrentUser::CurrentUser->access_right('List contacts');
55
56 my $conf = new FS::Conf;
57
58 my $title = 'Contact Report';
59
60 </%init>