Changeset 2630


Ignore:
Timestamp:
04/27/10 09:54:22 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Mitigando problema com escopo do dominio.

Location:
trunk
Files:
29 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/js/edit_exmail.js

    r2549 r2630  
    227227        } 
    228228 
    229         scriptPath = URL_SERVER + '/' + scriptPath; 
     229        scriptPath = URL_SERVER + scriptPath; 
    230230 
    231231        expresso.connector.oxmlhttp.open("GET", scriptPath, false); 
  • trunk/contactcenter/js/cc.js

    r2475 r2630  
    293293 
    294294        }; 
    295         Connector.newRequest('populateSharingSelect', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=get_cards_data', 'POST', handler); 
     295        Connector.newRequest('populateSharingSelect', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=get_cards_data', 'POST', handler); 
    296296} 
    297297 
     
    398398                //populateRelations(data['relations']); 
    399399        }; 
    400         Connector.newRequest('populateFullEdit', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=get_full_data&id=' + id + "&catalog="+catalog, 'GET', handler); 
     400        Connector.newRequest('populateFullEdit', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=get_full_data&id=' + id + "&catalog="+catalog, 'GET', handler); 
    401401} 
    402402 
     
    443443        ccAddGroup.clear(true);                  
    444444        if(!shared) 
    445                 Connector.newRequest('populateEditGroup', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=get_group&id='+id, 'GET', handler); 
     445                Connector.newRequest('populateEditGroup', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=get_group&id='+id, 'GET', handler); 
    446446        else 
    447                 Connector.newRequest('populateEditGroup', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=get_group&id='+id+'&shared_from='+shared, 'GET', handler); 
     447                Connector.newRequest('populateEditGroup', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=get_group&id='+id+'&shared_from='+shared, 'GET', handler); 
    448448} 
    449449 
     
    462462        /* Personal Data */ 
    463463        Element('cc_full_add_contact_id').value = null; 
    464         Element('cc_pd_photo').src = URL_SERVER + '/contactcenter/templates/default/images/photo.png'; 
     464        Element('cc_pd_photo').src = URL_SERVER + 'contactcenter/templates/default/images/photo.png'; 
    465465 
    466466        /* Addresses */ 
     
    10061006        }; 
    10071007 
    1008         Connector.newRequest('populateStates', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=get_states&country='+Element('cc_addr_countries').value, 'GET', handler); 
     1008        Connector.newRequest('populateStates', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=get_states&country='+Element('cc_addr_countries').value, 'GET', handler); 
    10091009} 
    10101010 
     
    11211121        }; 
    11221122 
    1123         Connector.newRequest('populateCities', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=get_cities&'+requestStr, 'GET', handler); 
     1123        Connector.newRequest('populateCities', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=get_cities&'+requestStr, 'GET', handler); 
    11241124} 
    11251125 
     
    13911391                        '<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>' + 
    13921392                        '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" style="width: 150px;" maxlength="100" type="text">&nbsp;' + 
    1393                         '<img align="top" alt="X" src="' + URL_SERVER + '/contactcenter/templates/default/images/x.png" style="width:18px; height:18px" onclick="javascript:removeConnField(\'cc_conn_tr_' + CC_conn_count + '\')"></td>'; 
     1393                        '<img align="top" alt="X" src="' + URL_SERVER + 'contactcenter/templates/default/images/x.png" style="width:18px; height:18px" onclick="javascript:removeConnField(\'cc_conn_tr_' + CC_conn_count + '\')"></td>'; 
    13941394                } 
    13951395                else if (Element("cc_conn_type_2").checked) 
     
    13991399                        '<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>' + 
    14001400                        '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" style="width: 150px;" maxlength="30" type="text" onkeyup="formatPhone(this)">&nbsp;' + 
    1401                         '<img align="top" alt="X" src="' + URL_SERVER + '/contactcenter/templates/default/images/x.png" style="width:18px; height:18px" onclick="javascript:removeConnField(\'cc_conn_tr_' + CC_conn_count + '\')"></td>'; 
     1401                        '<img align="top" alt="X" src="' + URL_SERVER + 'contactcenter/templates/default/images/x.png" style="width:18px; height:18px" onclick="javascript:removeConnField(\'cc_conn_tr_' + CC_conn_count + '\')"></td>'; 
    14021402                } 
    14031403        } 
     
    14191419                var remove_id = 'cc_conn_tr_'+CC_conn_count; 
    14201420                img.alt = 'X'; 
    1421                 img.src = URL_SERVER + '/contactcenter/templates/default/images/x.png'; 
     1421                img.src = URL_SERVER + 'contactcenter/templates/default/images/x.png'; 
    14221422                img.style.width = '18px'; 
    14231423                img.style.height = '18px'; 
     
    17991799        if(result) { 
    18001800                if(result.toLowerCase() == number) 
    1801                         Connector.newRequest('removeAllEntries', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=remove_all_entries', 'GET', handler); 
     1801                        Connector.newRequest('removeAllEntries', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=remove_all_entries', 'GET', handler); 
    18021802                else 
    18031803                        alert('Código Incorreto'); 
     
    18351835        typeArg = (type == 'groups' ? 'group' : 'entry'); 
    18361836 
    1837         Connector.newRequest('removeEntry', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=remove_'+typeArg+'&remove=' + id, 'GET', handler); 
     1837        Connector.newRequest('removeEntry', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=remove_'+typeArg+'&remove=' + id, 'GET', handler); 
    18381838} 
    18391839 
     
    21422142                                                                Element(id+':cc_photo').src = '../index.php?menuaction=contactcenter.ui_data.data_manager&method=get_photo' + (data[4][pos] != 0 ? '&id='+data[3][pos][k] : ''); 
    21432143                                                                if(ccTree.catalog_perms == 1) 
    2144                                                                         Element(id+':cc_icon_data').innerHTML =  '<span title="'+Element('cc_msg_copy_to_catalog').value+'" id="' + id + ':ccQuickAdd" onmouseout="window.status=\'\';" onclick="ccQuickAddContact.showList(\''+ Element(id+':cc_id').value + '\');return true;" style="cursor: pointer; cursor: hand; z-index: 1"><img src="' + URL_SERVER + '/contactcenter/templates/default/images/address-conduit-16.png" align="center"></span>'; 
     2144                                                                        Element(id+':cc_icon_data').innerHTML =  '<span title="'+Element('cc_msg_copy_to_catalog').value+'" id="' + id + ':ccQuickAdd" onmouseout="window.status=\'\';" onclick="ccQuickAddContact.showList(\''+ Element(id+':cc_id').value + '\');return true;" style="cursor: pointer; cursor: hand; z-index: 1"><img src="' + URL_SERVER + 'contactcenter/templates/default/images/address-conduit-16.png" align="center"></span>'; 
    21452145                                                                break; 
    21462146 
     
    21512151                                                                        break; 
    21522152 
    2153                                                                 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="' + URL_SERVER + '/contactcenter/templates/default/images/people-mini.png" align="center">&nbsp;&nbsp;</span>'; 
     2153                                                                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="' + URL_SERVER + 'contactcenter/templates/default/images/people-mini.png" align="center">&nbsp;&nbsp;</span>'; 
    21542154                                                                break; 
    21552155 
     
    22992299                                                                } 
    23002300 
    2301                                                                 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="' + URL_SERVER + '/contactcenter/templates/default/images/people-mini.png">&nbsp;&nbsp</span>'; 
     2301                                                                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="' + URL_SERVER + 'contactcenter/templates/default/images/people-mini.png">&nbsp;&nbsp</span>'; 
    23022302 
    23032303                                                                break; 
     
    23622362        }; 
    23632363 
    2364         Connector.newRequest('setMaxCards', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=set_n_cards&ncards=' + ncards, 'GET'); 
     2364        Connector.newRequest('setMaxCards', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=set_n_cards&ncards=' + ncards, 'GET'); 
    23652365} 
    23662366 
     
    23972397                        html_card = '<td id="' + id + '" style="width: ' + CC_card_image_width + 'px; height: ' + CC_card_image_height + '">' + 
    23982398            '<div style="border: 0px solid #999; position: relative;">' + 
    2399                                 '<img src="' + URL_SERVER + '/contactcenter/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);">' + 
    2400                                 '<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="' + URL_SERVER + '/contactcenter/templates/default/images/cc_card_edit.png">' + 
    2401                                 '<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="' + URL_SERVER + '/contactcenter/templates/default/images/cc_x.png">' + 
     2399                                '<img src="' + URL_SERVER + 'contactcenter/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);">' + 
     2400                                '<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="' + URL_SERVER + 'contactcenter/templates/default/images/cc_card_edit.png">' + 
     2401                                '<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="' + URL_SERVER + 'contactcenter/templates/default/images/cc_x.png">' + 
    24022402                                '<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>' + 
    24032403                                '<span id="' + id + ':cc_participantes" style="cursor: pointer; cursor: hand; z-index: 1;position: absolute; top: 15px; left: 15px"></span>' + 
     
    24102410                        html_card = '<td id="' + id + '" style="width: ' + CC_card_image_width + 'px; height: ' + CC_card_image_height + '">' + 
    24112411                                '<div style="border: 0px solid #999; position: relative;">' + 
    2412                                         '<img src="' + URL_SERVER + '/contactcenter/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);">' + 
     2412                                        '<img src="' + URL_SERVER + 'contactcenter/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);">' + 
    24132413                                                ( ccTree.catalog_perms == 1 ? 
    24142414                                                '<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>':'') + 
    24152415                                                (ccTree.catalog_perms & 2 ? 
    2416                                                 '<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="' + URL_SERVER + '/contactcenter/templates/default/images/cc_card_edit.png">' + 
    2417                                                 '<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="' + URL_SERVER + '/contactcenter/templates/default/images/cc_x.png">' : '') + 
     2416                                                '<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="' + URL_SERVER + 'contactcenter/templates/default/images/cc_card_edit.png">' + 
     2417                                                '<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="' + URL_SERVER + 'contactcenter/templates/default/images/cc_x.png">' : '') + 
    24182418                                                '<img id="' + id + ':cc_photo" style="position: absolute; top: 15px; left: 7px;" src="" border="0" ondblclick="editContact(Element(\'' + id + ':cc_id\').value);">' + 
    24192419                                                '<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>' + 
     
    24622462                                        '<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+'\'"  id="' + id + ':cc_short_name"></span></td>' + 
    24632463                                        '<td align="left" width="55px">'+ 
    2464                                         '<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="' + URL_SERVER + '/contactcenter/templates/default/images/cc_card_edit.png">' + 
     2464                                        '<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="' + URL_SERVER + 'contactcenter/templates/default/images/cc_card_edit.png">' + 
    24652465                                        '&nbsp;&nbsp;|&nbsp;&nbsp;'+ 
    2466                                         '<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="' + URL_SERVER + '/contactcenter/templates/default/images/cc_x.png">'  + 
     2466                                        '<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="' + URL_SERVER + 'contactcenter/templates/default/images/cc_x.png">'  + 
    24672467                                        '<input id="' + id + ':cc_id" type="hidden">'+ 
    24682468                                        '</td></tr>'; 
     
    24872487                                        '<td align="left" >'+ 
    24882488                                        (ccTree.catalog_perms & 2 ? 
    2489                                         '<img  title="'+Element('cc_msg_card_edit').value+'" id="' + id + ':cc_card_edit" style=" cursor: pointer; cursor: hand; z-index: 1;width: 18px; height: 18px;"  onclick="editContact(Element(\'' + id + ':cc_id\').value);" src="' + URL_SERVER + '/contactcenter/templates/default/images/cc_card_edit.png">' + 
     2489                                        '<img  title="'+Element('cc_msg_card_edit').value+'" id="' + id + ':cc_card_edit" style=" cursor: pointer; cursor: hand; z-index: 1;width: 18px; height: 18px;"  onclick="editContact(Element(\'' + id + ':cc_id\').value);" src="' + URL_SERVER + 'contactcenter/templates/default/images/cc_card_edit.png">' + 
    24902490                                        '&nbsp;&nbsp;|&nbsp;&nbsp;'+ 
    2491                                         '<img title="'+Element('cc_msg_card_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);" src="' + URL_SERVER + '/contactcenter/templates/default/images/cc_x.png">' : '') + 
     2491                                        '<img title="'+Element('cc_msg_card_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);" src="' + URL_SERVER + 'contactcenter/templates/default/images/cc_x.png">' : '') + 
    24922492                                        '<input id="' + id + ':cc_id" type="hidden">'+ 
    24932493                                        '<input type="hidden" id="' + id + ':cc_photo">' + 
     
    26812681 
    26822682        var info = "letter="+letter+"&page="+CC_actual_page+"&ids="+ids; 
    2683         Connector.newRequest('showCards', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=get_cards_data', 'POST', handler, info); 
     2683        Connector.newRequest('showCards', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=get_cards_data', 'POST', handler, info); 
    26842684} 
    26852685 
     
    28312831        resetQuickAdd(); 
    28322832 
    2833         Connector.newRequest('quickAdd', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=quick_add', 'POST', handler, 'add='+escape(str)); 
     2833        Connector.newRequest('quickAdd', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=quick_add', 'POST', handler, 'add='+escape(str)); 
    28342834} 
    28352835 
     
    28452845        } 
    28462846        } 
    2847         Connector.newRequest('voip', URL_SERVER + "/expressoMail1_2/controller.php?action=expressoMail1_2.functions.callVoipconnect&to="+phoneUser+"&typePhone="+typePhone, 'POST', handler_voip); 
    2848         } 
     2847        Connector.newRequest('voip', URL_SERVER + "expressoMail1_2/controller.php?action=expressoMail1_2.functions.callVoipconnect&to="+phoneUser+"&typePhone="+typePhone, 'POST', handler_voip); 
     2848        } 
  • trunk/contactcenter/js/ccIEContacts.js

    r2473 r2630  
    238238                        var typeImport = Element('typeImport').value; 
    239239 
    240                         Connector.newRequest('import_contacts', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=import_contacts&typeImport='+typeImport,'GET',handler_import); 
     240                        Connector.newRequest('import_contacts', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=import_contacts&typeImport='+typeImport,'GET',handler_import); 
    241241                } 
    242242 
     
    280280                var typeExport = Element("typeExport"); 
    281281                Element('export_button').disabled = true; 
    282                 Connector.newRequest('export_contacts', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=export_contacts', 'POST', handler_export, 'typeExport='+typeExport.value); 
     282                Connector.newRequest('export_contacts', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=export_contacts', 'POST', handler_export, 'typeExport='+typeExport.value); 
    283283        } 
    284284 
  • trunk/contactcenter/js/ccMain.js

    r2474 r2630  
    5757                        } 
    5858 
    59                         Connector.newRequest('ViewLdap', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=get_visible_all_ldap', 'GET', ViewLdap);          
     59                        Connector.newRequest('ViewLdap', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=get_visible_all_ldap', 'GET', ViewLdap);           
    6060                         
    6161                        ccTree.Connector = Connector;                                            
  • trunk/contactcenter/js/ccQuickAddContact.js

    r2473 r2630  
    6161                        this.showWindow(div); 
    6262                else { 
    63                         Connector.newRequest('get_catalog_add_contact', URL_SERVER + '/index.php?menuaction=contactcenter.ui_data.data_manager&method=get_catalog_add_contact', 'POST', handler, 'id='+id); 
     63                        Connector.newRequest('get_catalog_add_contact', URL_SERVER + 'index.php?menuaction=contactcenter.ui_data.data_manager&method=get_catalog_add_contact', 'POST', handler, 'id='+id); 
    6464                } 
    6565        } 
  • trunk/expressoAdmin1_2/js/jscode/globals.js

    r2604 r2630  
    11var _controller = new XConnector( { 
    2         "path" : URL_SERVER + "/expressoAdmin1_2", 
     2        "path" : URL_SERVER + "expressoAdmin1_2", 
    33        "controller" : "controller.php?action=" 
    44} ); 
  • trunk/expressoMail1_2/js/jscode/InfoContact.js

    r2572 r2630  
    1111emInfoContact.prototype.createCard = function(){ 
    1212        var pic= new Image();  
    13         pic.src=URL_SERVER + "/expressoMail1_2/templates/"+template+"/images/card.gif";  
     13        pic.src=URL_SERVER + "expressoMail1_2/templates/"+template+"/images/card.gif";  
    1414        card = document.createElement("DIV"); 
    1515        card.id = "card_cc"; 
     
    9191        Element("card_cc_td").innerHTML = "<table cellpadding=0 cellspacing=0 border=0 height='100%' width='100%'><tr><td width='70' height='93' style='padding-top:5px;padding-left:6px' align='center' valign='center'>"+ 
    9292                                                                                "<img src='./inc/show_img.php?email="+data.email+"'></td><td style='padding-left:2px' align='left' valign='top'>"+ 
    93                                                                                 "<br><img align='center' src='"+URL_SERVER+"/expressoMail1_2/templates/"+template+"/images/"+(data.type)+"_catalog.png'><font size=1 color=BLACK>&nbsp;<b>"+get_lang("Sender's Information")+"</b></font>"+ 
     93                                                                                "<br><img align='center' src='"+URL_SERVER+"expressoMail1_2/templates/"+template+"/images/"+(data.type)+"_catalog.png'><font size=1 color=BLACK>&nbsp;<b>"+get_lang("Sender's Information")+"</b></font>"+ 
    9494                                                                                _this.verifyIM(data.uid,data.email)+ 
    95                                                                                 "<br><img align='center' src='"+URL_SERVER+"/expressoMail1_2/templates/"+template+"/images/phone.gif'>&nbsp;<font  size=1  color=BLACK>"+(phoneUser ? phoneUser : get_lang("None") )+"</font>"+ 
     95                                                                                "<br><img align='center' src='"+URL_SERVER+"expressoMail1_2/templates/"+template+"/images/phone.gif'>&nbsp;<font  size=1  color=BLACK>"+(phoneUser ? phoneUser : get_lang("None") )+"</font>"+ 
    9696                                                                                "</td></tr><tr><td valign='top' align='center' colspan='2'>"+ 
    9797                                                                                "<font size=1 color=BLACK>"+cn+"</font>"+ 
  • trunk/expressoMail1_2/js/jscode/abas.js

    r2579 r2630  
    140140                borderTitle = borderTitle.substring(0, resize*0.08); 
    141141 
    142         td.innerHTML = "<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td id=font_border_id_" + ID+" class='font-menu' width=*>" + borderTitle + "</td><td width=1px><img onmousedown='javascript:return false' style='cursor:pointer' onclick=delete_border('" + ID + "','false') src='"+URL_SERVER+"/expressoMail1_2/templates/"+template+"/images/close_button.gif'></td></tr></table>"; 
     142        td.innerHTML = "<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td id=font_border_id_" + ID+" class='font-menu' width=*>" + borderTitle + "</td><td width=1px><img onmousedown='javascript:return false' style='cursor:pointer' onclick=delete_border('" + ID + "','false') src='"+URL_SERVER+"expressoMail1_2/templates/"+template+"/images/close_button.gif'></td></tr></table>"; 
    143143 
    144144        bb = document.getElementById("border_blank"); 
  • trunk/expressoMail1_2/js/jscode/doiMenuData.js

    r2579 r2630  
    1 _icon_dir = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/menu/'; 
     1_icon_dir = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/menu/'; 
    22 
    33function ConstructMenuTools(){ 
  • trunk/expressoMail1_2/js/jscode/drag_area.js

    r2572 r2630  
    2323        this.div_dd.style.display ='none'; 
    2424        this.envelope = new Image(); 
    25         this.envelope.src = URL_SERVER + "/expressoMail1_2/templates/"+template+"/images/envelope.png"; 
     25        this.envelope.src = URL_SERVER + "expressoMail1_2/templates/"+template+"/images/envelope.png"; 
    2626        document.body.appendChild(this.div_dd); 
    2727 
  • trunk/expressoMail1_2/js/jscode/draw_api_folders.js

    r2628 r2630  
    8080        td_element5.align = "center"; 
    8181        td_element5.innerHTML = "<B>"+get_lang("Date")+"</B>";   
    82         td_element5.innerHTML += '<img src ="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/arrow_descendant.gif">'; 
     82        td_element5.innerHTML += '<img src ="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/arrow_descendant.gif">'; 
    8383        td_element6 = document.createElement("TD"); 
    8484        td_element6.setAttribute("width", "10%"); 
     
    206206 
    207207        var sm_envelope_img1 = '<img style="cursor:'+ (is_ie ? 'hand' : 'pointer') +'" title="' + get_lang("Add Contact") + 
    208                 '" onclick="ccQuickAddOne.showList(\''+cc_data+'\')" src="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/user_card.png">'; 
     208                '" onclick="ccQuickAddOne.showList(\''+cc_data+'\')" src="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/user_card.png">'; 
    209209        var to_addybook_add = "<SPAN id='insert_plugin_"+idx_cc+"_"+ID+"'>"; 
    210210        to_addybook_add += addrs; 
     
    251251                td21.height="15"; 
    252252                td22 = document.createElement("TD");     
    253                 td21.setAttribute("background", URL_SERVER + '/phpgwapi/templates/' + template + '/images/dsunused.gif'); 
     253                td21.setAttribute("background", URL_SERVER + 'phpgwapi/templates/' + template + '/images/dsunused.gif'); 
    254254                table221 = document.createElement("TABLE"); 
    255255                tbody221 = document.createElement("TBODY"); 
     
    271271                } 
    272272                else if(value > 80) 
    273                         td221.setAttribute("background", URL_SERVER + '/expressoMail1_2/templates/' + template + '/images/dswarn.gif'); 
     273                        td221.setAttribute("background", URL_SERVER + 'expressoMail1_2/templates/' + template + '/images/dswarn.gif'); 
    274274                else 
    275275                        td221.className = 'dsused'; 
     
    633633 
    634634if (trash_span) 
    635         trash_span.style.backgroundImage="url(" + URL_SERVER + "/phpgwapi/templates/"+template+"/images/foldertree_trash.png)"; 
     635        trash_span.style.backgroundImage="url(" + URL_SERVER + "phpgwapi/templates/"+template+"/images/foldertree_trash.png)"; 
    636636 
    637637if (draft_span) 
    638         draft_span.style.backgroundImage="url(" + URL_SERVER + "/phpgwapi/templates/"+template+"/images/foldertree_draft.png)"; 
     638        draft_span.style.backgroundImage="url(" + URL_SERVER + "phpgwapi/templates/"+template+"/images/foldertree_draft.png)"; 
    639639 
    640640if (sent_span) 
    641         sent_span.style.backgroundImage="url(" + URL_SERVER + "/phpgwapi/templates/"+template+"/images/foldertree_sent.png)"; 
     641        sent_span.style.backgroundImage="url(" + URL_SERVER + "phpgwapi/templates/"+template+"/images/foldertree_sent.png)"; 
    642642 
    643643if (spam_span) 
    644         spam_span.style.backgroundImage="url(" + URL_SERVER + "/phpgwapi/templates/"+template+"/images/foldertree_spam.png)"; 
     644        spam_span.style.backgroundImage="url(" + URL_SERVER + "phpgwapi/templates/"+template+"/images/foldertree_spam.png)"; 
    645645 
    646646 
     
    759759                        } 
    760760                } 
    761                 expresso.connector.newRequest('error.html', URL_SERVER + '/expressoMail1_2/templates/'+template+'/error.html', 'GET', 
     761                expresso.connector.newRequest('error.html', URL_SERVER + 'expressoMail1_2/templates/'+template+'/error.html', 'GET', 
    762762                                function(data) 
    763763                                { 
     
    920920        td_element2.setAttribute("width", "2%"); 
    921921        if (headers_msgs.attachment && headers_msgs.attachment.number_attachments > 0) 
    922                 td_element2.innerHTML = '<img src ="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/clip.gif" title="' + url_decode(headers_msgs.attachment.names) + '">';                      
     922                td_element2.innerHTML = '<img src ="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/clip.gif" title="' + url_decode(headers_msgs.attachment.names) + '">';                       
    923923 
    924924        td_element21 = document.createElement("TD"); 
     
    932932                { 
    933933                        if (url_decode(attach_name[item]) != 'smime.p7s' && url_decode(attach_name[item]) != 'smime.p7m'){ 
    934                                 td_element21.innerHTML = '<img src ="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/clip.gif" title="' + url_decode(attach_name[item]) + '">'; 
     934                                td_element21.innerHTML = '<img src ="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/clip.gif" title="' + url_decode(attach_name[item]) + '">'; 
    935935                                break; 
    936936                        } 
     
    939939 
    940940        if ((headers_msgs.Forwarded == 'F')  || (headers_msgs.Draft == 'X' && headers_msgs.Answered == 'A')){ 
    941                 td_element21.innerHTML = '<img src ="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/forwarded.gif" title="'+get_lang('Forwarded')+'">'; 
     941                td_element21.innerHTML = '<img src ="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/forwarded.gif" title="'+get_lang('Forwarded')+'">'; 
    942942                headers_msgs.Draft = ''; 
    943943                headers_msgs.Answered = ''; 
     
    945945        } 
    946946        else if (headers_msgs.Draft == 'X') 
    947                 td_element21.innerHTML = '<img src ="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/draft.gif" title="'+get_lang('Draft')+'">'; 
     947                td_element21.innerHTML = '<img src ="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/draft.gif" title="'+get_lang('Draft')+'">'; 
    948948        else if (headers_msgs.Answered == 'A') 
    949                 td_element21.innerHTML = '<img src ="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/answered.gif" title="'+get_lang('Answered')+'">'; 
     949                td_element21.innerHTML = '<img src ="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/answered.gif" title="'+get_lang('Answered')+'">'; 
    950950        else 
    951951                td_element21.innerHTML = "&nbsp;&nbsp;&nbsp;"; 
     
    963963                case "signature": 
    964964                { 
    965                         td_element22.innerHTML = '<img src ="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/signed_msg.gif" title="' + get_lang('Signed message') + '">'; 
     965                        td_element22.innerHTML = '<img src ="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/signed_msg.gif" title="' + get_lang('Signed message') + '">'; 
    966966                        break; 
    967967                } 
    968968                case "cipher": 
    969969                { 
    970                         td_element22.innerHTML = '<img src ="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/lock.gif" title="' + get_lang('Crypted message') + '">'; 
     970                        td_element22.innerHTML = '<img src ="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/lock.gif" title="' + get_lang('Crypted message') + '">'; 
    971971                        break; 
    972972                } 
     
    984984        if (headers_msgs.Flagged == 'F' || (headers_msgs.Importance.toLowerCase().indexOf("high") != -1 && parseInt(preferences.use_important_flag))) 
    985985        { 
    986                 td_element23.innerHTML = '<img src ="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/important.gif" title="'+get_lang('Important')+'">'; 
     986                td_element23.innerHTML = '<img src ="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/important.gif" title="'+get_lang('Important')+'">'; 
    987987        } 
    988988        else 
     
    996996        // preload image 
    997997        var _img_sent = new Image(); 
    998         _img_sent.src    = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/sent.gif'; 
     998        _img_sent.src    = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/sent.gif'; 
    999999 
    10001000        td_element3 = document.createElement("TD"); 
     
    10151015                else{                            
    10161016                        if(headers_msgs.to.email != null && headers_msgs.to.email.toLowerCase() != Element("user_email").value) 
    1017                                 td_element24.innerHTML = '<img valign="center" src ="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/sent.gif" title="'+get_lang('Sent')+'">'; 
     1017                                td_element24.innerHTML = '<img valign="center" src ="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/sent.gif" title="'+get_lang('Sent')+'">'; 
    10181018 
    10191019                        if ((headers_msgs.to)&&(headers_msgs.to.name != null)) 
  • trunk/expressoMail1_2/js/jscode/draw_api_messages.js

    r2624 r2630  
    7777        document.getElementById("message_header_SORTARRIVAL_"+numBox).innerHTML = get_lang("Date"); 
    7878        document.getElementById("message_header_SORTSIZE_"+numBox).innerHTML    = get_lang("Size");      
    79         document.getElementById("message_header_"+(sort_box_type.lastIndexOf("SORT") != "-1" ? sort_box_type : "SORTARRIVAL")+"_"+numBox ).innerHTML = "<B>"+type_name+'</B><img src ="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/arrow_'+(sort_box_reverse == 1 ? 'desc' : 'asc')+'endant.gif">'; 
     79        document.getElementById("message_header_"+(sort_box_type.lastIndexOf("SORT") != "-1" ? sort_box_type : "SORTARRIVAL")+"_"+numBox ).innerHTML = "<B>"+type_name+'</B><img src ="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/arrow_'+(sort_box_reverse == 1 ? 'desc' : 'asc')+'endant.gif">'; 
    8080} 
    8181function draw_message(info_msg, ID){ 
     
    9595        var img_next_msg = document.createElement("IMG"); 
    9696        img_next_msg.id = 'msg_opt_next_' + ID; 
    97         img_next_msg.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/down.button.png'; 
     97        img_next_msg.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/down.button.png'; 
    9898        img_next_msg.title = get_lang('Next'); 
    9999        img_next_msg.style.cursor = 'pointer'; 
     
    125125                else 
    126126                { 
    127                         img_next_msg.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/down.gray.button.png'; 
     127                        img_next_msg.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/down.gray.button.png'; 
    128128                        img_next_msg.style.cursor = 'default'; 
    129129 
     
    132132        else 
    133133        { 
    134                 img_next_msg.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/down.gray.button.png'; 
     134                img_next_msg.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/down.gray.button.png'; 
    135135                img_next_msg.style.cursor = 'default'; 
    136136                if (!proxy_mensagens.is_local_folder(get_current_folder()) && !(info_msg.msg_folder == "INBOX/decifradas")) // testa se a mensagem e local 
     
    151151        var img_previous_msg = document.createElement("IMG"); 
    152152        img_previous_msg.id = 'msg_opt_previous_' + ID; 
    153         img_previous_msg.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/up.button.png'; 
     153        img_previous_msg.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/up.button.png'; 
    154154        img_previous_msg.title = get_lang('Previous'); 
    155155        img_previous_msg.style.cursor = 'pointer'; 
     
    180180                else 
    181181                { 
    182                         img_previous_msg.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/up.gray.button.png'; 
     182                        img_previous_msg.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/up.gray.button.png'; 
    183183                        img_previous_msg.style.cursor = 'default'; 
    184184                } 
     
    186186        else 
    187187        { 
    188                 img_previous_msg.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/up.gray.button.png'; 
     188                img_previous_msg.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/up.gray.button.png'; 
    189189                img_previous_msg.style.cursor = 'default'; 
    190190                if (!proxy_mensagens.is_local_folder(get_current_folder()) && !(info_msg.msg_folder == "INBOX/decifradas")) // testa se a mensagem e local 
     
    235235        td.innerHTML = _name.bold() + ', ' + info_msg.smalldate; 
    236236        if (info_msg.attachments.length > 0) 
    237                 td.innerHTML += "&nbsp<img style='cursor:pointer' onclick='javascript:Element(\"option_hide_more_"+ID+"\").onclick()' src ='" + URL_SERVER + "/expressoMail1_2/templates/"+template+"/images/clip.gif' title='"+info_msg.attachments.names+"'>"; 
     237                td.innerHTML += "&nbsp<img style='cursor:pointer' onclick='javascript:Element(\"option_hide_more_"+ID+"\").onclick()' src ='" + URL_SERVER + "expressoMail1_2/templates/"+template+"/images/clip.gif' title='"+info_msg.attachments.names+"'>"; 
    238238 
    239239        if (typeof(info_msg.signature) == 'string') 
    240240        {        
    241241                if (info_msg.signature != "void") 
    242                         td.innerHTML += '&nbsp;<img style="cursor:pointer" onclick="alert(\''+ get_lang("This message is signed, and you can trust.") + info_msg.signature +'\');" src="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/signed.gif">'; 
     242                        td.innerHTML += '&nbsp;<img style="cursor:pointer" onclick="alert(\''+ get_lang("This message is signed, and you can trust.") + info_msg.signature +'\');" src="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/signed.gif">'; 
    243243                else 
    244                         td.innerHTML += "&nbsp;<img style='cursor:pointer' onclick='alert(\""+get_lang("This message is signed, but it is invalid. You should not trust on it.")+"\");' title='"+get_lang("Voided message")+"' src='" + URL_SERVER + "/expressoMail1_2/templates/"+template+"/images/invalid.gif'>"; 
     244                        td.innerHTML += "&nbsp;<img style='cursor:pointer' onclick='alert(\""+get_lang("This message is signed, but it is invalid. You should not trust on it.")+"\");' title='"+get_lang("Voided message")+"' src='" + URL_SERVER + "expressoMail1_2/templates/"+template+"/images/invalid.gif'>"; 
    245245        } 
    246246 
    247247        if (info_msg.DispositionNotificationTo) 
    248248        { 
    249                 td.innerHTML += '&nbsp;<img style="cursor:pointer" alt="'+ get_lang('Message with read notification') + '" title="'+ get_lang('Message with read notification') + '" src="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/notification.gif">'; 
     249                td.innerHTML += '&nbsp;<img style="cursor:pointer" alt="'+ get_lang('Message with read notification') + '" title="'+ get_lang('Message with read notification') + '" src="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/notification.gif">'; 
    250250        } 
    251251 
     
    319319                option_reply_options.id = 'msg_opt_reply_options_'+ID; 
    320320                option_reply_options.onmouseover = function(){ 
    321                                 option_reply_options.src= URL_SERVER+'/expressoMail1_2/templates/default/images/over.png'; 
     321                                option_reply_options.src= URL_SERVER+'expressoMail1_2/templates/default/images/over.png'; 
    322322                }; 
    323323                option_reply_options.onmouseout = function(){ 
    324324                        if (this.value == 'show') 
    325325                        { 
    326                                 option_reply_options.src= URL_SERVER+'/expressoMail1_2/templates/default/images/down.png'; 
     326                                option_reply_options.src= URL_SERVER+'expressoMail1_2/templates/default/images/down.png'; 
    327327                        } 
    328328                        else 
    329329                        { 
    330                                 option_reply_options.src= URL_SERVER+'/expressoMail1_2/templates/default/images/pressed.png'; 
     330                                option_reply_options.src= URL_SERVER+'expressoMail1_2/templates/default/images/pressed.png'; 
    331331                        } 
    332332                }; 
     
    334334                        if (this.value == 'show'){ 
    335335                                this.value = 'hide'; 
    336                                 option_reply_options.src= URL_SERVER+'/expressoMail1_2/templates/default/images/pressed.png'; 
     336                                option_reply_options.src= URL_SERVER+'expressoMail1_2/templates/default/images/pressed.png'; 
    337337                                Element('tr_other_options_'+ID).style.display = ''; 
    338338 
     
    340340                        else{ 
    341341                                this.value = 'show'; 
    342                                 option_reply_options.src= URL_SERVER+'/expressoMail1_2/templates/default/images/down.png'; 
     342                                option_reply_options.src= URL_SERVER+'expressoMail1_2/templates/default/images/down.png'; 
    343343                                Element('tr_other_options_'+ID).style.display = 'none'; 
    344344                        } 
    345345                }; 
    346                 option_reply_options.src= URL_SERVER+'/expressoMail1_2/templates/default/images/down.png'; 
     346                option_reply_options.src= URL_SERVER+'expressoMail1_2/templates/default/images/down.png'; 
    347347                option_reply_options.value = 'show'; 
    348348                var option_reply = document.createElement("SPAN"); 
     
    413413                        if(signature_status_pos < 0 ) 
    414414                        { 
    415                                 td.innerHTML += '&nbsp;<img style="cursor:pointer" src="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/signed_error.gif" title="'+get_lang("Details")+'">'; 
     415                                td.innerHTML += '&nbsp;<img style="cursor:pointer" src="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/signed_error.gif" title="'+get_lang("Details")+'">'; 
    416416                                tr_signature.style.display = ''; 
    417417                        } 
    418418                        else 
    419419                        { 
    420                                 td.innerHTML += '&nbsp;<img style="cursor:pointer" src="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/signed_table.gif" title="'+get_lang("Details")+'">'; 
     420                                td.innerHTML += '&nbsp;<img style="cursor:pointer" src="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/signed_table.gif" title="'+get_lang("Details")+'">'; 
    421421                        } 
    422422                        td.onclick = function(){ 
     
    861861                                if (forbidden) 
    862862                                { 
    863                                         newBody = newBody.replace(imgTag[j],"<img src='" + URL_SERVER + "/expressoMail1_2/templates/"+template+"/images/forbidden.jpg'>"); 
     863                                        newBody = newBody.replace(imgTag[j],"<img src='" + URL_SERVER + "expressoMail1_2/templates/"+template+"/images/forbidden.jpg'>"); 
    864864                                        blocked=true; 
    865865                                } 
     
    939939                } 
    940940 
    941                 td.innerHTML += "<BR><img src='" + URL_SERVER + "/expressoMail1_2/templates/"+template+"/images/menu/ktip.png'>"+get_lang("<b>Tip:</b> For faster save, click over the image with <u>right button</u>."); 
     941                td.innerHTML += "<BR><img src='" + URL_SERVER + "expressoMail1_2/templates/"+template+"/images/menu/ktip.png'>"+get_lang("<b>Tip:</b> For faster save, click over the image with <u>right button</u>."); 
    942942                td.innerHTML += "<BR>"; 
    943943 
     
    11591159        if (!expresso_offline) { 
    11601160                var img_search = document.createElement("IMG"); 
    1161                 img_search.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/search.gif'; 
     1161                img_search.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/search.gif'; 
    11621162                img_search.title = get_lang('Search') + " | " + get_lang('Use F9 Key as shortcut.'); 
    11631163                img_search.onclick = function () {emQuickSearch(document.getElementById('to_'+ID).value, 'to', ID);}; 
     
    12831283        td_cc.appendChild(input_cc); 
    12841284        var img_search = document.createElement("IMG"); 
    1285         img_search.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/search.gif'; 
     1285        img_search.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/search.gif'; 
    12861286        img_search.onclick = function () {emQuickSearch(document.getElementById('cc_'+ID).value, 'cc', ID)}; 
    12871287        img_search.title = get_lang('Search') + " | " + get_lang('Use F9 Key as shortcut.'); 
     
    13661366        td_cco.appendChild(input_cco); 
    13671367        var img_search = document.createElement("IMG"); 
    1368         img_search.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/search.gif'; 
     1368        img_search.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/search.gif'; 
    13691369        img_search.title = get_lang('Search') + " | " + get_lang('Use F9 Key as shortcut.');     
    13701370        img_search.onclick = function () {emQuickSearch(document.getElementById('cco_'+ID).value, 'cco', ID);}; 
     
    17331733        dn_em.setAttribute("title",get_lang("Block Sender")); 
    17341734        dn_em.style.cursor = "pointer";          
    1735         dn_em.innerHTML = "<img align='top' onclick=filter.new_rule('"+email+"') src='" + URL_SERVER + "/expressoMail1_2/templates/"+template+"/images/deny.gif'>"; 
     1735        dn_em.innerHTML = "<img align='top' onclick=filter.new_rule('"+email+"') src='" + URL_SERVER + "expressoMail1_2/templates/"+template+"/images/deny.gif'>"; 
    17361736        return dn_em; 
    17371737 
  • trunk/expressoMail1_2/js/jscode/filters.js

    r2521 r2630  
    77                // Images 
    88                this.grp_open_img = new Image(); 
    9                 this.grp_open_img.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/filtro/group_open.gif'; 
     9                this.grp_open_img.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/filtro/group_open.gif'; 
    1010                this.grp_close_img = new Image(); 
    11                 this.grp_close_img.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/filtro/group_close.gif'; 
     11                this.grp_close_img.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/filtro/group_close.gif'; 
    1212                this.filter_img = new Image(); 
    13                 this.filter_img.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/filtro/filters.gif'; 
     13                this.filter_img.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/filtro/filters.gif'; 
    1414                this.for_email_img = new Image(); 
    15                 this.for_email_img.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/filtro/answered.gif'; 
     15                this.for_email_img.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/filtro/answered.gif'; 
    1616                this.telephone_voip = new Image(); 
    17                 this.telephone_voip.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/filtro/telephone_voip.jpg'; 
     17                this.telephone_voip.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/filtro/telephone_voip.jpg'; 
    1818        }                
    1919 
  • trunk/expressoMail1_2/js/jscode/globals.js

    r2611 r2630  
    2323        '<tr><td align=left height=16px width="1%" nowrap class="table_top">&nbsp;'+ 
    2424        '<a href=# onclick="javascript:new_message(\'new\',\'null\')" align=left>'+ 
    25         '<img src="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/menu/createmail.gif">'+ 
     25        '<img src="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/menu/createmail.gif">'+ 
    2626        '&nbsp;Novo</a>&nbsp;&nbsp;'+ 
    2727        '<a href="#" onclick="javascript:wfolders.makeWindow(\'\', \'change_folder\')" align=left>'+ 
    28         '<img src="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/menu/editfolders.png">'+ 
     28        '<img src="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/menu/editfolders.png">'+ 
    2929        '&nbsp;Trocar Pasta</a>&nbsp;&nbsp'+     
    3030        '<a href="#" onclick="javascript:refresh();" align=left>'+ 
    31         '<img src="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/menu/checkmail.gif">'+ 
     31        '<img src="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/menu/checkmail.gif">'+ 
    3232        '&nbsp;Atualizar</a>&nbsp;&nbsp;'+ 
    3333        '<a id="link_tools" href="#" align=left>'+ 
    34         '<img height="16px" src="' + URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/menu/tools.gif">'+ 
     34        '<img height="16px" src="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/menu/tools.gif">'+ 
    3535        '&nbsp;Ferramentas...</a>&nbsp;&nbsp;</td><td style="padding-left:17px" width="1%" id="content_quota" align=left nowrap></td><td width=* id="div_menu_c3" align="right"></td></tr></table>'; 
    3636 
  • trunk/expressoMail1_2/js/jscode/load_lang.js

    r2603 r2630  
    55 
    66        var request = _connector.cache( ).go( { 
    7                 'access' : URL_SERVER + '/expressoMail1_2/inc/load_lang.php?lang=' + lang, 
     7                'access' : URL_SERVER + 'expressoMail1_2/inc/load_lang.php?lang=' + lang, 
    88                'handler' : function( data ) 
    99                { 
  • trunk/expressoMail1_2/js/jscode/main.js

    r2628 r2630  
    14211421                title = title.substring(0, parseInt(resize)*0.08); 
    14221422 
    1423         Element("border_id_" + new_border_ID).innerHTML = "<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td id=font_border_id_" + new_border_ID +" class='font-menu' width=*>" +title + "</td><td width=1px><img onmousedown='javascript:return false' style='cursor:pointer' onclick=delete_border('" + new_border_ID + "','false') src='"+URL_SERVER+"/expressoMail1_2/templates/"+template+"/images/close_button.gif'></td></tr></table>"; 
     1423        Element("border_id_" + new_border_ID).innerHTML = "<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td id=font_border_id_" + new_border_ID +" class='font-menu' width=*>" +title + "</td><td width=1px><img onmousedown='javascript:return false' style='cursor:pointer' onclick=delete_border('" + new_border_ID + "','false') src='"+URL_SERVER+"expressoMail1_2/templates/"+template+"/images/close_button.gif'></td></tr></table>"; 
    14241424        return new_border_ID; //Preciso retornar o ID da nova mensagem. 
    14251425} 
     
    20682068                if (data.status && Element("td_message_answered_"+msg_number)) {         
    20692069                        if(flag == 'answered') 
    2070                                 Element("td_message_answered_"+msg_number).innerHTML = '<img src="'+URL_SERVER+'/expressoMail1_2/templates/'+template+'/images/answered.gif" title="Respondida">'; 
     2070                                Element("td_message_answered_"+msg_number).innerHTML = '<img src="'+URL_SERVER+'expressoMail1_2/templates/'+template+'/images/answered.gif" title="Respondida">'; 
    20712071                        else if(flag == 'forwarded') 
    2072                                 Element("td_message_answered_"+msg_number).innerHTML = '<img src="'+URL_SERVER+'/expressoMail1_2/templates/'+template+'/images/forwarded.gif" title="Encaminhada">'; 
     2072                                Element("td_message_answered_"+msg_number).innerHTML = '<img src="'+URL_SERVER+'expressoMail1_2/templates/'+template+'/images/forwarded.gif" title="Encaminhada">'; 
    20732073                } 
    20742074        }; 
  • trunk/expressoMail1_2/js/jscode/rich_text_editor.js

    r2572 r2630  
    179179                img.className = 'imagebutton'; 
    180180                img.align = 'center'; 
    181                 img.src = URL_SERVER + '/expressoMail1_2/templates/'+template+'/images/'+buttons[i]+'.gif'; 
     181                img.src = URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/'+buttons[i]+'.gif'; 
    182182                img.title = get_lang(buttons[i]); 
    183183                img.style.cursor = 'pointer'; 
  • trunk/expressoMail1_2/js/modal/modal.js

    r2563 r2630  
    166166        cssNode.rel = 'stylesheet'; 
    167167        if (navigator.userAgent.toLowerCase().indexOf("msie") != -1) 
    168                 cssNode.href = URL_SERVER + "/expressoMail1_2/js/modal/css/modal_ie.css"; 
     168                cssNode.href = URL_SERVER + "expressoMail1_2/js/modal/css/modal_ie.css"; 
    169169        else 
    170                 cssNode.href = URL_SERVER + "/expressoMail1_2/js/modal/css/modal_fx.css"; 
     170                cssNode.href = URL_SERVER + "expressoMail1_2/js/modal/css/modal_fx.css"; 
    171171         
    172172        cssNode.media = 'screen'; 
  • trunk/filemanager/js/draw_api.js

    r2623 r2630  
    1212 
    1313function loadHistory(filename){ 
    14         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.history&file='+base64_encode(filename)+"&path="+base64_encode(currentPath),draw_window); 
     14        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.history&file='+base64_encode(filename)+"&path="+base64_encode(currentPath),draw_window); 
    1515} 
    1616 
     
    163163        window.onresize = resizeDiv; 
    164164        document.body.style.overflow = "hidden"; 
    165         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.get_folders_list',handler.draw_folders_list); 
     165        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.get_folders_list',handler.draw_folders_list); 
    166166} 
    167167 
     
    216216                newpage += '<td></td><td></td>'; 
    217217                newpage += fl.td+'<img src="'+files[i].icon+'">'; 
    218                 newpage += '<a id="name_'+files[i].name+'" href="' + URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(files[i].name)+'&path='+base64_encode(files[i].directory)+'" target="_blank">'+files[i].name+'</a>&nbsp;</td>'; 
     218                newpage += '<a id="name_'+files[i].name+'" href="' + URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(files[i].name)+'&path='+base64_encode(files[i].directory)+'" target="_blank">'+files[i].name+'</a>&nbsp;</td>'; 
    219219                newpage += fl.td+files[i].directory+'</td>'; 
    220220                if (preferences.mime_type =='1') newpage += fl.td+files[i].mime_type+'</td>'; 
     
    246246                { 
    247247                        case 'text/html': 
    248                                 retBuff += '<td><a href="' + URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.export&file='+base64_encode(file.name)+'&path='+base64_encode(currentPath)+'"><div class="exportButton" alt="'+get_lang('export')+'" title="'+get_lang('export')+'"></div></a></td>'; 
     248                                retBuff += '<td><a href="' + URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.export&file='+base64_encode(file.name)+'&path='+base64_encode(currentPath)+'"><div class="exportButton" alt="'+get_lang('export')+'" title="'+get_lang('export')+'"></div></a></td>'; 
    249249                                break; 
    250250                        case 'application/zip': 
     
    259259                else 
    260260                        var mousefunc = 'hide_card()'; 
    261                 retBuff += '<a onmouseover="'+mousefunc+'" id="name_'+file.name+'" href="' + URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(file.name)+'&path='+base64_encode(currentPath)+'" target="_blank">'+file.name+'</a></div></td>'; 
     261                retBuff += '<a onmouseover="'+mousefunc+'" id="name_'+file.name+'" href="' + URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(file.name)+'&path='+base64_encode(currentPath)+'" target="_blank">'+file.name+'</a></div></td>'; 
    262262                if (preferences.mime_type =='1') retBuff += fl.td+file.mime_type+'</td>'; 
    263263                if (preferences.size =='1') retBuff += fl.td+borkb(file.size)+'</td>'; 
     
    319319                var contentQuota = document.getElementById('content_quota'); 
    320320                if (contentQuota != null) 
    321                         contentQuota.innerHTML = '<table width="102" cellspacing="0" cellpadding="0" border="0" id="table_quota"><tbody><tr><td width="102" nowrap="true" height="15" background="' + URL_SERVER + '/phpgwapi/templates/default/images/dsunused.gif"><table cellspacing="0" cellpadding="0" border="0" style="width: '+parseInt((usedSpace/quotaSize)*100)+'%;"><tbody><tr><td height="15" class="dsused"/></tr></tbody></table></td><td nowrap="true" align="center"><span class="boxHeaderText">'+parseInt(usedSpace/quotaSize*100)+'% ('+borkb(usedSpace)+'/'+borkb(quotaSize)+')</span></td></tr></tbody></table></td></tr></table>'; 
     321                        contentQuota.innerHTML = '<table width="102" cellspacing="0" cellpadding="0" border="0" id="table_quota"><tbody><tr><td width="102" nowrap="true" height="15" background="' + URL_SERVER + 'phpgwapi/templates/default/images/dsunused.gif"><table cellspacing="0" cellpadding="0" border="0" style="width: '+parseInt((usedSpace/quotaSize)*100)+'%;"><tbody><tr><td height="15" class="dsused"/></tr></tbody></table></td><td nowrap="true" align="center"><span class="boxHeaderText">'+parseInt(usedSpace/quotaSize*100)+'% ('+borkb(usedSpace)+'/'+borkb(quotaSize)+')</span></td></tr></tbody></table></td></tr></table>'; 
    322322        } 
    323323} 
     
    335335                { 
    336336                        newicon = '<div class="icon">'; 
    337                         newicon += '<a href="' + URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(files[i].name)+'&path='+base64_encode(currentPath)+'" target="_blank">'; 
     337                        newicon += '<a href="' + URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(files[i].name)+'&path='+base64_encode(currentPath)+'" target="_blank">'; 
    338338                        newicon += '<div style="width:64; height:64; background-image:url('+files[i].icon+'); background-repeat: no-repeat;"></div>'; 
    339339                        newicon += '<span class="iconCaption">'+files[i].name+'</span>'; 
     
    483483                                        inputName.value = filename; 
    484484                                        inputName.onclick = function () { oldValue = inputName.value; } 
    485                                         inputName.onblur = function () { if (inputName.value == oldValue) handler.rename(); else cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.rename&file='+base64_encode(this.id.substr(6))+'&to='+base64_encode(this.value)+"&path="+base64_encode(currentPath),handler.rename) }; 
     485                                        inputName.onblur = function () { if (inputName.value == oldValue) handler.rename(); else cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.rename&file='+base64_encode(this.id.substr(6))+'&to='+base64_encode(this.value)+"&path="+base64_encode(currentPath),handler.rename) }; 
    486486                                        inputName.onkeydown=function (event) {if (event.keyCode == KEY_ENTER) this.blur(); }; 
    487487                                        nameLink.parentNode.appendChild(inputName); 
     
    502502                                address = document.location.toString(); 
    503503                                address = address.split("&"); 
    504                                 document.location = URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.index&'+arg+".x=1&filename="+base64_encode(filename)+".&path="+base64_encode(currentPath); 
     504                                document.location = URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.index&'+arg+".x=1&filename="+base64_encode(filename)+".&path="+base64_encode(currentPath); 
    505505                        } 
    506506                        else 
     
    512512                case 'delete': 
    513513                        var filesUrl = this.getCheckedFiles(); 
    514                         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.delete&path='+ 
     514                        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.delete&path='+ 
    515515                                        base64_encode(currentPath)+filesUrl,handler.del); 
    516516                        break; 
     
    530530                        } 
    531531                        var pswd = crypt.encode(password); 
    532                         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.archive&pswd='+base64_encode(pswd.toString())+'&path='+base64_encode(currentPath)+filesUrl,handler.archive); 
     532                        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.archive&pswd='+base64_encode(pswd.toString())+'&path='+base64_encode(currentPath)+filesUrl,handler.archive); 
    533533                        break; 
    534534                case 'move_to': 
     
    549549                        last_folder = last_folder ? last_folder : currentPath; 
    550550                        current_folder = current_folder ? current_folder : currentPath; 
    551                         cExecute_( URL_SERVER  + '/index.php?menuaction=filemanager.uifilemanager.dir_ls&path='+base64_encode(currentPath)+'&criteria='+criteria+'&otype='+order_type+'&limit='+preferences.files_per_page+'&offset='+offset,folderList.drawFiles); 
     551                        cExecute_( URL_SERVER  + 'index.php?menuaction=filemanager.uifilemanager.dir_ls&path='+base64_encode(currentPath)+'&criteria='+criteria+'&otype='+order_type+'&limit='+preferences.files_per_page+'&offset='+offset,folderList.drawFiles); 
    552552                        return; 
    553553                case 'tools': 
    554554                        elements = new Array(); 
    555555                        elements[0] = { 'text' : get_lang('Preferences'), 
    556                                         'url' : URL_SERVER + '/preferences/preferences.php?appname=filemanager', 
     556                                        'url' : URL_SERVER + 'preferences/preferences.php?appname=filemanager', 
    557557                                        'img' : templatePath+'images/preferences.png'}; 
    558558                        elements[1] = { 'text' : get_lang('Search'), 
     
    564564                                        'img' : templatePath+'images/button_createdir.png'}; 
    565565                        elements[3] = { 'text' : get_lang('Share Folders'), 
    566                                         'url' : URL_SERVER + "/index.php?menuaction=preferences.uiaclprefs.index&acl_app=filemanager", 
     566                                        'url' : URL_SERVER + "index.php?menuaction=preferences.uiaclprefs.index&acl_app=filemanager", 
    567567                                        'img' : templatePath+'images/mime16_directory.png'}; 
    568568                        elements[4] = { 'text' : get_lang('View'), 
     
    584584        if (password == null) 
    585585                return; 
    586         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.unarchive&pswd='+base64_encode(password)+'&path='+base64_encode(currentPath)+'&file='+base64_encode(filename),handler.archive); 
     586        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.unarchive&pswd='+base64_encode(password)+'&path='+base64_encode(currentPath)+'&file='+base64_encode(filename),handler.archive); 
    587587} 
    588588function move_to(to,filesUrl){ 
    589         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.moveto&from='+base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl,handler.moveto); 
     589        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.moveto&from='+base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl,handler.moveto); 
    590590} 
    591591function copy_to(to,filesUrl){ 
    592         cExecute_(URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.copyto&from='+base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl,handler.copyto); 
     592        cExecute_(URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.copyto&from='+base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl,handler.copyto); 
    593593} 
    594594 
     
    597597        switch(type){ 
    598598                case 'preview': 
    599                         var url = URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.summary&file='+base64_encode(name)+"&path="+base64_encode(currentPath); 
     599                        var url = URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.summary&file='+base64_encode(name)+"&path="+base64_encode(currentPath); 
    600600                        var htmlData = '<img src=\"'+url+'\">'; 
    601601                        menuTimeout = setTimeout("draw_window_card(\'"+htmlData+"\')",500); 
    602602                        break; 
    603603                case 'user': 
    604                         var url = URL_SERVER + '/index.php?menuaction=filemanager.user.card&lid='+base64_encode(name); 
     604                        var url = URL_SERVER + 'index.php?menuaction=filemanager.user.card&lid='+base64_encode(name); 
    605605                        menuTimeout = setTimeout("cExecute_('"+url+"',draw_window_card)",500); 
    606606                        break; 
     
    616616                { 
    617617                        var parentDir = document.getElementById('folders_box').value; 
    618                         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.createdir&path='+base64_encode(parentDir)+'&filename='+base64_encode(name),handler.refreshDir); 
     618                        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.createdir&path='+base64_encode(parentDir)+'&filename='+base64_encode(name),handler.refreshDir); 
    619619                        currentPath = parentDir+'/'+name; 
    620620                        close_window(); 
     
    626626                        if (confirm(get_lang('Do you really want to remove folder: %1?',Dfolder), '')) 
    627627                        { 
    628                                 cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.removedir&path='+base64_encode(crypt.encode(Dfolder)),handler.refreshDir); 
     628                                cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.removedir&path='+base64_encode(crypt.encode(Dfolder)),handler.refreshDir); 
    629629                                var lastIndex = Dfolder.lastIndexOf('/'); 
    630630                                currentPath = Dfolder.substr(0,lastIndex); 
  • trunk/filemanager/js/global.js

    r2490 r2630  
    99var oldValue; 
    1010 
    11 var templatePath = URL_SERVER + '/filemanager/templates/default/'; 
     11var templatePath = URL_SERVER + 'filemanager/templates/default/'; 
    1212 
    1313var menuTimeout; 
  • trunk/filemanager/js/jscode/draw_api.js

    r2610 r2630  
    1212 
    1313function loadHistory(filename){ 
    14         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.history&file='+base64_encode(filename)+"&path="+base64_encode(currentPath),draw_window); 
     14        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.history&file='+base64_encode(filename)+"&path="+base64_encode(currentPath),draw_window); 
    1515} 
    1616 
     
    163163        window.onresize = resizeDiv; 
    164164        document.body.style.overflow = "hidden"; 
    165         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.get_folders_list',handler.draw_folders_list); 
     165        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.get_folders_list',handler.draw_folders_list); 
    166166} 
    167167 
     
    216216                newpage += '<td></td><td></td>'; 
    217217                newpage += fl.td+'<img src="'+files[i].icon+'">'; 
    218                 newpage += '<a id="name_'+files[i].name+'" href="' + URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(files[i].name)+'&path='+base64_encode(files[i].directory)+'" target="_blank">'+files[i].name+'</a>&nbsp;</td>'; 
     218                newpage += '<a id="name_'+files[i].name+'" href="' + URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(files[i].name)+'&path='+base64_encode(files[i].directory)+'" target="_blank">'+files[i].name+'</a>&nbsp;</td>'; 
    219219                newpage += fl.td+files[i].directory+'</td>'; 
    220220                if (preferences.mime_type =='1') newpage += fl.td+files[i].mime_type+'</td>'; 
     
    246246                { 
    247247                        case 'text/html': 
    248                                 retBuff += '<td><a href="' + URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.export&file='+base64_encode(file.name)+'&path='+base64_encode(currentPath)+'"><div class="exportButton" alt="'+get_lang('export')+'" title="'+get_lang('export')+'"></div></a></td>'; 
     248                                retBuff += '<td><a href="' + URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.export&file='+base64_encode(file.name)+'&path='+base64_encode(currentPath)+'"><div class="exportButton" alt="'+get_lang('export')+'" title="'+get_lang('export')+'"></div></a></td>'; 
    249249                                break; 
    250250                        case 'application/zip': 
     
    259259                else 
    260260                        var mousefunc = 'hide_card()'; 
    261                 retBuff += '<a onmouseover="'+mousefunc+'" id="name_'+file.name+'" href="' + URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(file.name)+'&path='+base64_encode(currentPath)+'" target="_blank">'+file.name+'</a></div></td>'; 
     261                retBuff += '<a onmouseover="'+mousefunc+'" id="name_'+file.name+'" href="' + URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(file.name)+'&path='+base64_encode(currentPath)+'" target="_blank">'+file.name+'</a></div></td>'; 
    262262                if (preferences.mime_type =='1') retBuff += fl.td+file.mime_type+'</td>'; 
    263263                if (preferences.size =='1') retBuff += fl.td+borkb(file.size)+'</td>'; 
     
    319319                var contentQuota = document.getElementById('content_quota'); 
    320320                if (contentQuota != null) 
    321                         contentQuota.innerHTML = '<table width="102" cellspacing="0" cellpadding="0" border="0" id="table_quota"><tbody><tr><td width="102" nowrap="true" height="15" background="' + URL_SERVER + '/phpgwapi/templates/default/images/dsunused.gif"><table cellspacing="0" cellpadding="0" border="0" style="width: '+parseInt((usedSpace/quotaSize)*100)+'%;"><tbody><tr><td height="15" class="dsused"/></tr></tbody></table></td><td nowrap="true" align="center"><span class="boxHeaderText">'+parseInt(usedSpace/quotaSize*100)+'% ('+borkb(usedSpace)+'/'+borkb(quotaSize)+')</span></td></tr></tbody></table></td></tr></table>'; 
     321                        contentQuota.innerHTML = '<table width="102" cellspacing="0" cellpadding="0" border="0" id="table_quota"><tbody><tr><td width="102" nowrap="true" height="15" background="' + URL_SERVER + 'phpgwapi/templates/default/images/dsunused.gif"><table cellspacing="0" cellpadding="0" border="0" style="width: '+parseInt((usedSpace/quotaSize)*100)+'%;"><tbody><tr><td height="15" class="dsused"/></tr></tbody></table></td><td nowrap="true" align="center"><span class="boxHeaderText">'+parseInt(usedSpace/quotaSize*100)+'% ('+borkb(usedSpace)+'/'+borkb(quotaSize)+')</span></td></tr></tbody></table></td></tr></table>'; 
    322322        } 
    323323} 
     
    335335                { 
    336336                        newicon = '<div class="icon">'; 
    337                         newicon += '<a href="' + URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(files[i].name)+'&path='+base64_encode(currentPath)+'" target="_blank">'; 
     337                        newicon += '<a href="' + URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(files[i].name)+'&path='+base64_encode(currentPath)+'" target="_blank">'; 
    338338                        newicon += '<div style="width:64; height:64; background-image:url('+files[i].icon+'); background-repeat: no-repeat;"></div>'; 
    339339                        newicon += '<span class="iconCaption">'+files[i].name+'</span>'; 
     
    483483                                        inputName.value = filename; 
    484484                                        inputName.onclick = function () { oldValue = inputName.value; } 
    485                                         inputName.onblur = function () { if (inputName.value == oldValue) handler.rename(); else cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.rename&file='+base64_encode(this.id.substr(6))+'&to='+base64_encode(this.value)+"&path="+base64_encode(currentPath),handler.rename) }; 
     485                                        inputName.onblur = function () { if (inputName.value == oldValue) handler.rename(); else cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.rename&file='+base64_encode(this.id.substr(6))+'&to='+base64_encode(this.value)+"&path="+base64_encode(currentPath),handler.rename) }; 
    486486                                        inputName.onkeydown=function (event) {if (event.keyCode == KEY_ENTER) this.blur(); }; 
    487487                                        nameLink.parentNode.appendChild(inputName); 
     
    502502                                address = document.location.toString(); 
    503503                                address = address.split("&"); 
    504                                 document.location = URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.index&'+arg+".x=1&filename="+base64_encode(filename)+".&path="+base64_encode(currentPath); 
     504                                document.location = URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.index&'+arg+".x=1&filename="+base64_encode(filename)+".&path="+base64_encode(currentPath); 
    505505                        } 
    506506                        else 
     
    512512                case 'delete': 
    513513                        var filesUrl = this.getCheckedFiles(); 
    514                         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.delete&path='+ 
     514                        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.delete&path='+ 
    515515                                        base64_encode(currentPath)+filesUrl,handler.del); 
    516516                        break; 
     
    530530                        } 
    531531                        var pswd = crypt.encode(password); 
    532                         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.archive&pswd='+base64_encode(pswd.toString())+'&path='+base64_encode(currentPath)+filesUrl,handler.archive); 
     532                        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.archive&pswd='+base64_encode(pswd.toString())+'&path='+base64_encode(currentPath)+filesUrl,handler.archive); 
    533533                        break; 
    534534                case 'move_to': 
     
    549549                        last_folder = last_folder ? last_folder : currentPath; 
    550550                        current_folder = current_folder ? current_folder : currentPath; 
    551                         cExecute_( URL_SERVER  + '/index.php?menuaction=filemanager.uifilemanager.dir_ls&path='+base64_encode(currentPath)+'&criteria='+criteria+'&otype='+order_type+'&limit='+preferences.files_per_page+'&offset='+offset,folderList.drawFiles); 
     551                        cExecute_( URL_SERVER  + 'index.php?menuaction=filemanager.uifilemanager.dir_ls&path='+base64_encode(currentPath)+'&criteria='+criteria+'&otype='+order_type+'&limit='+preferences.files_per_page+'&offset='+offset,folderList.drawFiles); 
    552552                        return; 
    553553                case 'tools': 
    554554                        elements = new Array(); 
    555555                        elements[0] = { 'text' : get_lang('Preferences'), 
    556                                         'url' : URL_SERVER + '/preferences/preferences.php?appname=filemanager', 
     556                                        'url' : URL_SERVER + 'preferences/preferences.php?appname=filemanager', 
    557557                                        'img' : templatePath+'images/preferences.png'}; 
    558558                        elements[1] = { 'text' : get_lang('Search'), 
     
    564564                                        'img' : templatePath+'images/button_createdir.png'}; 
    565565                        elements[3] = { 'text' : get_lang('Share Folders'), 
    566                                         'url' : URL_SERVER + "/index.php?menuaction=preferences.uiaclprefs.index&acl_app=filemanager", 
     566                                        'url' : URL_SERVER + "index.php?menuaction=preferences.uiaclprefs.index&acl_app=filemanager", 
    567567                                        'img' : templatePath+'images/mime16_directory.png'}; 
    568568                        elements[4] = { 'text' : get_lang('View'), 
     
    584584        if (password == null) 
    585585                return; 
    586         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.unarchive&pswd='+base64_encode(password)+'&path='+base64_encode(currentPath)+'&file='+base64_encode(filename),handler.archive); 
     586        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.unarchive&pswd='+base64_encode(password)+'&path='+base64_encode(currentPath)+'&file='+base64_encode(filename),handler.archive); 
    587587} 
    588588function move_to(to,filesUrl){ 
    589         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.moveto&from='+base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl,handler.moveto); 
     589        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.moveto&from='+base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl,handler.moveto); 
    590590} 
    591591function copy_to(to,filesUrl){ 
    592         cExecute_(URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.copyto&from='+base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl,handler.copyto); 
     592        cExecute_(URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.copyto&from='+base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl,handler.copyto); 
    593593} 
    594594 
     
    597597        switch(type){ 
    598598                case 'preview': 
    599                         var url = URL_SERVER + '/index.php?menuaction=filemanager.vfs_functions.summary&file='+base64_encode(name)+"&path="+base64_encode(currentPath); 
     599                        var url = URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.summary&file='+base64_encode(name)+"&path="+base64_encode(currentPath); 
    600600                        var htmlData = '<img src=\"'+url+'\">'; 
    601601                        menuTimeout = setTimeout("draw_window_card(\'"+htmlData+"\')",500); 
    602602                        break; 
    603603                case 'user': 
    604                         var url = URL_SERVER + '/index.php?menuaction=filemanager.user.card&lid='+base64_encode(name); 
     604                        var url = URL_SERVER + 'index.php?menuaction=filemanager.user.card&lid='+base64_encode(name); 
    605605                        menuTimeout = setTimeout("cExecute_('"+url+"',draw_window_card)",500); 
    606606                        break; 
     
    616616                { 
    617617                        var parentDir = document.getElementById('folders_box').value; 
    618                         cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.createdir&path='+base64_encode(parentDir)+'&filename='+base64_encode(name),handler.refreshDir); 
     618                        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.createdir&path='+base64_encode(parentDir)+'&filename='+base64_encode(name),handler.refreshDir); 
    619619                        currentPath = parentDir+'/'+name; 
    620620                        close_window(); 
     
    626626                        if (confirm(get_lang('Do you really want to remove folder: %1?',Dfolder), '')) 
    627627                        { 
    628                                 cExecute_( URL_SERVER + '/index.php?menuaction=filemanager.uifilemanager.removedir&path='+base64_encode(crypt.encode(Dfolder)),handler.refreshDir); 
     628                                cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.removedir&path='+base64_encode(crypt.encode(Dfolder)),handler.refreshDir); 
    629629                                var lastIndex = Dfolder.lastIndexOf('/'); 
    630630                                currentPath = Dfolder.substr(0,lastIndex); 
  • trunk/filemanager/js/jscode/global.js

    r2610 r2630  
    99var oldValue; 
    1010 
    11 var templatePath = URL_SERVER + '/filemanager/templates/default/'; 
     11var templatePath = URL_SERVER + 'filemanager/templates/default/'; 
    1212 
    1313var menuTimeout; 
  • trunk/filemanager/js/jscode/load_lang.js

    r2610 r2630  
    55 
    66        var request = _connector.cache( ).go( { 
    7                 'access' : URL_SERVER + '/filemanager/inc/load_lang.php?lang=' + lang, 
     7                'access' : URL_SERVER + 'filemanager/inc/load_lang.php?lang=' + lang, 
    88                'handler' : function( data ) 
    99                { 
  • trunk/filemanager/js/load_lang.js

    r2610 r2630  
    55 
    66        var request = _connector.cache( ).go( { 
    7                 'access' : URL_SERVER + '/filemanager/inc/load_lang.php?lang=' + lang, 
     7                'access' : URL_SERVER + 'filemanager/inc/load_lang.php?lang=' + lang, 
    88                'handler' : function( data ) 
    99                { 
  • trunk/phpgwapi/inc/class.common.inc.php

    r2628 r2630  
    386386                                                $GLOBALS['phpgw_info']['flags']['java_script_thirst'] = ''; 
    387387 
     388                                        $webserver_url = ( ! empty( $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] ) ) ? 
     389                                                $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] : '/'; 
     390 
     391                                        if ( strpos( $webserver_url, '/' ) != ( strlen( $webserver_url ) - 1 ) ) 
     392                                                $webserver_url .= '/'; 
     393 
    388394                                        $GLOBALS['phpgw_info']['flags']['java_script_thirst'] .= '<script type="text/javascript">' 
    389                                                 . 'var URL_SERVER = "' . $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] . '";' 
     395                                                . 'var URL_SERVER = "' . $webserver_url . '";' 
    390396                                                . 'var template = "' . $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ] . '";</script>'; 
    391397 
  • trunk/phpgwapi/js/expressoAjax/dom.js

    r2623 r2630  
    244244        extra = document.getElementById("extraButton"); 
    245245        extra.style.visibility = "hidden"; 
    246         but.innerHTML='<a title="' +title + '" onClick="javascript:changeBar()"><img src="' + URL_SERVER + '/phpgwapi/templates/default/images/up.button.png"></a>'; 
     246        but.innerHTML='<a title="' +title + '" onClick="javascript:changeBar()"><img src="' + URL_SERVER + 'phpgwapi/templates/default/images/up.button.png"></a>'; 
    247247        var neverExpires = new Date("January 01, 2100 00:00:00"); 
    248248        document.cookie = "showHeader=true"+ 
  • trunk/phpgwapi/js/expressoAjax/expressoAjax.js

    r2618 r2630  
    337337                if(is_ie) { 
    338338 
    339                         this.oxmlhttp.open("GET", URL_SERVER + "/expressoMail1_2/js/"+scriptPath+".js?"+this.updateVersion, false); 
     339                        this.oxmlhttp.open("GET", URL_SERVER + "expressoMail1_2/js/"+scriptPath+".js?"+this.updateVersion, false); 
    340340                        this.oxmlhttp.setRequestHeader('Content-Type','text/plain'); 
    341341                        this.oxmlhttp.send(null); 
     
    345345                } 
    346346                else { 
    347                         script.src =  URL_SERVER + "/expressoMail1_2/js/"+scriptPath+".js?"+this.updateVersion; 
     347                        script.src =  URL_SERVER + "expressoMail1_2/js/"+scriptPath+".js?"+this.updateVersion; 
    348348                } 
    349349 
     
    353353//------------------------------------  END: Functions for Progress Bar  -------------------------------------------------// 
    354354        // Default Controller File 
    355         var URL_DEFAULT = URL_SERVER + "/controller.php?menuaction="; 
     355        var URL_DEFAULT = URL_SERVER + "controller.php?menuaction="; 
    356356        // connector object 
    357357        var _onmouseup = document.onmouseup; 
  • trunk/phpgwapi/js/tools/xlink.js

    r2628 r2630  
    77        var _divAppboxHeader = null; 
    88        var _loading = new Image( ); 
    9         _loading.src = URL_SERVER + '/phpgwapi/images/loading.gif'; 
     9        _loading.src = URL_SERVER + 'phpgwapi/images/loading.gif'; 
    1010 
    1111        function handler( pLink ) 
     
    6868                                                        else 
    6969                                                                _script.add( _new_scripts[ i ][ 2 ].substr( 
    70                                                                         URL_SERVER.length, 
    71                                                                         _new_scripts[ i ][ 2 ].indexOf( '?' ) - URL_SERVER.length 
     70                                                                        URL_SERVER.length - 1, 
     71                                                                        _new_scripts[ i ][ 2 ].indexOf( '?' ) - URL_SERVER.length + 1 
    7272                                                                ) ); 
    7373 
     
    9494                        if ( _scripts.item( i ).getAttribute( 'src' ) != null ) 
    9595                                _loaded[ _loaded.length ] = _scripts.item( i ).getAttribute( 'src' ).substr( 
    96                                         URL_SERVER.length, 
    97                                         _scripts.item( i ).getAttribute( 'src' ).indexOf( '?' ) - URL_SERVER.length 
     96                                        URL_SERVER.length - 1, 
     97                                        _scripts.item( i ).getAttribute( 'src' ).indexOf( '?' ) - URL_SERVER.length + 1 
    9898                                ); 
    9999 
  • trunk/phpgwapi/js/tools/xscript.js

    r2628 r2630  
    2626 
    2727                _connector.go( { 
    28                         "access" : URL_SERVER + '/controller.php?action=phpgwapi.javascript.get_source&source=' + _new.join( ';' ), 
     28                        "access" : URL_SERVER + 'controller.php?action=phpgwapi.javascript.get_source&source=' + _new.join( ';' ), 
    2929                        "handler" : function( data ) 
    3030                        { 
Note: See TracChangeset for help on using the changeset viewer.