1 <& /elements/header.html, mt('Contact Report') &>
3 <FORM ACTION="contact.html" METHOD="GET">
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
7 <& /elements/tr-select-agent.html,
8 'curr_value' => scalar( $cgi->param('agentnum') ),
9 'label' => emt('Contacts for agent: '),
13 <& /elements/tr-select.html,
14 'label' => 'Contact source',
15 'field' => 'contact_source',
16 'options' => [ 'prospect_main', 'cust_main', '' ],
17 'labels' => { 'prospect_main' => 'Prospect contacts',
18 'cust_main' => 'Customer contacts',
21 'curr_value' => scalar( $cgi->param('contact_source') ),
24 % if ( FS::contact_class->count( 'disabled IS NULL' ) > 0 ) {
25 <& /elements/tr-checkboxes.html,
26 label => 'Contact Type',
28 [ 'null' => { label => 'None' } ],
29 map {[ $_->classnum => { label => $_->classname } ]}
30 qsearch( contact_class => { disabled => { op => '!=', value => 'Y' } })
32 element_name_prefix => 'contact_classnum_',
41 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
45 <& /elements/footer.html &>
49 unless $FS::CurrentUser::CurrentUser->access_right('List contacts');
51 use FS::contact_class;