array( 'query_type'=>'default'), 'last_name'=> array('query_type'=>'default'), 'search_name'=> array('query_type'=>'default','db_field'=>array('first_name','last_name'),'force_unifiedsearch'=>true), 'email'=> array( 'query_type' => 'default', 'operator' => 'subquery', 'subquery' => 'SELECT eabr.bean_id FROM email_addr_bean_rel eabr JOIN email_addresses ea ON (ea.id = eabr.email_address_id) WHERE eabr.deleted=0 and ea.email_address LIKE', 'db_field' => array( 'id', ) ), 'phone'=> array( 'query_type' => 'default', 'operator' => 'subquery', 'subquery' => array('SELECT id FROM users where phone_home LIKE ', 'SELECT id FROM users where phone_fax LIKE', 'SELECT id FROM users where phone_other LIKE', 'SELECT id FROM users where phone_work LIKE', 'SELECT id FROM users where phone_mobile LIKE', 'OR' =>true ), 'db_field' => array( 'id', ) ), // This is named so awkwardly because it's the only way we could get it to be a "proper" checkbox and not throw the basic search all out of wack. 'open_only_active_users'=> array('query_type'=>'default','db_field'=>array('employee_status'), 'vname' => 'LBL_ONLY_ACTIVE', 'type' => 'bool'), 'employee_status'=> array('query_type'=>'default', 'options' => 'employee_status_dom', 'template_var' => 'STATUS_OPTIONS', 'options_add_blank' => true) ); ?>