Ignore:
Timestamp:
11/06/09 09:58:04 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #719 - Adicionados campos para importacao de contatos no Outlook Express

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contactcenter/js/cc.js

    r1517 r1599  
    6161var CC_full_add_const = false; 
    6262var CC_full_add_photo = false; 
    63          
     63 
    6464var CC_last_height = window.innerHeight; 
    6565var CC_last_width = window.innerWidth; 
     
    9494                 photo_input = photo_frame.contentDocument.createElement('input'); 
    9595        } 
    96          
     96 
    9797        photo_frame.id = 'cc_photo_frame'; 
    9898        photo_frame.style.position = 'absolute'; 
     
    100100        photo_frame.style.top = '600px'; 
    101101        photo_frame.style.left = '0px'; 
    102          
     102 
    103103        photo_form.id = 'cc_photo_form'; 
    104104        photo_form.method = 'POST'; 
    105105        photo_form.enctype = 'multipart/form-data'; 
    106          
     106 
    107107        photo_input.id = 'cc_photo_input'; 
    108108        photo_input.type = 'file'; 
    109          
     109 
    110110        if (is_ie) 
    111111        { 
     
    117117        } 
    118118        photo_form.appendChild(photo_input); 
    119          
     119 
    120120} 
    121121 
     
    125125        var obj = Element(id); 
    126126        var max = obj.options.length; 
    127          
     127 
    128128        if (option == undefined) 
    129129        { 
     
    165165function openFullAdd(){ 
    166166        // Build the FullAdd Window. 
    167         if(!fullAddWin && !is_ie)  
     167        if(!fullAddWin && !is_ie) 
    168168                __f(); 
    169169 
     
    172172        fullAddWin.open(); 
    173173        tabs._showTab('cc_contact_tab_0'); 
    174         Element("cc_conn_type_1").checked = false;       
     174        Element("cc_conn_type_1").checked = false; 
    175175        Element("cc_conn_type_2").checked = false; 
    176176        Element("cc_conn_type_sel").disabled = true; 
     
    243243/************ Edit Group *************/ 
    244244function editGroup(id){ 
    245         populateEditGroup(id);   
     245        populateEditGroup(id); 
     246        ccAddGroup.window.open(); 
    246247} 
    247248 
     
    253254        Updates all the constant fields in the 
    254255        full add window, like Prefixes, Suffixes, 
    255         Countries, Types and Shared catalogs 
     256        Countries and Types 
    256257*/ 
    257258 
     
    268269                        return; 
    269270                } 
    270                  
     271 
    271272                if (typeof(data[3]) == 'object') 
    272273                { 
     
    298299{ 
    299300        CC_full_add_const = false; 
    300          
     301 
    301302        setTimeout('populateFullAddConstAsync()', 10); 
    302303} 
     
    306307        var handler = function(responseText) 
    307308        { 
    308                 //Element('cc_debug').innerHTML = responseText;          
     309                //Element('cc_debug').innerHTML = responseText; 
    309310                var data = unserialize(responseText); 
    310311                var i = 1; 
    311312                var j; 
    312                  
     313 
    313314                if (typeof(data) != 'object') 
    314315                { 
     
    316317                        return; 
    317318                } 
    318                  
     319 
    319320                /* Populate Prefixes */ 
    320321                for (j in data[0]) 
     
    323324                        i++; 
    324325                } 
    325                  
     326 
    326327                /* Populate Suffixes */ 
    327328                i = 1; 
     
    345346                { 
    346347                        Element('cc_addr_countries').options[i] = new Option(data[3][j], j); 
    347                          
     348 
    348349                        if (j == 'BR' || j == 'br') 
    349350                        { 
    350351                                CC_br_index = i; 
    351352                        } 
    352                          
     353 
    353354                        i++; 
    354355                } 
    355                  
     356 
    356357                /* Populate Connection Types */ 
    357358                i = 1; 
     
    361362                        i++; 
    362363                } 
    363                  
     364 
    364365                /* Populate Relations Types */ 
    365366                i = 0; 
     
    369370                        i++; 
    370371                } 
    371                  
     372 
    372373                CC_full_add_const = true; 
    373374 
     
    397398                //populateRelations(data['relations']); 
    398399        }; 
    399  
    400400        Connector.newRequest('populateFullEdit', '../index.php?menuaction=contactcenter.ui_data.data_manager&method=get_full_data&id=' + id + "&catalog="+catalog, 'GET', handler); 
    401401} 
     
    416416                select_contact_list += data['contact_list'] + "</select>"; 
    417417                options_contact_list.innerHTML = select_contact_list; 
    418  
    419                 if(data['id_group']) {           
    420                         Element('title').value =  data['title']; 
     418                 
     419                if(data['id_group']) { 
     420                        Element('title').value =  data['title'];         
    421421                        if(data['contact_in_list']) {                                    
    422422                                for(i = 0; i < data['contact_in_list'].length; i++) {                            
     
    425425                                        option.text = data['contact_in_list'][i]['names_ordered']+' ('+data['contact_in_list'][i]['connection_value']+')';                               
    426426                                        Element('contact_in_list').options[Element('contact_in_list').options.length] = option; 
    427                                 }                
    428                         } 
     427                                } 
     428                        }                
     429                         
     430                        Element('title').value =  data['title']; 
    429431                } 
    430432                                 
     
    439441        id = typeof(id) == 'undefined' ? id = 0 :  id; 
    440442         
    441         ccAddGroup.clear(true);                          
     443        ccAddGroup.clear(true);                  
    442444        if(!shared) 
    443445                Connector.newRequest('populateEditGroup', '../index.php?menuaction=contactcenter.ui_data.data_manager&method=get_group&id='+id, 'GET', handler); 
     
    445447                Connector.newRequest('populateEditGroup', '../index.php?menuaction=contactcenter.ui_data.data_manager&method=get_group&id='+id+'&shared_from='+shared, 'GET', handler); 
    446448} 
     449 
    447450 
    448451 
     
    478481                return false; 
    479482        } 
    480          
     483 
    481484        /* First thing: Send Photo */ 
    482485        if (Element('cc_pd_select_photo').value != '' && !is_ie) 
     
    496499                        frame = old_frame; 
    497500                } 
    498                  
     501 
    499502                frame.id = 'cc_photo_frame'; 
    500503                frame.style.visibility = 'hidden'; 
     
    505508 
    506509                form = frame.contentDocument.createElement('form'); 
    507                  
     510 
    508511                var id_contact = Element('cc_full_add_contact_id').value; 
    509512                form.id = 'cc_form_photo'; 
     
    511514                form.enctype = 'multipart/form-data'; 
    512515                form.action = 'http://'+ document.domain + Element('cc_root_dir').value+'../index.php?menuaction=contactcenter.ui_data.data_manager&method=post_photo&id='+(id_contact != '' && id_contact != 'null' ? id_contact : ''); 
    513                  
     516 
    514517                var input_clone = Element('cc_pd_select_photo').cloneNode(false); 
    515518                form.appendChild(input_clone); 
    516                  
     519 
    517520                frame.contentDocument.body.appendChild(form); 
    518521                form.submit(); 
     
    535538        } 
    536539        if (Element('cc_contact_sharing').style.display == 'none') 
    537                 setTimeout('postFullAddInfo()', 100); 
     540        setTimeout('postFullAddInfo()', 100); 
    538541        else 
    539542                setTimeout('postFullAddInfoShared()', 100); 
     
    561564                updateCards(); 
    562565        }; 
     566 
    563567        Connector.newRequest('postFullAddInfo', CC_url+'post_full_add', 'POST', handler, getFullAddData()); 
    564568} 
     
    594598 
    595599        data['commercialAnd'] = replacer; 
    596          
     600 
    597601        if (Element('cc_full_add_contact_id').value != '' && Element('cc_full_add_contact_id').value != 'null') 
    598602        { 
     
    600604                data.length++; 
    601605        } 
    602          
     606 
    603607        /* Owner do contato (Para o caso de adicao de contato compartilhado) */ 
    604608        if (Element('cc_contact_sharing').style.display == 'block') 
    605609        { 
    606610                var index = Element('cc_contact_shared_types').selectedIndex; 
    607                 data['owner'] = replaceComAnd(owners[index], replacer);  
     611                data['owner'] = replaceComAnd(owners[index], replacer); 
    608612                data.length++; 
    609613        } 
    610          
     614 
    611615        /* Status: Full Added */ 
    612616        data['id_status'] = CC_STATUS_FULL_ADD; 
    613          
     617 
    614618        /* Personal Data */ 
    615619        data['alias']         = replaceComAnd(Element('cc_pd_alias').value, replacer); 
     
    631635                data['corporate_name'] = replaceComAnd(Element('cc_name_corporate').value, replacer); 
    632636                data['job_title'] = replaceComAnd(Element('cc_job_title').value, replacer); 
    633                 data['department'] = replaceComAnd(Element('cc_department').value, replacer); 
     637                data['department'] = replaceComAnd(Element('cc_dept').value, replacer); 
    634638                data['web_page'] = replaceComAnd(Element('cc_web_page').value, replacer); 
    635639                data.length += 18; 
    636640        } 
    637  
    638                  
    639          
    640641 
    641642        /* Addresses */ 
     
    660661                                data['connections'] = new Array(); 
    661662                        } 
    662                          
     663 
    663664                        for (var i in CC_contact_full_info['connections'][type]) 
    664665                        { 
     
    672673                                        data['connections']['connection'+connNumber] = new Array(5); 
    673674                                } 
    674                                  
     675 
    675676                                data['connections']['connection'+connNumber]['id_connection'] = CC_contact_full_info['connections'][type][i]['id']; 
    676677                                data['connections']['connection'+connNumber]['id_typeof_connection'] = type; 
     
    681682                                                data['connections']['connection'+connNumber]['connection_is_default']  = 'TRUE'; 
    682683                                        } 
    683                                         else  
     684                                        else 
    684685                                                data['connections']['connection'+connNumber]['connection_is_default']  = 'FALSE'; 
    685686                                } 
    686687 
    687688//                              data['connections']['connection'+connNumber].length = 5; 
    688                                  
     689 
    689690                                empty = false; 
    690691                                connNumber++; 
     
    693694 
    694695                } 
    695                  
     696 
    696697                if (!empty) 
    697698                { 
     
    700701                } 
    701702        } 
    702          
     703 
    703704        if (CC_contact_full_info['removed_conns']) 
    704705        { 
    705706                empty = false; 
    706                  
     707 
    707708                if (typeof(data['connections']) != 'object') 
    708709                { 
     
    727728        { 
    728729                if (Element('cc_contact_shared_types').disabled == true) 
    729                 {        
     730                { 
    730731                        showMessage('Nenhum catálogo compartilhado existente'); 
    731732                        return false; 
     
    737738                } 
    738739        } 
    739          
     740 
    740741        /* Check Personal Data */ 
     742 
    741743        if (Element('cc_pd_given_names').value == '') 
    742744        { 
     
    756758                        for (var i in CC_contact_full_info['connections'][type]){ 
    757759                                if((CC_contact_full_info['connections'][type][i]['value'].length < 4) || 
    758                                         (!comp.test(CC_contact_full_info['connections'][type][i]['value']))){  
     760                                        (!comp.test(CC_contact_full_info['connections'][type][i]['value']))){ 
    759761                                        showMessage('Endereço para conexão de ' + CC_contact_full_info['connections'][type][i]['name'] + ', não é válido'); 
    760762                                        return false; 
     
    767769                        } 
    768770                } 
    769                  
     771 
    770772        } 
    771773 
     
    776778 
    777779/********* Personal Data Functions *********/ 
    778 /*  
     780/* 
    779781 * data[0] => cc_pd_select_photo 
    780782 * data[1] => cc_pd_alias 
     
    788790 * data[9] => cc_pd_gpg_finger_print 
    789791 * data[10] => cc_pd_notes 
    790  * data[11] => cc_name_corporate 
    791  * data[12] => cc_job_title 
    792  * data[13] => cc_department 
    793  * data[14] => cc_we_page 
    794792 */ 
    795793 
     
    828826{ 
    829827        Element('cc_addr_types').selectedIndex = 0; 
    830          
     828 
    831829        Element('cc_addr_countries').selectedIndex = 0; 
    832830        Element('cc_addr_countries').disabled = true; 
    833          
     831 
    834832        Element('cc_addr_states').selectedIndex = 0; 
    835833        Element('cc_addr_states').disabled = true; 
     
    882880        var type = Element('cc_addr_types'); 
    883881        var oldSelected = type.value; 
    884          
     882 
    885883        saveAddressFields(); 
    886          
     884 
    887885        if (oldSelected == '_NONE_') 
    888886        { 
     
    890888                return true; 
    891889        } 
    892          
     890 
    893891        CC_addr_last_selected = type.selectedIndex; 
    894          
     892 
    895893        Element('cc_addr_countries').disabled = false; 
    896          
     894 
    897895        var data = CC_contact_full_info['addresses']; 
    898896        var addrIndex  = 'address'+Element('cc_addr_types').value; 
    899          
    900         if (typeof(data) != 'object' || typeof(data[addrIndex]) != 'object')  
     897 
     898        if (typeof(data) != 'object' || typeof(data[addrIndex]) != 'object') 
    901899        { 
    902900                resetAddressFields(); 
     
    907905                return true; 
    908906        } 
    909          
     907 
    910908        var addrTypeID = Element('cc_addr_types').value; 
    911          
     909 
    912910        data = CC_contact_full_info['addresses'][addrIndex]; 
    913          
     911 
    914912        Element('cc_addr_id').value                              = data['id_address']           ? data['id_address']                    : ''; 
    915913        Element('cc_addr_1').value                              = data['address1']                      ? data['address1']                              : ''; 
     
    933931                states.selectedIndex = 0; 
    934932                clearSelectBox(states, 4); 
    935                 updateAddrCities();      
     933                updateAddrCities(); 
    936934                return; 
    937935        } 
     
    948946        { 
    949947                var data = unserialize(responseText); 
    950                  
     948 
    951949                clearSelectBox(states, 1); 
    952                          
     950 
    953951                if (typeof(data) != 'object') 
    954952                { 
    955953                        showMessage(Element('cc_msg_err_contacting_server').value); 
    956          
     954 
    957955                        return; 
    958956                } 
     
    961959                { 
    962960                        states.disabled = true; 
    963                         cities.disabled = true;                  
     961                        cities.disabled = true; 
    964962                        states.selectedIndex = 0; 
    965963                        cities.selectedIndex = 0; 
     
    1001999                } 
    10021000        }; 
    1003          
     1001 
    10041002        Connector.newRequest('populateStates', '../index.php?menuaction=contactcenter.ui_data.data_manager&method=get_states&country='+Element('cc_addr_countries').value, 'GET', handler); 
    10051003} 
     
    10291027                        newState.disabled = false; 
    10301028                        updateAddrNewStateOnMouseOut(); 
    1031                          
     1029 
    10321030                        cities.disabled = false; 
    10331031                        clearSelectBox(cities, 3); 
     
    10401038                case '_NOSTATE_': 
    10411039                        clearSelectBox(cities, 3); 
    1042                          
     1040 
    10431041                        cities.disabled = false; 
    10441042                        cities.selectedIndex = 0; 
    1045                          
     1043 
    10461044                        requestStr = 'country='+Element('cc_addr_countries').value; 
    10471045                        break; 
    1048                  
     1046 
    10491047                default: 
    10501048                        requestStr = 'country='+Element('cc_addr_countries').value+'&state='+states.value; 
     
    10611059{ 
    10621060        var cities = Element('cc_addr_cities'); 
    1063          
     1061 
    10641062        var handler = function (responseText) 
    10651063        { 
    10661064                var data = unserialize(responseText); 
    1067                  
     1065 
    10681066                clearSelectBox(cities, 1); 
    1069                  
     1067 
    10701068                if (typeof(data) != 'object') 
    10711069                { 
    10721070                        showMessage(Element('cc_msg_err_contacting_server').value); 
    1073                          
     1071 
    10741072                        return; 
    10751073                } 
     
    11161114                } 
    11171115        }; 
    1118          
     1116 
    11191117        Connector.newRequest('populateCities', '../index.php?menuaction=contactcenter.ui_data.data_manager&method=get_cities&'+requestStr, 'GET', handler); 
    11201118} 
     
    11221120function updateAddrNewStateOnMouseOver () 
    11231121{ 
    1124         if (Element('cc_addr_states_new').value == Element('cc_msg_type_state').value && Element('cc_addr_states').selectedIndex == 1)  
     1122        if (Element('cc_addr_states_new').value == Element('cc_msg_type_state').value && Element('cc_addr_states').selectedIndex == 1) 
    11251123        { 
    11261124                Element('cc_addr_states_new').value = ''; 
     
    11301128function updateAddrNewStateOnMouseOut () 
    11311129{ 
    1132         if (Element('cc_addr_states_new').value.length == 0 && Element('cc_addr_states').selectedIndex == 1)  
     1130        if (Element('cc_addr_states_new').value.length == 0 && Element('cc_addr_states').selectedIndex == 1) 
    11331131        { 
    11341132                Element('cc_addr_states_new').value = Element('cc_msg_type_state').value; 
     
    11501148                return; 
    11511149        } 
    1152          
     1150 
    11531151        Element('cc_addr_1').readonly = false; 
    11541152        Element('cc_addr_1').disabled = false; 
     
    11801178 
    11811179                        //resetAddrFillingFields(); 
    1182                          
     1180 
    11831181                        return; 
    11841182 
     
    11881186                        newCity.disabled = false; 
    11891187                        updateAddrNewCityOnMouseOut(); 
    1190                          
     1188 
    11911189                        break; 
    11921190 
     
    12021200function updateAddrNewCityOnMouseOver () 
    12031201{ 
    1204         if (Element('cc_addr_cities_new').value == Element('cc_msg_type_city').value && Element('cc_addr_cities').selectedIndex == 1)  
     1202        if (Element('cc_addr_cities_new').value == Element('cc_msg_type_city').value && Element('cc_addr_cities').selectedIndex == 1) 
    12051203        { 
    12061204                Element('cc_addr_cities_new').value = ''; 
     
    12101208function updateAddrNewCityOnMouseOut () 
    12111209{ 
    1212         if (Element('cc_addr_cities_new').value.length == 0 && Element('cc_addr_cities').selectedIndex == 1)  
     1210        if (Element('cc_addr_cities_new').value.length == 0 && Element('cc_addr_cities').selectedIndex == 1) 
    12131211        { 
    12141212                Element('cc_addr_cities_new').value = Element('cc_msg_type_city').value; 
     
    12241222                return true; 
    12251223        } 
    1226          
    1227         var addrFields = new Array('cc_addr_1',  
    1228                                    'cc_addr_2',  
    1229                                                            'cc_addr_complement',  
     1224 
     1225        var addrFields = new Array('cc_addr_1', 
     1226                                   'cc_addr_2', 
     1227                                                           'cc_addr_complement', 
    12301228                                                           'cc_addr_other', 
    1231                                                            'cc_addr_postal_code',  
     1229                                                           'cc_addr_postal_code', 
    12321230                                                           'cc_addr_po_box', 
    12331231                                                           'cc_addr_countries', 
     
    12361234 
    12371235        var empty = true; 
    1238          
     1236 
    12391237        for (var i = 0; i < 8; i++) 
    12401238        { 
     
    12451243                } 
    12461244        } 
    1247                                  
     1245 
    12481246        if (empty) 
    12491247        { 
     
    12741272                default: 
    12751273                        addrInfo['id_country'] = Element('cc_addr_countries').value; 
    1276                  
     1274 
    12771275        } 
    12781276 
     
    12881286                default: 
    12891287                        addrInfo['id_state'] = Element('cc_addr_states').value; 
    1290                  
     1288 
    12911289        } 
    12921290 
     
    13011299                default: 
    13021300                        addrInfo['id_city'] = Element('cc_addr_cities').value; 
    1303                  
    1304         }        
     1301 
     1302        } 
    13051303 
    13061304        addrInfo['id_typeof_address']  = Element('cc_addr_types').options[lastIndex].value; 
     
    13151313        CC_contact_full_info['addresses']['address'+Element('cc_addr_types').options[lastIndex].value] = addrInfo; 
    13161314 
    1317         if (Element('cc_addr_cities').value == '_NEW_' &&  
     1315        if (Element('cc_addr_cities').value == '_NEW_' && 
    13181316            Element('cc_msg_type_city').value !=  Element('cc_addr_cities_new').value && 
    13191317                Element('cc_addr_cities_new').value != '') 
    13201318        { 
    13211319                var addrRootInfo = CC_contact_full_info['addresses']['new_cities']; 
    1322                  
     1320 
    13231321                if (!addrRootInfo) 
    13241322                { 
    13251323                        addrRootInfo = new Array(); 
    13261324                } 
    1327                  
     1325 
    13281326                var i = addrRootInfo.length; 
    13291327                addrRootInfo[addrInfo['id_typeof_address']] = new Array(); 
     
    13341332        } 
    13351333 
    1336         if (Element('cc_addr_states').value == '_NEW_' &&  
    1337             Element('cc_msg_type_state').value !=  Element('cc_addr_states_new').value &&  
     1334        if (Element('cc_addr_states').value == '_NEW_' && 
     1335            Element('cc_msg_type_state').value !=  Element('cc_addr_states_new').value && 
    13381336                Element('cc_addr_states_new').value != '') 
    13391337        { 
    13401338                var addrRootInfo = CC_contact_full_info['addresses']['new_states']; 
    1341                  
     1339 
    13421340                if (!addrRootInfo) 
    13431341                { 
    13441342                        addrRootInfo = new Array(); 
    13451343                } 
    1346                  
     1344 
    13471345                var i = addrRootInfo.length; 
    13481346                addrRootInfo[addrInfo['id_typeof_address']] = new Array(); 
     
    13741372        for(idx_conn; idx_conn < cc_conn_default.options.length; idx_conn++) 
    13751373                if(cc_conn_default.options[idx_conn].value == _label) 
    1376                         break;   
    1377          
     1374                        break; 
     1375 
    13781376        if(idx_conn == cc_conn_default.options.length) 
    13791377                cc_conn_default.options[idx_conn] = new Option (_label,_label, false,false); 
    1380                          
     1378 
    13811379        if (!document.all) 
    13821380        { 
    1383                 return '<td style="position: absolute; left: 0; top: 0; z-index: -1; visibility: hidden"><input id="cc_conn_id_' + CC_conn_count + '" type="hidden" value="_NEW_"><input id="cc_conn_is_default_' + CC_conn_count + '" type="hidden" value="false"></td>'+ 
    1384                 //'<td style="width: 30px;" align="right"><input name="cc_conn_is_default" id="cc_conn_is_default_'+ CC_conn_count +'" type="radio"></td>'+ 
    1385                 '<td style="width: 10px;" align="right"><input id="cc_conn_name_'+CC_conn_count+'" type="hidden"><td style="width: 100px;" align="right"><span style="width: 150px;" id="cc_conn_label_'+CC_conn_count+'">'+_label+'</span></td>' + 
    1386                 '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" style="width: 150px;" type="text">&nbsp;' + 
    1387                 '<img align="top" alt="X" src="templates/default/images/x.png" style="width:18px; height:18px" onclick="javascript:removeConnField(\'cc_conn_tr_' + CC_conn_count + '\')"></td>'; 
     1381                if (Element("cc_conn_type_1").checked) 
     1382                { 
     1383                        return '<td style="position: absolute; left: 0; top: 0; z-index: -1; visibility: hidden"><input id="cc_conn_id_' + CC_conn_count + '" type="hidden" value="_NEW_"><input id="cc_conn_is_default_' + CC_conn_count + '" type="hidden" value="false"></td>'+ 
     1384                        //'<td style="width: 30px;" align="right"><input name="cc_conn_is_default" id="cc_conn_is_default_'+ CC_conn_count +'" type="radio"></td>'+ 
     1385                        '<td style="width: 10px;" align="right"><input id="cc_conn_name_'+CC_conn_count+'" type="hidden"><td style="width: 100px;" align="right"><span style="width: 150px;" id="cc_conn_label_'+CC_conn_count+'">'+_label+'</span></td>' + 
     1386                        '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" style="width: 150px;" maxlength="100" type="text">&nbsp;' + 
     1387                        '<img align="top" alt="X" src="templates/default/images/x.png" style="width:18px; height:18px" onclick="javascript:removeConnField(\'cc_conn_tr_' + CC_conn_count + '\')"></td>'; 
     1388                } 
     1389                else if (Element("cc_conn_type_2").checked) 
     1390                { 
     1391                        return '<td style="position: absolute; left: 0; top: 0; z-index: -1; visibility: hidden"><input id="cc_conn_id_' + CC_conn_count + '" type="hidden" value="_NEW_"><input id="cc_conn_is_default_' + CC_conn_count + '" type="hidden" value="false"></td>'+ 
     1392                        //'<td style="width: 30px;" align="right"><input name="cc_conn_is_default" id="cc_conn_is_default_'+ CC_conn_count +'" type="radio"></td>'+ 
     1393                        '<td style="width: 10px;" align="right"><input id="cc_conn_name_'+CC_conn_count+'" type="hidden"><td style="width: 100px;" align="right"><span style="width: 150px;" id="cc_conn_label_'+CC_conn_count+'">'+_label+'</span></td>' + 
     1394                        '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" style="width: 150px;" maxlength="50" type="text">&nbsp;' + 
     1395                        '<img align="top" alt="X" src="templates/default/images/x.png" style="width:18px; height:18px" onclick="javascript:removeConnField(\'cc_conn_tr_' + CC_conn_count + '\')"></td>'; 
     1396                } 
    13881397        } 
    13891398        else 
     
    14091418                img.align = 'top'; 
    14101419                img.onclick = function(e){ removeConnField(remove_id);}; 
    1411                  
     1420 
    14121421                for (var i = 0; i < 3; i++) 
    14131422                { 
     
    14201429 
    14211430                inputs[1].id = 'cc_conn_name_'+CC_conn_count; 
    1422                 inputs[1].type = 'hidden';               
     1431                inputs[1].type = 'hidden'; 
    14231432 
    14241433                inputs[2].id = 'cc_conn_value_'+CC_conn_count; 
     
    14491458                || typeof(CC_contact_full_info['connections'][CC_conn_last_selected]) == 'undefined' 
    14501459                || typeof(CC_contact_full_info['connections'][CC_conn_last_selected][CC_conn_count]) == 'undefined'); 
    1451          
    1452         if(_emptyLine) {         
    1453                  
     1460 
     1461        if(_emptyLine) { 
     1462 
    14541463                if(Element("cc_conn_type_sel").value == '-1'){ 
    1455                                 return false;    
    1456                 } 
    1457                  
     1464                                return false; 
     1465                } 
     1466 
    14581467                for(k = 0; k < CC_conn_count; k++) { 
    14591468                        if(Element("cc_conn_name_"+k) && Element("cc_conn_name_"+k).value != "" && Element("cc_conn_name_"+k).value == Element("cc_conn_type_sel").value) { 
    14601469                                alert('Você já possui uma entrada para o tipo "'+Element("cc_conn_type_sel").value+'"!'); 
    1461                                 Element("cc_conn_type_sel").options.selectedIndex = 0;                           
     1470                                Element("cc_conn_type_sel").options.selectedIndex = 0; 
    14621471                                return false; 
    14631472                        } 
    14641473                } 
    1465         }        
     1474        } 
    14661475        if (!document.all) 
    14671476        { 
     
    14901499 
    14911500function connRemoveLine(id) 
    1492 {        
     1501{ 
    14931502        var p = Element(id).parentNode; 
    14941503        var cc_conn_default = Element("cc_phone_default").style.display == '' ? Element("cc_phone_default") : Element("cc_email_default"); 
     
    15291538                } 
    15301539        } 
    1531          
     1540 
    15321541        CC_conn_count = 0; 
    15331542} 
     
    15511560function updateConnFields() 
    15521561{ 
    1553          
     1562 
    15541563        var connID; 
    15551564        var i; 
     
    15601569        var cc_conn_is_default = ''; 
    15611570        var selected_index = ''; 
    1562          
     1571 
    15631572        cc_conn_type_sel.disabled = false; 
    15641573        div_cc_conn_is_default.style.display = ""; 
    1565          
     1574 
    15661575        for(var i = 0;i < cc_conn_type_sel.options.length; i++) 
    1567                 cc_conn_type_sel.options[i--] = null;    
    1568                  
     1576                cc_conn_type_sel.options[i--] = null; 
     1577 
    15691578        if(Element('cc_conn_type_1').checked) { 
    15701579            var lang_new_email = Element('cc_msg_new_email').value; 
    15711580            var lang_main = Element('cc_msg_main').value; 
    1572             var lang_alternative = Element('cc_msg_alternative').value;  
    1573             cc_conn_type_sel[0] = new Option(lang_new_email,'-1');       
     1581            var lang_alternative = Element('cc_msg_alternative').value; 
     1582            cc_conn_type_sel[0] = new Option(lang_new_email,'-1'); 
    15741583            cc_conn_type_sel[1] = new Option(lang_main,lang_main); 
    1575             cc_conn_type_sel[2] = new Option(lang_alternative,lang_alternative);         
     1584            cc_conn_type_sel[2] = new Option(lang_alternative,lang_alternative); 
    15761585                connID = 1; 
    15771586                selected_index = cc_email_default.options.selectedIndex; 
     
    15811590 
    15821591                var lang_select_email = Element('cc_msg_select_email').value; 
    1583                 cc_email_default.options[0] = new Option(lang_select_email,'-1');                
     1592                cc_email_default.options[0] = new Option(lang_select_email,'-1'); 
    15841593                cc_phone_default.style.display = 'none'; 
    1585                 cc_email_default.style.display = '';                     
     1594                cc_email_default.style.display = ''; 
    15861595                cc_conn_is_default = cc_email_default; 
    15871596        } 
     
    15961605                var lang_corporative_fax = Element('cc_msg_corporative_fax').value; 
    15971606                var lang_corporative_pager = Element('cc_msg_corporative_pager').value; 
    1598                  
    1599             cc_conn_type_sel[0] = new Option(lang_new_telephone,'-1');   
     1607 
     1608            cc_conn_type_sel[0] = new Option(lang_new_telephone,'-1'); 
    16001609            cc_conn_type_sel[1] = new Option(lang_home,lang_home); 
    1601             cc_conn_type_sel[2] = new Option(lang_cellphone,lang_cellphone);     
     1610            cc_conn_type_sel[2] = new Option(lang_cellphone,lang_cellphone); 
    16021611            cc_conn_type_sel[3] = new Option(lang_work,lang_work); 
    16031612            cc_conn_type_sel[4] = new Option(lang_fax,lang_fax); 
     
    16081617                        cc_conn_type_sel[8] = new Option(lang_corporative_pager, lang_corporative_pager); 
    16091618                } 
    1610                  
     1619 
    16111620                connID = 2; 
    16121621                selected_index = cc_phone_default.options.selectedIndex; 
     
    16151624                } 
    16161625 
    1617                 var lang_choose_phone = Element('cc_msg_choose_phone').value;            
     1626                var lang_choose_phone = Element('cc_msg_choose_phone').value; 
    16181627                cc_phone_default.options[0] = new Option(lang_choose_phone,'-1'); 
    16191628                cc_email_default.style.display = 'none'; 
     
    16211630                cc_conn_is_default = cc_phone_default; 
    16221631        } 
    1623                          
     1632 
    16241633        Element("cc_conn_type_sel").options.selectedIndex = 0; 
    16251634        /* First save the data */ 
     
    16271636 
    16281637        CC_conn_last_selected = connID; 
    1629          
     1638 
    16301639        clearConn(); 
    1631          
     1640 
    16321641        if (connID == '_NONE_') 
    16331642        {       cc_conn_is_default.disabled = true; 
    16341643                return; 
    16351644        } 
    1636          
     1645 
    16371646        /* If no data already available, return */ 
    16381647        if (!CC_contact_full_info['connections']) 
     
    16581667                        } 
    16591668                } 
    1660         }        
     1669        } 
    16611670        if(cc_conn_is_default.options.length > selected_index) 
    16621671                cc_conn_is_default.options.selectedIndex = (selected_index == "-1" ? 0 : selected_index); 
     
    16791688                        CC_contact_full_info['connections'][CC_conn_last_selected] = new Array(); 
    16801689                } 
    1681                 else  
     1690                else 
    16821691                { 
    16831692                        delete CC_contact_full_info['connections'][CC_conn_last_selected]; 
     
    16911700                                var subNodes = nodes[i].childNodes; 
    16921701                                var found = false; 
    1693                                  
     1702 
    16941703                                for (var j = 0; j < subNodes.length; j++) 
    16951704                                { 
    1696                                         if (subNodes[j].childNodes.length > 0 &&  
     1705                                        if (subNodes[j].childNodes.length > 0 && 
    16971706                                            subNodes[j].childNodes[0].id) 
    16981707                                        { 
     
    17021711                                                        CC_contact_full_info['connections'][CC_conn_last_selected][k] = new Array(); 
    17031712                                                } 
    1704                                                  
     1713 
    17051714                                            if (subNodes[j].childNodes[0].id.indexOf('cc_conn_name') != -1) 
    17061715                                                { 
     
    17221731                                                        else 
    17231732                                                        { 
    1724                                                                 CC_contact_full_info['connections'][CC_conn_last_selected][k]['value'] = '';  
     1733                                                                CC_contact_full_info['connections'][CC_conn_last_selected][k]['value'] = ''; 
    17251734                                                        } 
    17261735                                                } 
     
    17331742                                        } 
    17341743                                } 
    1735                                  
     1744 
    17361745                                if (found) 
    17371746                                { 
     
    17501759                        delete CC_contact_full_info['connections'][CC_conn_last_selected]; 
    17511760                } 
    1752                  
     1761 
    17531762        } 
    17541763 
     
    17761785        var number = randomString().toLowerCase(); 
    17771786        var result = ''; 
    1778          
     1787 
    17791788        if(!is_ie) 
    17801789                result = prompt("Essa operação removerá TODOS os seus \ncontatos pessoais,  e  NÃO  PODERÁ  ser \ndesfeita. Digite o código abaixo:\n\tCódigo de confirmação: "+number); 
     
    17871796                else 
    17881797                        alert('Código Incorreto'); 
    1789         }        
     1798        } 
    17901799} 
    17911800 
     
    18081817                        return; 
    18091818                } 
    1810                  
     1819 
    18111820                if (data['status'] != 'ok') 
    18121821                { 
     
    18141823                        return; 
    18151824                } 
    1816                  
     1825 
    18171826                setTimeout('updateCards()',80);; 
    18181827        }; 
    1819                  
     1828 
    18201829        typeArg = (type == 'groups' ? 'group' : 'entry'); 
    1821                  
     1830 
    18221831        Connector.newRequest('removeEntry', '../index.php?menuaction=contactcenter.ui_data.data_manager&method=remove_'+typeArg+'&remove=' + id, 'GET', handler); 
    18231832} 
     
    18421851        var w_height = 0; 
    18431852        var w_extra = 200; 
    1844          
     1853 
    18451854        if (document.body.clientHeight) 
    18461855        { 
     
    18811890        } 
    18821891} 
     1892 
    18831893function getActualPage () 
    18841894{ 
     
    19451955                                final_page = 1; 
    19461956                        } 
    1947                          
     1957 
    19481958                        html_pages += '<a href="javascript:setPages('+npages+', '+ actual_page +', '+ final_page +')">...</a> '; 
    19491959 
    19501960                        page = showing_page ? showing_page : actual_page; 
    19511961                } 
    1952                  
     1962 
    19531963                for (; page <= npages; page++) 
    19541964                { 
     
    20102020                Element('cc_panel_arrow_last').style.cursor = 'hand'; 
    20112021        } 
    2012          
     2022 
    20132023        Element('cc_panel_pages').innerHTML = html_pages; 
    20142024} 
     
    20222032                        for (j = 0; j < 3; j++) 
    20232033                                document.getElementById("cc_card:"+j+":"+i).innerHTML = ''; 
    2024                 return false; 
    2025         } 
    2026          
    2027         if(type == 'groups' || type == 'shared_groups') 
     2034                        return false; 
     2035        } 
     2036 
     2037        if(type == 'groups' || type =='shared_groups') 
    20282038                return populateGroupsInCards(data,type); 
    2029          
     2039 
    20302040        var pos = 0; 
    20312041        var ncards = data[3].length; 
    2032          
     2042 
    20332043        if (typeof(data[3]) == 'object' && ncards > 0) 
    20342044        { 
     
    20382048                        { 
    20392049                                id = 'cc_card:'+j+':'+i; 
    2040                          
     2050 
    20412051                                for (var k = 0; k < data[2].length; k++) 
    20422052                                { 
     
    20562066                                                                break; 
    20572067                                                } 
    2058                                                  
     2068 
    20592069                                        } 
    2060                                          
    2061                                          
     2070 
     2071 
    20622072                                        /*if(data[2][k] ==  'cc_mail' && data[3][pos][k] == 'none' && !(ccTree.catalog_perms & 2) ) { 
    20632073                                                Element(id).style.display = 'none'; 
    20642074                                                continue; 
    20652075                                        }*/ 
    2066                                  
     2076 
    20672077                                        if(data[3][pos][k] != 'none') 
    20682078                                        { 
     
    20792089                                                                        Element(id+':'+data[2][k]).innerHTML = data[3][pos][k]; 
    20802090                                                                } 
    2081                                                                 if(data[3][pos][9]){ 
    2082                                                                         Element(id+':'+data[2][k]).innerHTML += "<br><span style='margin-left:30px'><font size='-2' color='#808080'><i>"+data[3][pos][9]+"</i></font></span>";  } 
     2091                                                                if(data[3][pos][12]) 
     2092                                                                        Element(id+':'+data[2][k]).innerHTML += "<br><span style='margin-left:30px'><font size='-2' color='#808080'><i>"+data[3][pos][12]+"</i></font></span>";  
    20832093                                                                break; 
    2084                                                          
     2094 
    20852095                                                        case 'cc_mail': 
    2086                                                                  
    20872096                                                                if (data[3][pos][k].length > (CC_visual == 'table'  ? 50 : 20)) 
    20882097                                                                { 
     
    20922101                                                                else 
    20932102                                                                { 
    2094                                                                         Element(id+':'+data[2][k]).innerHTML = data[5] + data[3][pos][k] + '\')">'+ data[3][pos][k]+'</span>';                                                                   
     2103                                                                        Element(id+':'+data[2][k]).innerHTML = data[5] + data[3][pos][k] + '\')">'+ data[3][pos][k]+'</span>'; 
    20952104                                                                } 
    20962105                                                                break; 
    2097                                                          
     2106 
    20982107                                                        case 'cc_phone': 
    20992108                                                                if (data[3][pos][k].length > 20) 
     
    21312140                                                        case 'cc_forwarding_address': 
    21322141                                                                var account_type = data[3][pos][k]; 
    2133                                                                                                                          
     2142 
    21342143                                                                if( !account_type) 
    21352144                                                                        break; 
    2136                                                                                                                                                                                                                                                                                                                                                                                                                                          
     2145 
    21372146                                                                Element(id+':cc_icon_group').innerHTML =  '<span title="'+Element('cc_participants').value+'"  onmouseout="window.status=\'\';" onclick="ccListParticipants.showList(\''+ Element(id+':cc_id').value + '\',null,null,null,\''+account_type+'\');return true;" style="cursor: pointer; cursor: hand; z-index: 1"><img src="templates/default/images/people-mini.png" align="center">&nbsp;&nbsp;</span>'; 
     2147                                                                break; 
     2148 
     2149                                                        //Para tratar tamanho do campo "celular" do empregado 
     2150                                                        case 'cc_mobile': 
     2151                                                                if (data[3][pos][k].length > 20) 
     2152                                                                { 
     2153                                                                        Element(id+':'+data[2][k]).innerHTML = adjustString(data[3][pos][k], 20); 
     2154                                                                        Element(id+':'+data[2][k]).title = data[3][pos][k]; 
     2155                                                                } 
     2156                                                                else 
     2157                                                                { 
     2158                                                                        Element(id+':'+data[2][k]).innerHTML = adjustString(data[3][pos][k], 20); 
     2159                                                                } 
     2160                                                                Element(id+':cc_mobile').innerHTML = data[3][pos][k]; 
     2161                                                                break; 
     2162 
     2163                                                        //Para tratar tamanho do campo "matricula" do empregado 
     2164                                                        case 'cc_empNumber': 
     2165                                                                if (data[3][pos][k].length > 20) 
     2166                                                                { 
     2167                                                                        Element(id+':'+data[2][k]).innerHTML = adjustString(data[3][pos][k], 20); 
     2168                                                                        Element(id+':'+data[2][k]).title = data[3][pos][k]; 
     2169                                                                } 
     2170                                                                else 
     2171                                                                { 
     2172                                                                        Element(id+':'+data[2][k]).innerHTML = adjustString(data[3][pos][k], 20); 
     2173                                                                } 
     2174                                                                Element(id+':cc_empNumber').innerHTML = data[3][pos][k]; 
     2175                                                                break; 
     2176 
     2177                                                        //Para tratar tamanho do campo "departamento" do empregado 
     2178                                                        case 'cc_department': 
     2179                                                                if (data[3][pos][k].length > 15) 
     2180                                                                { 
     2181                                                                        Element(id+':'+data[2][k]).innerHTML = adjustString(data[3][pos][k], 15); 
     2182                                                                        Element(id+':'+data[2][k]).title = data[3][pos][k]; 
     2183                                                                } 
     2184                                                                else 
     2185                                                                { 
     2186                                                                        Element(id+':'+data[2][k]).innerHTML = adjustString(data[3][pos][k], 15); 
     2187                                                                } 
     2188                                                                Element(id+':cc_department').innerHTML = data[3][pos][k]; 
    21382189                                                                break; 
    21392190 
     
    21462197                                                                else 
    21472198                                                                { 
     2199                                                                        if (Element(id+':'+data[2][k]) == null) alert('É nulo'); 
    21482200                                                                        Element(id+':'+data[2][k]).innerHTML = data[3][pos][k]; 
    21492201                                                                } 
    21502202                                                } 
    21512203                                        } 
    2152                                 }                                
     2204                                } 
     2205                                 
    21532206                                if (type == "shared_contacts") { 
    2154                                         if (data[3][pos][8] & 4)  
     2207                                        if (data[3][pos][11] & 4)  
    21552208                                                eval("document.getElementById(id + ':cc_card_edit').onclick = function(){editSharedContact(Element('"+id+"' + ':cc_id').value);};"); 
    21562209                                        else  
     
    21582211                                                        alert(Element('cc_msg_not_allowed').value); 
    21592212                                                }; 
    2160                                         if (data[3][pos][8] & 8)  
     2213                                        if (data[3][pos][11] & 8)  
    21612214                                                eval("document.getElementById(id + ':cc_card_remove').onclick = function(){removeEntry(Element('" + id + "' + ':cc_id').value);};"); 
    21622215                                        else  
     
    21652218                                                }; 
    21662219                                } 
    2167                                  
    2168                                  
    2169                                  
     2220 
    21702221                                if (--ncards == 0) 
    21712222                                { 
     
    21732224                                        i = CC_max_cards[1]; 
    21742225                                } 
    2175          
     2226 
    21762227                                pos++; 
    21772228                        } 
     
    21812232 
    21822233function populateGroupsInCards(data,type) 
    2183 {        
     2234{ 
    21842235        var pos = 0; 
    2185         var contacts = data[5];          
     2236        var contacts = data[5]; 
    21862237        var ncards = data[3].length; 
    2187          
     2238 
    21882239        if (typeof(data[3]) == 'object' && ncards > 0) 
    21892240        { 
     
    21932244                        { 
    21942245                                id = 'cc_card:'+j+':'+i; 
    2195                          
     2246 
    21962247                                for (var k = 0; k < data[2].length; k++) 
    21972248                                { 
    2198                                  
     2249 
    21992250                                        if(data[3][pos][k] != 'none') 
    2200                                         {        
    2201                                                                                          
     2251                                        { 
     2252 
    22022253                                                switch (data[2][k]) 
    2203                                                 {                                                        
     2254                                                { 
    22042255                                                        case 'cc_title': 
    22052256                                                                if (data[3][pos][k].length > 50) 
     
    22152266                                                                        Element(id+':'+data[2][k]).innerHTML += "<br><span style='margin-left:30px'><font size='-2' color='#808080'><i>"+data[3][pos][5]+"</i></font></span>"; 
    22162267                                                                break; 
    2217                                                          
     2268 
    22182269                                                        case 'cc_short_name': 
    22192270                                                                if (data[3][pos][k].length > (CC_visual == 'table'  ? 50 : 20)) 
     
    22272278                                                                } 
    22282279                                                                break; 
    2229                                                          
     2280 
    22302281                                                        case 'cc_contacts': 
    22312282 
     
    22362287                                                                var email = ""; 
    22372288 
    2238                                                                 for (var d = 0; d < contacts.length; d++) {                                                                                                                                                                                                                                                                                                      
     2289                                                                for (var d = 0; d < contacts.length; d++) { 
    22392290                                                                        contact += contacts[d]['names_ordered']+ ","; 
    22402291                                                                        email += contacts[d]['connection_value']+","; 
    22412292                                                                } 
    2242                                                                  
     2293 
    22432294                                                                Element(id+':cc_participantes').innerHTML = '<span title="Ver Participantes" id="' + id + ':ccQuickAdd" onmouseout="window.status=\'\';" onclick="ccListParticipants.showList(\''+ Element(id+':cc_id').value+'value\', \''+contact+'\', \''+email+'\', \''+title+'\', \''+id_group+'\');return true;" style="cursor: pointer; cursor: hand; z-index: 1"><img title="Ver participantes" align="center" src="templates/default/images/people-mini.png">&nbsp;&nbsp</span>'; 
    2244                                                                                                                                                                          
     2295 
    22452296                                                                break; 
    2246                                                          
     2297 
    22472298                                                        case 'cc_id': 
    22482299                                                                var id_contact = data[3][pos][k]; 
    22492300                                                                Element(id+':'+data[2][k]).value = data[3][pos][k]; 
    2250                                                                                                                          
     2301 
    22512302                                                                break; 
    2252                                                                  
     2303 
    22532304                                                } 
    22542305                                        } 
    22552306                                } 
    2256          
     2307 
    22572308                                if (type == "shared_groups") { 
    22582309                                         
     
    22692320                                                }; 
    22702321                                }                                
    2271                                  
    2272                                  
     2322 
    22732323                                if (--ncards == 0) 
    22742324                                { 
     
    22762326                                        i = CC_max_cards[1]; 
    22772327                                } 
    2278          
     2328 
    22792329                                pos++; 
    22802330                        } 
     
    23052355        }; 
    23062356 
    2307         Connector.newRequest('setMaxCards', '../index.php?menuaction=contactcenter.ui_data.data_manager&method=set_n_cards&ncards=' + ncards, 'GET');  
     2357        Connector.newRequest('setMaxCards', '../index.php?menuaction=contactcenter.ui_data.data_manager&method=set_n_cards&ncards=' + ncards, 'GET'); 
    23082358} 
    23092359 
     
    23112361{ 
    23122362        var coord = new Array(); 
    2313          
     2363 
    23142364        //Element('cc_card_space').innerHTML = ''; 
    23152365        //return; 
     
    23182368        //card_space_width = parseInt(is_ie ? document.body.offsetWidth : window.innerWidth) - parseInt(Element('cc_left').offsetWidth) - parseInt(CC_card_extra) - 40; 
    23192369        card_space_height = parseInt(Element('cc_card_space').offsetHeight) - parseInt(CC_card_extra); 
    2320          
     2370 
    23212371        card_width = CC_card_image_width + CC_card_extra; 
    23222372        card_height = CC_card_image_height + CC_card_extra; 
     
    23242374        ncols = parseInt(card_space_width / card_width); 
    23252375        nlines = parseInt(card_space_height / card_height); 
    2326          
     2376 
    23272377        coord[0] = ncols; 
    23282378        //coord[1] = nlines; 
     
    23392389                if(type == 'groups' || type == 'shared_groups') { 
    23402390                        html_card = '<td id="' + id + '" style="width: ' + CC_card_image_width + 'px; height: ' + CC_card_image_height + '">' + 
    2341             '<div style="border: 0px solid #999; position: relative;">' +  
     2391            '<div style="border: 0px solid #999; position: relative;">' + 
    23422392                                '<img src="templates/default/images/card.png" border="0" width="' + CC_card_image_width +'" height="' + CC_card_image_height + '"i ondblclick="editContact(Element(\'' + id + ':cc_id\').value);">' + 
    23432393                                '<img title="'+Element('cc_msg_group_edit').value+'" id="' + id + ':cc_card_edit" style="position: absolute; top: 35px; left: 222px; width: 18px; height: 18px; cursor: pointer; cursor: hand; z-index: 1" onclick="editGroup(Element(\'' + id + ':cc_id\').value);" onmouseover="resizeIcon(\''+id+':cc_card_edit\',0)" onmouseout="resizeIcon(\''+id+':cc_card_edit\',1)" src="templates/default/images/cc_card_edit.png">' + 
    2344                                 '<img title="'+Element('cc_msg_group_remove').value+'" id="' + id + ':cc_card_remove" style="position: absolute; top: 78px; left: 223px; width: 15px; height: 14px; cursor: pointer; cursor: hand; z-index: 1" onclick="removeEntry(Element(\'' + id + ':cc_id\').value,\'groups\');" onmouseover="resizeIcon(\''+id+':cc_card_remove\',0)" onmouseout="resizeIcon(\''+id+':cc_card_remove\',1)" src="templates/default/images/cc_x.png">' +  
     2394                                '<img title="'+Element('cc_msg_group_remove').value+'" id="' + id + ':cc_card_remove" style="position: absolute; top: 78px; left: 223px; width: 15px; height: 14px; cursor: pointer; cursor: hand; z-index: 1" onclick="removeEntry(Element(\'' + id + ':cc_id\').value,\'groups\');" onmouseover="resizeIcon(\''+id+':cc_card_remove\',0)" onmouseout="resizeIcon(\''+id+':cc_card_remove\',1)" src="templates/default/images/cc_x.png">' + 
    23452395                                '<span id="' + id + ':cc_title" style="position: absolute; top: 30px; left: 75px; width: 135px; border: 0px solid #999; font-weight: bold; font-size: 10px; text-align: center; height: 10px;" onmouseover="//Element(\''+id+':cc_name_full\').style.visibility=\'visible\'" onmouseout="//Element(\''+id+':cc_name_full\').style.visibility=\'hidden\'"></span>' + 
    23462396                                '<span id="' + id + ':cc_participantes" style="cursor: pointer; cursor: hand; z-index: 1;position: absolute; top: 15px; left: 15px"></span>' + 
     
    23482398                                '<input id="' + id + ':cc_id" type="hidden">' + 
    23492399                        '</div>' + '</td>'; 
    2350                  
     2400 
    23512401                } 
    23522402                else { 
    23532403                        html_card = '<td id="' + id + '" style="width: ' + CC_card_image_width + 'px; height: ' + CC_card_image_height + '">' + 
    23542404                                '<div style="border: 0px solid #999; position: relative;">' + 
    2355                                         '<img src="templates/default/images/card.png" border="0" width="' + CC_card_image_width +'" height="' + CC_card_image_height + '"i ondblclick="editContact(Element(\'' + id + ':cc_id\').value);">' +  
     2405                                        '<img src="templates/default/images/card.png" border="0" width="' + CC_card_image_width +'" height="' + CC_card_image_height + '"i ondblclick="editContact(Element(\'' + id + ':cc_id\').value);">' + 
    23562406                                                ( ccTree.catalog_perms == 1 ? 
    23572407                                                '<span id="' + id + ':cc_icon_data" style="position: absolute; top: 35px; left: 222px; width: 18px; height: 18px; cursor: pointer; cursor: hand; z-index: 1"></span>':'') + 
     
    23592409                                                '<img title="'+Element('cc_msg_card_edit').value+'" id="' + id + ':cc_card_edit" style="position: absolute; top: 35px; left: 222px; width: 18px; height: 18px; cursor: pointer; cursor: hand; z-index: 1" onclick="editContact(Element(\'' + id + ':cc_id\').value);" onmouseover="resizeIcon(\''+id+':cc_card_edit\',0)" onmouseout="resizeIcon(\''+id+':cc_card_edit\',1)" src="templates/default/images/cc_card_edit.png">' + 
    23602410                                                '<img title="'+Element('cc_msg_card_remove').value+'" id="' + id + ':cc_card_remove" style="position: absolute; top: 78px; left: 223px; width: 15px; height: 14px; cursor: pointer; cursor: hand; z-index: 1" onclick="removeEntry(Element(\'' + id + ':cc_id\').value);" onmouseover="resizeIcon(\''+id+':cc_card_remove\',0)" onmouseout="resizeIcon(\''+id+':cc_card_remove\',1)" src="templates/default/images/cc_x.png">' : '') + 
    2361                                                 '<img id="' + id + ':cc_photo" style="position: absolute; top: 15px; left: 7px;" src="" border="0" ondblclick="editContact(Element(\'' + id + ':cc_id\').value);">' +  
     2411                                                '<img id="' + id + ':cc_photo" style="position: absolute; top: 15px; left: 7px;" src="" border="0" ondblclick="editContact(Element(\'' + id + ':cc_id\').value);">' + 
    23622412                                                '<span id="' + id + ':cc_company" style="position: absolute; top: 5px; left: 75px; width: 135px; border: 0px solid #999; font-weight: bold; font-size: 14px; text-align: center; height: 10px;" onmouseover="//Element(\''+id+':cc_company_full\').style.visibility=\'visible\'" onmouseout="//Element(\''+id+':cc_company_full\').style.visibility=\'hidden\'"></span>' + 
    2363                                                 '<span style="cursor: pointer; cursor: hand; z-index: 1;position: absolute; top: 100px; left: 35px"  valign="bottom" id="' + id + ':cc_icon_group">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>'+  
    2364                                                 '<span id="' + id + ':cc_name" style="position: absolute; top: 30px; left: 75px; width: 135px; border: 0px solid #999; font-weight: bold; font-size: 10px; text-align: center; height: 10px;" onmouseover="//Element(\''+id+':cc_name_full\').style.visibility=\'visible\'" onmouseout="//Element(\''+id+':cc_name_full\').style.visibility=\'hidden\'"></span>' +  
    2365                                                 '<span id="' + id + ':cc_title" style="position: absolute; top: 60px; left: 75px; width: 135px; border: 0px solid #999; font-weight: normal; font-size: 12px; text-align: center; height: 10px;"></span>' +  
    2366                                                 '<span id="' + id + ':cc_phone" style="position: absolute; top: 90px; left: 75px; width: 135px; border: 0px solid #999; font-weight: normal; font-size: 10px; text-align: center; height: 10px;"></span>' +  
    2367                                                 '<span id="' + id + ':cc_mail" style="position: absolute; top: 105px; left: 75px; width: 135px; border: 0px solid #999; font-weight: normal; font-size: 10px; text-align: center; height: 10px;"></span>' +  
    2368                                                 '<span id="' + id + ':cc_alias" style="position: absolute; top: 95px; left: 10px; width: 60px; border: 0px solid #999; font-weight: normal; font-size: 9px; text-align: center; height: 10px;"></span>' +  
     2413                                                '<span style="cursor: pointer; cursor: hand; z-index: 1;position: absolute; top: 100px; left: 35px"  valign="bottom" id="' + id + ':cc_icon_group">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>'+ 
     2414                                                //Para exibir a matricula do empregado nos cartoes 
     2415                                                '<span id="' + id + ':cc_empNumber" style="position: absolute; top: 15px; left: 75px; width: 135px; border: 0px solid #999; font-weight: normal; font-size: 9px; text-align: center; height: 10px;"></span>' + 
     2416                                                '<span id="' + id + ':cc_name" style="position: absolute; top: 30px; left: 75px; width: 135px; border: 0px solid #999; font-weight: bold; font-size: 10px; text-align: center; height: 10px;" onmouseover="//Element(\''+id+':cc_name_full\').style.visibility=\'visible\'" onmouseout="//Element(\''+id+':cc_name_full\').style.visibility=\'hidden\'"></span>' + 
     2417                                                '<span id="' + id + ':cc_title" style="position: absolute; top: 50px; left: 75px; width: 135px; border: 0px solid #999; font-weight: normal; font-size: 12px; text-align: center; height: 10px;"></span>' + 
     2418                                                //Para exibir o setor/lotacao do empregado nos cartoes 
     2419                                                '<span id="' + id + ':cc_department" style="position: absolute; top: 60px; left: 75px; width: 135px; border: 0px solid #999; font-weight: normal; font-size: 10px; text-align: center; height: 10px;"></span>' + 
     2420                                                '<span id="' + id + ':cc_phone" style="position: absolute; top: 75px; left: 75px; width: 135px; border: 0px solid #999; font-weight: normal; font-size: 10px; text-align: center; height: 10px;"></span>' + 
     2421                                                //Para exibir o celular empresarial do empregado na tabela 
     2422                                                '<span id="' + id + ':cc_mobile" style="position: absolute; top: 90px; left: 75px; width: 135px; border: 0px solid #999; font-weight: normal; font-size: 10px; text-align: center; height: 10px;"></span>' + 
     2423                                                '<span id="' + id + ':cc_mail" style="position: absolute; top: 105px; left: 75px; width: 135px; border: 0px solid #999; font-weight: normal; font-size: 10px; text-align: center; height: 10px;"></span>' + 
     2424                                                '<span id="' + id + ':cc_alias" style="position: absolute; top: 95px; left: 10px; width: 60px; border: 0px solid #999; font-weight: normal; font-size: 9px; text-align: center; height: 10px;"></span>' + 
    23692425                                        '<input id="' + id + ':cc_id" type="hidden">' + 
    23702426                                '</div>' + '</td>'; 
    2371                 } 
    2372          
     2427 
     2428                /*} else { 
     2429                        html_card = '<td id="' + id + '" style="width: ' + CC_card_image_width + 'px; height: ' + CC_card_image_height + '">' + 
     2430            '<div style="border: 0px solid #999; position: relative;">' + 
     2431                                '<img src="templates/default/images/card.png" border="0" width="' + CC_card_image_width +'" height="' + CC_card_image_height + '"i ondblclick="editContact(Element(\'' + id + ':cc_id\').value);">' + 
     2432                                '<img title="'+Element('cc_msg_group_edit').value+'" id="' + id + ':cc_card_edit" style="position: absolute; top: 35px; left: 222px; width: 18px; height: 18px; cursor: pointer; cursor: hand; z-index: 1" onclick="editGroup(Element(\'' + id + ':cc_id\').value);" onmouseover="resizeIcon(\''+id+':cc_card_edit\',0)" onmouseout="resizeIcon(\''+id+':cc_card_edit\',1)" src="templates/default/images/cc_card_edit.png">' + 
     2433                                '<img title="'+Element('cc_msg_group_remove').value+'" id="' + id + ':cc_card_remove" style="position: absolute; top: 78px; left: 223px; width: 15px; height: 14px; cursor: pointer; cursor: hand; z-index: 1" onclick="removeEntry(Element(\'' + id + ':cc_id\').value,\'groups\');" onmouseover="resizeIcon(\''+id+':cc_card_remove\',0)" onmouseout="resizeIcon(\''+id+':cc_card_remove\',1)" src="templates/default/images/cc_x.png">' + 
     2434                                '<span id="' + id + ':cc_title" style="position: absolute; top: 30px; left: 75px; width: 135px; border: 0px solid #999; font-weight: bold; font-size: 10px; text-align: center; height: 10px;" onmouseover="//Element(\''+id+':cc_name_full\').style.visibility=\'visible\'" onmouseout="//Element(\''+id+':cc_name_full\').style.visibility=\'hidden\'"></span>' + 
     2435                                '<span id="' + id + ':cc_participantes" style="cursor: pointer; cursor: hand; z-index: 1;position: absolute; top: 15px; left: 15px"></span>' + 
     2436                                '<span onMouseOver="this.title = \''+Element('cc_send_mail').value+'\'" id="' + id + ':cc_short_name" style="position: absolute; top: 105px; left: 75px; width: 135px; border: 0px solid #999; font-weight: normal; font-size: 10px; text-align: center; height: 10px;"></span>' + 
     2437                                '<input id="' + id + ':cc_id" type="hidden">' + 
     2438                        '</div>' + '</td>';*/ 
     2439                } 
    23732440 
    23742441        return html_card; 
     
    23912458                                        '&nbsp;&nbsp;|&nbsp;&nbsp;'+ 
    23922459                                        '<img  title="'+Element('cc_msg_group_remove').value+'" id="' + id + ':cc_card_remove" style="width: 15px; height: 14px; cursor: pointer; cursor: hand; z-index: 1" onclick="removeEntry(Element(\'' + id + ':cc_id\').value,\'groups\');" src="templates/default/images/cc_x.png">'  + 
    2393                                         '<input id="' + id + ':cc_id" type="hidden">'+                                                                           
     2460                                        '<input id="' + id + ':cc_id" type="hidden">'+ 
    23942461                                        '</td></tr>'; 
    2395                                                  
    2396                          
    2397                         } 
    2398                         else { 
    2399                                 html_card = '<tr  style="height:20px" id="' + id + '" onmouseout="'+bg+'" onmouseover="this.style.background=\'LIGHTYELLOW\'" bgcolor="EEEEEE"><td width="auto" style="font-weight: normal; font-size: 10px; text-align: left; height: 10px;">' +                                        
    2400                                         '<span valign="bottom" id="' + id + ':cc_icon_group">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="' + id + ':cc_name"></span></td>' + 
    2401                                         '<td style="solid #999; font-weight: normal; font-size: 10px; text-align: left; height: 10px"><span onMouseOver="this.title = \''+Element('cc_send_mail').value+'\'" id="' + id + ':cc_mail"></span></td>' + 
    2402                                         '<td align="center" nowrap><span style="solid #999; font-weight: normal; font-size: 10px;height: 10px" id="' + id + ':cc_phone"></span></td>' +          
     2462 
     2463        //              if(type != 'groups'||type=='shared_groups') { 
     2464            } 
     2465            else { 
     2466                                html_card = '<tr  style="height:20px" id="' + id + '" onmouseout="'+bg+'" onmouseover="this.style.background=\'LIGHTYELLOW\'" bgcolor="EEEEEE">' + 
     2467                                        //Para exibir a matricula do empregado na tabela 
     2468                                        '<td align="center" nowrap><span style="solid #999; font-weight: normal; font-size: 10px;height: 10px" id="' + id + ':cc_empNumber"></span></td>' + 
     2469                                        '<td width="auto" style="font-weight: normal; font-size: 10px; text-align: left; height: 10px;"><span valign="bottom" id="' + id + ':cc_icon_group">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="' + id + ':cc_name"></span></td>' + 
     2470                                        '<td style="solid #999; font-weight: normal; font-size: 10px; text-align: left; height: 10px"><span onMouseOver="this.title = \''+Element('cc_send_mail').value+' => '+'\'+document.getElementById(\''+id + ':cc_name\').innerHTML" id="' + id + ':cc_mail"></span></td>' + 
     2471                                        '<td align="center" nowrap><span style="solid #999; font-weight: normal; font-size: 10px;height: 10px" id="' + id + ':cc_phone"></span></td>' + 
     2472                                        //Para exibir o celular empresarial do empregado na tabela 
     2473                                        '<td align="center" nowrap><span style="solid #999; font-weight: normal; font-size: 10px;height: 10px" id="' + id + ':cc_mobile"></span></td>' + 
     2474                                        //Para exibir o setor/lotacao do empregado na tabela 
     2475                                        '<td align="center" nowrap><span style="solid #999; font-weight: normal; font-size: 10px;height: 10px" id="' + id + ':cc_department"></span></td>' + 
     2476                                        '<td align="center" nowrap><span style="solid #999; font-weight: normal; font-size: 10px;height: 10px" id="' + id + ':cc_mobile"></span></td>' + 
     2477                                        '<td style="solid #999; font-weight: normal; font-size: 10px; text-align: left; height: 10px"><span onMouseOver="this.title = \''+Element('cc_send_mail').value+' => '+'\'+document.getElementById(\''+id + ':cc_name\').innerHTML" id="' + id + ':cc_mail"></span></td>' + 
    24032478                                        ( ccTree.catalog_perms == 1 ? 
    24042479                                        '<td align="left"><span valign="bottom" id="' + id + ':cc_icon_data"></span></td>':'') + 
     
    24162491                                        '</td></tr>'; 
    24172492                        } 
     2493                        /*else { 
     2494                                html_card = '<tr width="40%" id="' + id + '" onmouseout="'+bg+'" onmouseover="this.style.background=\'LIGHTYELLOW\'" bgcolor="EEEEEE"><td width="auto" style="font-weight: normal; font-size: 10px; text-align: left; height: 10px;">' + 
     2495                                        '<span id="' + id + ':cc_participantes" style="cursor: pointer; cursor: hand; z-index: 1"></span>' + 
     2496                                        '<span id="' + id + ':cc_title"></span></td>' + 
     2497                                        '<td width="40%" style="solid #999; font-weight: normal; font-size: 10px; text-align: left; height: 10px"><span onMouseOver="this.title = \''+Element('cc_send_mail').value+' => '+'\'+document.getElementById(\''+id + ':cc_title\').innerHTML"  id="' + id + ':cc_short_name"></span></td>' + 
     2498                                        '<td align="left" width="55px">'+ 
     2499                                        '<img  title="'+Element('cc_msg_group_edit').value+'" id="' + id + ':cc_card_edit" style=" cursor: pointer; cursor: hand; z-index: 1;width: 18px; height: 18px;"  onclick="editGroup(Element(\'' + id + ':cc_id\').value);" src="templates/default/images/cc_card_edit.png">' + 
     2500                                        '&nbsp;&nbsp;|&nbsp;&nbsp;'+ 
     2501                                        '<img  title="'+Element('cc_msg_group_remove').value+'" id="' + id + ':cc_card_remove" style="width: 15px; height: 14px; cursor: pointer; cursor: hand; z-index: 1" onclick="removeEntry(Element(\'' + id + ':cc_id\').value,\'groups\');" src="templates/default/images/cc_x.png">'  + 
     2502                                        '<input id="' + id + ':cc_id" type="hidden">'+ 
     2503                                        '</td></tr>'; 
     2504                        }*/ 
    24182505 
    24192506        return html_card; 
     
    24232510{ 
    24242511        var pos; 
    2425          
     2512 
    24262513        html_cards = '<div id="divScrollMain" style="overflow:auto;z-index:1"><table width="100%" border="0" cellpadding="0" cellspacing="3">'; 
    2427          
     2514 
    24282515        if (ncards > 0) 
    24292516        { 
     
    24452532                if((ccTree.catalog_perms & 2) && type != 'groups' && type !='shared_contacts' && type !='shared_groups') 
    24462533                        html_cards += '<tr><td colspan=4 align="right"><button id="cc_button_tools" value="" type="button" onclick="javascript:removeAllEntries()">Remover Todos</button></td></tr>'; 
    2447         }        
     2534        } 
    24482535        else if (CC_max_cards != 0) 
    24492536        { 
     
    24652552        html_cards = '<div id="divScrollMain" style="overflow:auto;z-index:1">'; 
    24662553        html_cards += '<table  border="0" cellpadding="0" cellspacing="' + CC_card_extra + '">'; 
    2467          
     2554 
    24682555        if (ncards > 0) 
    24692556        { 
     
    24842571                if((ccTree.catalog_perms & 2) && type != 'groups' && type !='shared_contacts' && type !='shared_groups') 
    24852572                        html_cards += '<tr><td colspan=3 align="right"><button id="cc_button_tools" value="" type="button" onclick="javascript:removeAllEntries()">Remover Todos</button></td></tr>'; 
    2486         }        
     2573        } 
    24872574        else if (CC_max_cards != 0) 
    24882575        { 
     
    25212608                else if(CC_visual == 'table') 
    25222609                        drawTable(0); 
    2523                          
     2610 
    25242611                setPages(0,0); 
    25252612                return; 
    25262613        } 
    2527  
    25282614 
    25292615        var handler = function (responseText) 
     
    25322618                data = unserialize(responseText); 
    25332619                if (data[0] == '0') 
    2534                 {                                
    2535                         Element('cc_type_contact').value = data[1];                      
     2620                { 
     2621                        Element('cc_type_contact').value = data[1]; 
    25362622                        CC_npages = 0; 
    25372623                        CC_actual_page = 1; 
     
    25452631                else 
    25462632                Element('cc_type_contact').value = data[10]; 
    2547                  
    2548 //              Element('cc_debug').innerHTML = responseText;                                            
    2549                  
     2633 
     2634//              Element('cc_debug').innerHTML = responseText; 
     2635 
    25502636                if (typeof(data) != 'object') 
    25512637                { 
     
    25532639                        return; 
    25542640                } 
    2555                  
     2641 
    25562642                if (typeof(data[3]) == 'object') 
    25572643                { 
     
    25662652                        qtd_compartilhado = data[9]; 
    25672653                        CC_npages = parseInt(data[0]); 
    2568                         CC_actual_page = parseInt(data[1]);                      
     2654                        CC_actual_page = parseInt(data[1]); 
    25692655                        if(CC_visual == 'cards') 
    25702656                                drawCards(data[3].length, data[10]); 
     
    25742660                        populateCards(data, data[10]); 
    25752661                        setPages(data[0], data[1]); 
    2576                          
     2662 
     2663                } 
     2664                else if (data['error']) 
     2665                { 
     2666                        showMessage(data['error']); 
    25772667                } 
    25782668                else 
     
    25862676        Connector.newRequest('showCards', '../index.php?menuaction=contactcenter.ui_data.data_manager&method=get_cards_data', 'POST', handler, info); 
    25872677} 
     2678 
    25882679 
    25892680function clearCards() 
     
    26102701        var table_h = Element('cc_panel_table'); 
    26112702        var cards_h = Element('cc_panel_cards'); 
    2612          
     2703 
    26132704        switch (type) 
    26142705        { 
     
    26232714                        break; 
    26242715        } 
    2625          
     2716 
    26262717        CC_visual = type; 
    26272718        showCards(getActualLetter(), getActualPage()); 
    26282719} 
    26292720 
    2630 function ccSearchUpdate(ids) 
     2721/*function ccSearchUpdate(ids) 
    26312722{ 
    26322723        Element('cc_panel_letters').style.display = 'none'; 
    26332724        Element('cc_panel_search').style.display  = 'inline'; 
    2634          
     2725 
    26352726        if(CC_visual == 'cards') 
    26362727                drawCards(0); 
     
    26402731        if (!ids) 
    26412732        { 
    2642                 ccSearchHide(); 
     2733                //ccSearchHide(); 
    26432734                return; 
    26442735        } 
    2645          
     2736 
    26462737        var sIds = serialize(ids); 
    26472738 
     
    26512742        } 
    26522743        showCards('search', '1', sIds); 
     2744} 
     2745*/ 
     2746 
     2747function ccSearchUpdate() 
     2748{ 
     2749        Element('cc_panel_letters').style.display = 'none'; 
     2750        Element('cc_panel_search').style.display  = 'inline'; 
     2751 
     2752        if(CC_visual == 'cards') 
     2753                drawCards(0); 
     2754        else if(CC_visual == 'table') 
     2755                drawTable(0); 
     2756 
     2757        if (CC_actual_letter != 'search') 
     2758        { 
     2759                CC_last_letter = CC_actual_letter; 
     2760        } 
     2761        //showCards('search', '1', sIds); 
    26532762} 
    26542763 
     
    26932802        data[3] = Element('cc_qa_phone').value; 
    26942803        data[4] = Element('cc_qa_email').value; 
     2804 
     2805        return data; 
     2806} 
     2807 
     2808function sendQuickAdd () 
     2809{ 
     2810        var data = getQuickAdd(); 
     2811 
     2812        var str = serialize(data); 
     2813 
     2814        if (!str) 
     2815        { 
     2816                return false; 
     2817        } 
     2818 
     2819        var handler = function (responseText) 
     2820        { 
     2821                setTimeout('updateCards()',100);; 
     2822        } 
     2823 
     2824        resetQuickAdd(); 
     2825 
     2826        Connector.newRequest('quickAdd', '../index.php?menuaction=contactcenter.ui_data.data_manager&method=quick_add', 'POST', handler, 'add='+escape(str)); 
     2827} 
     2828 
    26952829         
    2696         return data; 
    2697 } 
    2698  
    2699 function sendQuickAdd () 
    2700 { 
    2701         var data = getQuickAdd(); 
    2702          
    2703         var str = serialize(data); 
    2704  
    2705         if (!str) 
    2706         { 
    2707                 return false; 
    2708         } 
    2709  
    2710         var handler = function (responseText) 
    2711         { 
    2712                 setTimeout('updateCards()',100);; 
    2713         } 
    2714  
    2715         resetQuickAdd(); 
    2716  
    2717         Connector.newRequest('quickAdd', '../index.php?menuaction=contactcenter.ui_data.data_manager&method=quick_add', 'POST', handler, 'add='+escape(str)); 
    2718 } 
    2719  
    27202830function connectVoip (phoneUser, typePhone){ 
    27212831        var handler_voip = function (responseText){ 
     
    27242834                } 
    27252835                else{ 
    2726                         data = unserialize(responseText); 
     2836                    data = unserialize(responseText); 
    27272837                        alert("Requisitando chamada para o ramal: "+data); 
    2728                 } 
     2838        } 
    27292839        } 
    27302840        Connector.newRequest('voip', "../../expressoMail1_2/controller.php?action=expressoMail1_2.functions.callVoipconnect&to="+phoneUser+"&typePhone="+typePhone, 'POST', handler_voip); 
Note: See TracChangeset for help on using the changeset viewer.