/
Listing 3-5.php
40 lines (39 loc) · 1.78 KB
/
Listing 3-5.php
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
39
40
<?php
$searchdefs['Accounts'] = array(
'templateMeta' => array(
'maxColumns' => '3',
'widths' => array(
'label' => '10',
'field' => '30'
),
),
'layout' => array(
'basic_search' => array(
'name',
'billing_address_city',
'phone_office',
array('name' => 'address_street', 'label' =>'LBL_BILLING_ADDRESS', 'type' => 'name' , 'group'=>'billing_address_street'),
array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'),
),
'advanced_search' => array(
'name',
array('name' => 'address_street', 'label' =>'LBL_ANY_ADDRESS', 'type' => 'name'),
array('name' => 'phone', 'label' =>'LBL_ANY_PHONE', 'type' => 'name'),
'website',
array('name' => 'address_city', 'label' =>'LBL_CITY', 'type' => 'name'),
array('name' => 'email', 'label' =>'LBL_ANY_EMAIL', 'type' => 'name'),
'annual_revenue',
array('name' => 'address_state', 'label' =>'LBL_STATE', 'type' => 'name'),
'employees',
array('name' => 'address_postalcode', 'label' =>'LBL_POSTAL_CODE', 'type' => 'name'),
array('name' => 'billing_address_country', 'label' =>'LBL_COUNTRY', 'type' => 'name', 'options' => 'countries_dom', ),
'ticker_symbol',
'sic_code',
'rating',
'ownership',
array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
'account_type',
'industry',
),
),
);