Changeset 3334 for branches/2.2/contactcenter/inc/class.ui_data.inc.php
- Timestamp:
- 10/06/10 16:14:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/contactcenter/inc/class.ui_data.inc.php
r3333 r3334 22 22 23 23 var $bo; 24 var $so_group; 24 25 var $typeContact; 25 26 … … 259 260 $GLOBALS['phpgw']->template->set_var('cc_msg_fill_field_name', lang('Fill the field Full Name')); 260 261 262 $select_groups = ''; 263 264 $this->so_group = CreateObject('contactcenter.so_group'); 265 266 $array_groups = $this->so_group->selectGroupsOwnerCanImportContacts($GLOBALS['phpgw_info']['user']['account_id']); 267 268 $select_groups = "<select id='id_group'>";//<option value=0>Selecione um grupo...</option></select>"; 269 $select_groups .= "<option value=0 selected>Nenhum...</option>"; 270 foreach ($array_groups as $group){ 271 $select_groups .= "<option value='".$group['id_group']."'>".$group['title']."</option>"; 272 } 273 $select_groups .= "</select>"; 274 275 $GLOBALS['phpgw']->template->set_var('cc_select_groups',$select_groups); 276 261 277 if($GLOBALS['phpgw_info']['server']['personal_contact_type']=='True'){ 262 278 $GLOBALS['phpgw']->template->set_var('cc_contact_type', 'advanced'); … … 417 433 418 434 case 'import_contacts': 419 return $this->import_contacts($_GET['typeImport'] );435 return $this->import_contacts($_GET['typeImport'],$_GET['id_group']); 420 436 421 437 case 'export_contacts': … … 519 535 level 520 536 @author Raphael Derosso Pereira 521 @author M ï¿œrio Cï¿œsar Kolling (error messages and timeout)537 @author Mário César Kolling (error messages and timeout) 522 538 523 539 @param (string) $level The level to be taken … … 1281 1297 //echo 'ID_I: '.$id_i.'<br>'; 1282 1298 //echo 'ID_F: '.$id_f.'<br>'; 1283 ///---------------- Correᅵᅵo Temporï¿œria PHP5 -----------------------/// 1284 1299 ///---------------- Correção Temporária PHP5 -----------------------/// 1285 1300 $ids = array(); 1286 1301 /**rev 104**/ … … 1411 1426 1412 1427 /**rev 104**/ 1413 // ?aqui alterar a chamada desse m ï¿œtodo para receber o base dn?1428 // ?aqui alterar a chamada desse método para receber o base dn? 1414 1429 //$contacts = &$this->bo->catalog->get_multiple_entries($ids,$fields); 1415 1430 … … 1437 1452 { 1438 1453 /* 1439 * TODO: Os timeouts de conex ï¿œo foram retirados, ver se serï¿œ necessï¿œrio retornar essa funcionalidade, e,1440 * neste caso, terminar a implementa ᅵᅵo das mensagens de retorno.1454 * TODO: Os timeouts de conexão foram retirados, ver se será necessário retornar essa funcionalidade, e, 1455 * neste caso, terminar a implementação das mensagens de retorno. 1441 1456 */ 1442 1457 if ($index !== 'error'){ … … 1789 1804 } 1790 1805 1791 // verifica se email j ï¿œexiste!1806 // verifica se email já existe! 1792 1807 $boGroup = CreateObject('contactcenter.bo_group'); 1793 1808 $contact = $boGroup->verify_contact($tdata[4]); … … 2848 2863 of the entries that matches the search argument 2849 2864 @author Raphael Derosso Pereira 2850 @author M ï¿œrio Cï¿œsar Kolling (external catalogs)2865 @author Mário César Kolling (external catalogs) 2851 2866 2852 2867 @param string $str_data A serialized array with two informations: … … 3852 3867 //em 19/06/2009 - Rommel Cysne (rommel.cysne@serpro.gov.br); 3853 3868 function import_contacts($typeImport){ 3854 3869 $this->so_group = CreateObject('contactcenter.so_group'); 3855 3870 if($file = $_SESSION['contactcenter']['importCSV']) { 3856 3871 unset($_SESSION['contactcenter']['importCSV']); … … 4144 4159 $return['_failure_status'] .= "Line: " . ($line_iteration + 2) . ", Invalid Name: " . $sdata['given_names'] ."<br>"; 4145 4160 } 4146 else 4147 $return['_new']++; 4161 else{ 4162 if($id_group != 0){ 4163 $this->so_group->add_user_by_name($id_group,$full_name); 4164 } 4165 $return['_new']++; 4166 } 4148 4167 } 4149 4168 fclose($handle);
Note: See TracChangeset
for help on using the changeset viewer.