Changeset 5131 for trunk/contactcenter/inc/class.abo_catalog.inc.php
- Timestamp:
- 11/03/11 11:17:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/inc/class.abo_catalog.inc.php
r4742 r5131 188 188 function init() 189 189 { 190 $this->db = &$GLOBALS['phpgw']->db;191 $this->security = &CreateObject('contactcenter.security_manager');190 $this->db = $GLOBALS['phpgw']->db; 191 $this->security = CreateObject('contactcenter.security_manager'); 192 192 } 193 193 … … 729 729 730 730 case 'iLIKE': 731 $return_t[] = 'UPPER( '.$associative_tree[$restrict_data['field']]['table'].'.'.732 $associative_tree[$restrict_data['field']]['field'].' ) LIKE UPPER(\''.$restrict_data['value'].'\')';731 $return_t[] = 'UPPER( translate('.$associative_tree[$restrict_data['field']]['table'].'.'. 732 $associative_tree[$restrict_data['field']]['field'].',\'áàâãäéèêëíìïóòôõöúùûüÁÀÂÃÄÉÈÊËÍÌÏÓÒÔÕÖÚÙÛÜçÇñÑ\',\'aaaaaeeeeiiiooooouuuuAAAAAEEEEIIIOOOOOUUUUcCnN\')) LIKE UPPER(translate(\''.$restrict_data['value'].'\', \'áàâãäéèêëíìïóòôõöúùûüÁÀÂÃÄÉÈÊËÍÌÏÓÒÔÕÖÚÙÛÜçÇñÑ\',\'aaaaaeeeeiiiooooouuuuAAAAAEEEEIIIOOOOOUUUUcCnN\'))'; 733 733 break; 734 734 735 735 case 'LIKE and ~=': 736 $return_t[] = 'UPPER( to_ascii('.$associative_tree[$restrict_data['field']]['table'].'.'.737 $associative_tree[$restrict_data['field']]['field'].' )) LIKE UPPER( to_ascii (\''."%".$restrict_data['value']."%".'\'))';736 $return_t[] = 'UPPER(translate('.$associative_tree[$restrict_data['field']]['table'].'.'. 737 $associative_tree[$restrict_data['field']]['field'].',\'áàâãäéèêëíìïóòôõöúùûüÁÀÂÃÄÉÈÊËÍÌÏÓÒÔÕÖÚÙÛÜçÇñÑ\',\'aaaaaeeeeiiiooooouuuuAAAAAEEEEIIIOOOOOUUUUcCnN\')) LIKE UPPER(translate(\''."%".($restrict_data['value'])."%".'\', \'áàâãäéèêëíìïóòôõöúùûüÁÀÂÃÄÉÈÊËÍÌÏÓÒÔÕÖÚÙÛÜçÇñÑ\',\'aaaaaeeeeiiiooooouuuuAAAAAEEEEIIIOOOOOUUUUcCnN\'))'; 738 738 break; 739 739 … … 883 883 foreach($id_states as $id_state) 884 884 { 885 $state = &CreateObject('contactcenter.so_state', $id_state['id_state']);885 $state = CreateObject('contactcenter.so_state', $id_state['id_state']); 886 886 887 887 $result[$id_state['id_state']]['id_state'] = $state->get_id(); … … 945 945 foreach($id_cities as $id_city) 946 946 { 947 $city = &CreateObject('contactcenter.so_city', $id_city['id_city']);947 $city = CreateObject('contactcenter.so_city', $id_city['id_city']); 948 948 949 949 $result[$id_city['id_city']]['id_city'] = $city->get_id(); … … 1035 1035 } 1036 1036 1037 $city = &CreateObject('contactcenter.so_city');1037 $city = CreateObject('contactcenter.so_city'); 1038 1038 1039 1039 $city->set_id_country($city_info['id_country']); … … 1107 1107 } 1108 1108 1109 $state = &CreateObject('contactcenter.so_state');1109 $state = CreateObject('contactcenter.so_state'); 1110 1110 1111 1111 $state->set_id_country($state_info['id_country']);
Note: See TracChangeset
for help on using the changeset viewer.