Changeset 2630
- Timestamp:
- 04/27/10 09:54:22 (14 years ago)
- Location:
- trunk
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/js/edit_exmail.js
r2549 r2630 227 227 } 228 228 229 scriptPath = URL_SERVER + '/' +scriptPath;229 scriptPath = URL_SERVER + scriptPath; 230 230 231 231 expresso.connector.oxmlhttp.open("GET", scriptPath, false); -
trunk/contactcenter/js/cc.js
r2475 r2630 293 293 294 294 }; 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); 296 296 } 297 297 … … 398 398 //populateRelations(data['relations']); 399 399 }; 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); 401 401 } 402 402 … … 443 443 ccAddGroup.clear(true); 444 444 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); 446 446 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); 448 448 } 449 449 … … 462 462 /* Personal Data */ 463 463 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'; 465 465 466 466 /* Addresses */ … … 1006 1006 }; 1007 1007 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); 1009 1009 } 1010 1010 … … 1121 1121 }; 1122 1122 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); 1124 1124 } 1125 1125 … … 1391 1391 '<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>' + 1392 1392 '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" style="width: 150px;" maxlength="100" type="text"> ' + 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>'; 1394 1394 } 1395 1395 else if (Element("cc_conn_type_2").checked) … … 1399 1399 '<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>' + 1400 1400 '<td align="left"><input id="cc_conn_value_'+ CC_conn_count +'" style="width: 150px;" maxlength="30" type="text" onkeyup="formatPhone(this)"> ' + 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>'; 1402 1402 } 1403 1403 } … … 1419 1419 var remove_id = 'cc_conn_tr_'+CC_conn_count; 1420 1420 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'; 1422 1422 img.style.width = '18px'; 1423 1423 img.style.height = '18px'; … … 1799 1799 if(result) { 1800 1800 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); 1802 1802 else 1803 1803 alert('Código Incorreto'); … … 1835 1835 typeArg = (type == 'groups' ? 'group' : 'entry'); 1836 1836 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); 1838 1838 } 1839 1839 … … 2142 2142 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] : ''); 2143 2143 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>'; 2145 2145 break; 2146 2146 … … 2151 2151 break; 2152 2152 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"> </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"> </span>'; 2154 2154 break; 2155 2155 … … 2299 2299 } 2300 2300 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">  </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">  </span>'; 2302 2302 2303 2303 break; … … 2362 2362 }; 2363 2363 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'); 2365 2365 } 2366 2366 … … 2397 2397 html_card = '<td id="' + id + '" style="width: ' + CC_card_image_width + 'px; height: ' + CC_card_image_height + '">' + 2398 2398 '<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">' + 2402 2402 '<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>' + 2403 2403 '<span id="' + id + ':cc_participantes" style="cursor: pointer; cursor: hand; z-index: 1;position: absolute; top: 15px; left: 15px"></span>' + … … 2410 2410 html_card = '<td id="' + id + '" style="width: ' + CC_card_image_width + 'px; height: ' + CC_card_image_height + '">' + 2411 2411 '<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);">' + 2413 2413 ( ccTree.catalog_perms == 1 ? 2414 2414 '<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>':'') + 2415 2415 (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">' : '') + 2418 2418 '<img id="' + id + ':cc_photo" style="position: absolute; top: 15px; left: 7px;" src="" border="0" ondblclick="editContact(Element(\'' + id + ':cc_id\').value);">' + 2419 2419 '<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>' + … … 2462 2462 '<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>' + 2463 2463 '<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">' + 2465 2465 ' | '+ 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">' + 2467 2467 '<input id="' + id + ':cc_id" type="hidden">'+ 2468 2468 '</td></tr>'; … … 2487 2487 '<td align="left" >'+ 2488 2488 (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">' + 2490 2490 ' | '+ 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">' : '') + 2492 2492 '<input id="' + id + ':cc_id" type="hidden">'+ 2493 2493 '<input type="hidden" id="' + id + ':cc_photo">' + … … 2681 2681 2682 2682 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); 2684 2684 } 2685 2685 … … 2831 2831 resetQuickAdd(); 2832 2832 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)); 2834 2834 } 2835 2835 … … 2845 2845 } 2846 2846 } 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 238 238 var typeImport = Element('typeImport').value; 239 239 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); 241 241 } 242 242 … … 280 280 var typeExport = Element("typeExport"); 281 281 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); 283 283 } 284 284 -
trunk/contactcenter/js/ccMain.js
r2474 r2630 57 57 } 58 58 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); 60 60 61 61 ccTree.Connector = Connector; -
trunk/contactcenter/js/ccQuickAddContact.js
r2473 r2630 61 61 this.showWindow(div); 62 62 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); 64 64 } 65 65 } -
trunk/expressoAdmin1_2/js/jscode/globals.js
r2604 r2630 1 1 var _controller = new XConnector( { 2 "path" : URL_SERVER + " /expressoAdmin1_2",2 "path" : URL_SERVER + "expressoAdmin1_2", 3 3 "controller" : "controller.php?action=" 4 4 } ); -
trunk/expressoMail1_2/js/jscode/InfoContact.js
r2572 r2630 11 11 emInfoContact.prototype.createCard = function(){ 12 12 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"; 14 14 card = document.createElement("DIV"); 15 15 card.id = "card_cc"; … … 91 91 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'>"+ 92 92 "<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> <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> <b>"+get_lang("Sender's Information")+"</b></font>"+ 94 94 _this.verifyIM(data.uid,data.email)+ 95 "<br><img align='center' src='"+URL_SERVER+" /expressoMail1_2/templates/"+template+"/images/phone.gif'> <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'> <font size=1 color=BLACK>"+(phoneUser ? phoneUser : get_lang("None") )+"</font>"+ 96 96 "</td></tr><tr><td valign='top' align='center' colspan='2'>"+ 97 97 "<font size=1 color=BLACK>"+cn+"</font>"+ -
trunk/expressoMail1_2/js/jscode/abas.js
r2579 r2630 140 140 borderTitle = borderTitle.substring(0, resize*0.08); 141 141 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>"; 143 143 144 144 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/'; 2 2 3 3 function ConstructMenuTools(){ -
trunk/expressoMail1_2/js/jscode/drag_area.js
r2572 r2630 23 23 this.div_dd.style.display ='none'; 24 24 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"; 26 26 document.body.appendChild(this.div_dd); 27 27 -
trunk/expressoMail1_2/js/jscode/draw_api_folders.js
r2628 r2630 80 80 td_element5.align = "center"; 81 81 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">'; 83 83 td_element6 = document.createElement("TD"); 84 84 td_element6.setAttribute("width", "10%"); … … 206 206 207 207 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">'; 209 209 var to_addybook_add = "<SPAN id='insert_plugin_"+idx_cc+"_"+ID+"'>"; 210 210 to_addybook_add += addrs; … … 251 251 td21.height="15"; 252 252 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'); 254 254 table221 = document.createElement("TABLE"); 255 255 tbody221 = document.createElement("TBODY"); … … 271 271 } 272 272 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'); 274 274 else 275 275 td221.className = 'dsused'; … … 633 633 634 634 if (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)"; 636 636 637 637 if (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)"; 639 639 640 640 if (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)"; 642 642 643 643 if (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)"; 645 645 646 646 … … 759 759 } 760 760 } 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', 762 762 function(data) 763 763 { … … 920 920 td_element2.setAttribute("width", "2%"); 921 921 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) + '">'; 923 923 924 924 td_element21 = document.createElement("TD"); … … 932 932 { 933 933 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]) + '">'; 935 935 break; 936 936 } … … 939 939 940 940 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')+'">'; 942 942 headers_msgs.Draft = ''; 943 943 headers_msgs.Answered = ''; … … 945 945 } 946 946 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')+'">'; 948 948 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')+'">'; 950 950 else 951 951 td_element21.innerHTML = " "; … … 963 963 case "signature": 964 964 { 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') + '">'; 966 966 break; 967 967 } 968 968 case "cipher": 969 969 { 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') + '">'; 971 971 break; 972 972 } … … 984 984 if (headers_msgs.Flagged == 'F' || (headers_msgs.Importance.toLowerCase().indexOf("high") != -1 && parseInt(preferences.use_important_flag))) 985 985 { 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')+'">'; 987 987 } 988 988 else … … 996 996 // preload image 997 997 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'; 999 999 1000 1000 td_element3 = document.createElement("TD"); … … 1015 1015 else{ 1016 1016 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')+'">'; 1018 1018 1019 1019 if ((headers_msgs.to)&&(headers_msgs.to.name != null)) -
trunk/expressoMail1_2/js/jscode/draw_api_messages.js
r2624 r2630 77 77 document.getElementById("message_header_SORTARRIVAL_"+numBox).innerHTML = get_lang("Date"); 78 78 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">'; 80 80 } 81 81 function draw_message(info_msg, ID){ … … 95 95 var img_next_msg = document.createElement("IMG"); 96 96 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'; 98 98 img_next_msg.title = get_lang('Next'); 99 99 img_next_msg.style.cursor = 'pointer'; … … 125 125 else 126 126 { 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'; 128 128 img_next_msg.style.cursor = 'default'; 129 129 … … 132 132 else 133 133 { 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'; 135 135 img_next_msg.style.cursor = 'default'; 136 136 if (!proxy_mensagens.is_local_folder(get_current_folder()) && !(info_msg.msg_folder == "INBOX/decifradas")) // testa se a mensagem e local … … 151 151 var img_previous_msg = document.createElement("IMG"); 152 152 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'; 154 154 img_previous_msg.title = get_lang('Previous'); 155 155 img_previous_msg.style.cursor = 'pointer'; … … 180 180 else 181 181 { 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'; 183 183 img_previous_msg.style.cursor = 'default'; 184 184 } … … 186 186 else 187 187 { 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'; 189 189 img_previous_msg.style.cursor = 'default'; 190 190 if (!proxy_mensagens.is_local_folder(get_current_folder()) && !(info_msg.msg_folder == "INBOX/decifradas")) // testa se a mensagem e local … … 235 235 td.innerHTML = _name.bold() + ', ' + info_msg.smalldate; 236 236 if (info_msg.attachments.length > 0) 237 td.innerHTML += " <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 += " <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+"'>"; 238 238 239 239 if (typeof(info_msg.signature) == 'string') 240 240 { 241 241 if (info_msg.signature != "void") 242 td.innerHTML += ' <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 += ' <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">'; 243 243 else 244 td.innerHTML += " <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 += " <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'>"; 245 245 } 246 246 247 247 if (info_msg.DispositionNotificationTo) 248 248 { 249 td.innerHTML += ' <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 += ' <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">'; 250 250 } 251 251 … … 319 319 option_reply_options.id = 'msg_opt_reply_options_'+ID; 320 320 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'; 322 322 }; 323 323 option_reply_options.onmouseout = function(){ 324 324 if (this.value == 'show') 325 325 { 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'; 327 327 } 328 328 else 329 329 { 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'; 331 331 } 332 332 }; … … 334 334 if (this.value == 'show'){ 335 335 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'; 337 337 Element('tr_other_options_'+ID).style.display = ''; 338 338 … … 340 340 else{ 341 341 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'; 343 343 Element('tr_other_options_'+ID).style.display = 'none'; 344 344 } 345 345 }; 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'; 347 347 option_reply_options.value = 'show'; 348 348 var option_reply = document.createElement("SPAN"); … … 413 413 if(signature_status_pos < 0 ) 414 414 { 415 td.innerHTML += ' <img style="cursor:pointer" src="' + URL_SERVER + ' /expressoMail1_2/templates/'+template+'/images/signed_error.gif" title="'+get_lang("Details")+'">';415 td.innerHTML += ' <img style="cursor:pointer" src="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/signed_error.gif" title="'+get_lang("Details")+'">'; 416 416 tr_signature.style.display = ''; 417 417 } 418 418 else 419 419 { 420 td.innerHTML += ' <img style="cursor:pointer" src="' + URL_SERVER + ' /expressoMail1_2/templates/'+template+'/images/signed_table.gif" title="'+get_lang("Details")+'">';420 td.innerHTML += ' <img style="cursor:pointer" src="' + URL_SERVER + 'expressoMail1_2/templates/'+template+'/images/signed_table.gif" title="'+get_lang("Details")+'">'; 421 421 } 422 422 td.onclick = function(){ … … 861 861 if (forbidden) 862 862 { 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'>"); 864 864 blocked=true; 865 865 } … … 939 939 } 940 940 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>."); 942 942 td.innerHTML += "<BR>"; 943 943 … … 1159 1159 if (!expresso_offline) { 1160 1160 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'; 1162 1162 img_search.title = get_lang('Search') + " | " + get_lang('Use F9 Key as shortcut.'); 1163 1163 img_search.onclick = function () {emQuickSearch(document.getElementById('to_'+ID).value, 'to', ID);}; … … 1283 1283 td_cc.appendChild(input_cc); 1284 1284 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'; 1286 1286 img_search.onclick = function () {emQuickSearch(document.getElementById('cc_'+ID).value, 'cc', ID)}; 1287 1287 img_search.title = get_lang('Search') + " | " + get_lang('Use F9 Key as shortcut.'); … … 1366 1366 td_cco.appendChild(input_cco); 1367 1367 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'; 1369 1369 img_search.title = get_lang('Search') + " | " + get_lang('Use F9 Key as shortcut.'); 1370 1370 img_search.onclick = function () {emQuickSearch(document.getElementById('cco_'+ID).value, 'cco', ID);}; … … 1733 1733 dn_em.setAttribute("title",get_lang("Block Sender")); 1734 1734 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'>"; 1736 1736 return dn_em; 1737 1737 -
trunk/expressoMail1_2/js/jscode/filters.js
r2521 r2630 7 7 // Images 8 8 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'; 10 10 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'; 12 12 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'; 14 14 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'; 16 16 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'; 18 18 } 19 19 -
trunk/expressoMail1_2/js/jscode/globals.js
r2611 r2630 23 23 '<tr><td align=left height=16px width="1%" nowrap class="table_top"> '+ 24 24 '<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">'+ 26 26 ' Novo</a> '+ 27 27 '<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">'+ 29 29 ' Trocar Pasta</a>  '+ 30 30 '<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">'+ 32 32 ' Atualizar</a> '+ 33 33 '<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">'+ 35 35 ' Ferramentas...</a> </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>'; 36 36 -
trunk/expressoMail1_2/js/jscode/load_lang.js
r2603 r2630 5 5 6 6 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, 8 8 'handler' : function( data ) 9 9 { -
trunk/expressoMail1_2/js/jscode/main.js
r2628 r2630 1421 1421 title = title.substring(0, parseInt(resize)*0.08); 1422 1422 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>"; 1424 1424 return new_border_ID; //Preciso retornar o ID da nova mensagem. 1425 1425 } … … 2068 2068 if (data.status && Element("td_message_answered_"+msg_number)) { 2069 2069 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">'; 2071 2071 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">'; 2073 2073 } 2074 2074 }; -
trunk/expressoMail1_2/js/jscode/rich_text_editor.js
r2572 r2630 179 179 img.className = 'imagebutton'; 180 180 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'; 182 182 img.title = get_lang(buttons[i]); 183 183 img.style.cursor = 'pointer'; -
trunk/expressoMail1_2/js/modal/modal.js
r2563 r2630 166 166 cssNode.rel = 'stylesheet'; 167 167 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"; 169 169 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"; 171 171 172 172 cssNode.media = 'screen'; -
trunk/filemanager/js/draw_api.js
r2623 r2630 12 12 13 13 function 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); 15 15 } 16 16 … … 163 163 window.onresize = resizeDiv; 164 164 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); 166 166 } 167 167 … … 216 216 newpage += '<td></td><td></td>'; 217 217 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> </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> </td>'; 219 219 newpage += fl.td+files[i].directory+'</td>'; 220 220 if (preferences.mime_type =='1') newpage += fl.td+files[i].mime_type+'</td>'; … … 246 246 { 247 247 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>'; 249 249 break; 250 250 case 'application/zip': … … 259 259 else 260 260 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>'; 262 262 if (preferences.mime_type =='1') retBuff += fl.td+file.mime_type+'</td>'; 263 263 if (preferences.size =='1') retBuff += fl.td+borkb(file.size)+'</td>'; … … 319 319 var contentQuota = document.getElementById('content_quota'); 320 320 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>'; 322 322 } 323 323 } … … 335 335 { 336 336 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">'; 338 338 newicon += '<div style="width:64; height:64; background-image:url('+files[i].icon+'); background-repeat: no-repeat;"></div>'; 339 339 newicon += '<span class="iconCaption">'+files[i].name+'</span>'; … … 483 483 inputName.value = filename; 484 484 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) }; 486 486 inputName.onkeydown=function (event) {if (event.keyCode == KEY_ENTER) this.blur(); }; 487 487 nameLink.parentNode.appendChild(inputName); … … 502 502 address = document.location.toString(); 503 503 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); 505 505 } 506 506 else … … 512 512 case 'delete': 513 513 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='+ 515 515 base64_encode(currentPath)+filesUrl,handler.del); 516 516 break; … … 530 530 } 531 531 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); 533 533 break; 534 534 case 'move_to': … … 549 549 last_folder = last_folder ? last_folder : currentPath; 550 550 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); 552 552 return; 553 553 case 'tools': 554 554 elements = new Array(); 555 555 elements[0] = { 'text' : get_lang('Preferences'), 556 'url' : URL_SERVER + ' /preferences/preferences.php?appname=filemanager',556 'url' : URL_SERVER + 'preferences/preferences.php?appname=filemanager', 557 557 'img' : templatePath+'images/preferences.png'}; 558 558 elements[1] = { 'text' : get_lang('Search'), … … 564 564 'img' : templatePath+'images/button_createdir.png'}; 565 565 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", 567 567 'img' : templatePath+'images/mime16_directory.png'}; 568 568 elements[4] = { 'text' : get_lang('View'), … … 584 584 if (password == null) 585 585 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); 587 587 } 588 588 function 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); 590 590 } 591 591 function 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); 593 593 } 594 594 … … 597 597 switch(type){ 598 598 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); 600 600 var htmlData = '<img src=\"'+url+'\">'; 601 601 menuTimeout = setTimeout("draw_window_card(\'"+htmlData+"\')",500); 602 602 break; 603 603 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); 605 605 menuTimeout = setTimeout("cExecute_('"+url+"',draw_window_card)",500); 606 606 break; … … 616 616 { 617 617 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); 619 619 currentPath = parentDir+'/'+name; 620 620 close_window(); … … 626 626 if (confirm(get_lang('Do you really want to remove folder: %1?',Dfolder), '')) 627 627 { 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); 629 629 var lastIndex = Dfolder.lastIndexOf('/'); 630 630 currentPath = Dfolder.substr(0,lastIndex); -
trunk/filemanager/js/global.js
r2490 r2630 9 9 var oldValue; 10 10 11 var templatePath = URL_SERVER + ' /filemanager/templates/default/';11 var templatePath = URL_SERVER + 'filemanager/templates/default/'; 12 12 13 13 var menuTimeout; -
trunk/filemanager/js/jscode/draw_api.js
r2610 r2630 12 12 13 13 function 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); 15 15 } 16 16 … … 163 163 window.onresize = resizeDiv; 164 164 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); 166 166 } 167 167 … … 216 216 newpage += '<td></td><td></td>'; 217 217 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> </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> </td>'; 219 219 newpage += fl.td+files[i].directory+'</td>'; 220 220 if (preferences.mime_type =='1') newpage += fl.td+files[i].mime_type+'</td>'; … … 246 246 { 247 247 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>'; 249 249 break; 250 250 case 'application/zip': … … 259 259 else 260 260 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>'; 262 262 if (preferences.mime_type =='1') retBuff += fl.td+file.mime_type+'</td>'; 263 263 if (preferences.size =='1') retBuff += fl.td+borkb(file.size)+'</td>'; … … 319 319 var contentQuota = document.getElementById('content_quota'); 320 320 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>'; 322 322 } 323 323 } … … 335 335 { 336 336 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">'; 338 338 newicon += '<div style="width:64; height:64; background-image:url('+files[i].icon+'); background-repeat: no-repeat;"></div>'; 339 339 newicon += '<span class="iconCaption">'+files[i].name+'</span>'; … … 483 483 inputName.value = filename; 484 484 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) }; 486 486 inputName.onkeydown=function (event) {if (event.keyCode == KEY_ENTER) this.blur(); }; 487 487 nameLink.parentNode.appendChild(inputName); … … 502 502 address = document.location.toString(); 503 503 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); 505 505 } 506 506 else … … 512 512 case 'delete': 513 513 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='+ 515 515 base64_encode(currentPath)+filesUrl,handler.del); 516 516 break; … … 530 530 } 531 531 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); 533 533 break; 534 534 case 'move_to': … … 549 549 last_folder = last_folder ? last_folder : currentPath; 550 550 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); 552 552 return; 553 553 case 'tools': 554 554 elements = new Array(); 555 555 elements[0] = { 'text' : get_lang('Preferences'), 556 'url' : URL_SERVER + ' /preferences/preferences.php?appname=filemanager',556 'url' : URL_SERVER + 'preferences/preferences.php?appname=filemanager', 557 557 'img' : templatePath+'images/preferences.png'}; 558 558 elements[1] = { 'text' : get_lang('Search'), … … 564 564 'img' : templatePath+'images/button_createdir.png'}; 565 565 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", 567 567 'img' : templatePath+'images/mime16_directory.png'}; 568 568 elements[4] = { 'text' : get_lang('View'), … … 584 584 if (password == null) 585 585 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); 587 587 } 588 588 function 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); 590 590 } 591 591 function 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); 593 593 } 594 594 … … 597 597 switch(type){ 598 598 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); 600 600 var htmlData = '<img src=\"'+url+'\">'; 601 601 menuTimeout = setTimeout("draw_window_card(\'"+htmlData+"\')",500); 602 602 break; 603 603 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); 605 605 menuTimeout = setTimeout("cExecute_('"+url+"',draw_window_card)",500); 606 606 break; … … 616 616 { 617 617 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); 619 619 currentPath = parentDir+'/'+name; 620 620 close_window(); … … 626 626 if (confirm(get_lang('Do you really want to remove folder: %1?',Dfolder), '')) 627 627 { 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); 629 629 var lastIndex = Dfolder.lastIndexOf('/'); 630 630 currentPath = Dfolder.substr(0,lastIndex); -
trunk/filemanager/js/jscode/global.js
r2610 r2630 9 9 var oldValue; 10 10 11 var templatePath = URL_SERVER + ' /filemanager/templates/default/';11 var templatePath = URL_SERVER + 'filemanager/templates/default/'; 12 12 13 13 var menuTimeout; -
trunk/filemanager/js/jscode/load_lang.js
r2610 r2630 5 5 6 6 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, 8 8 'handler' : function( data ) 9 9 { -
trunk/filemanager/js/load_lang.js
r2610 r2630 5 5 6 6 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, 8 8 'handler' : function( data ) 9 9 { -
trunk/phpgwapi/inc/class.common.inc.php
r2628 r2630 386 386 $GLOBALS['phpgw_info']['flags']['java_script_thirst'] = ''; 387 387 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 388 394 $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 . '";' 390 396 . 'var template = "' . $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ] . '";</script>'; 391 397 -
trunk/phpgwapi/js/expressoAjax/dom.js
r2623 r2630 244 244 extra = document.getElementById("extraButton"); 245 245 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>'; 247 247 var neverExpires = new Date("January 01, 2100 00:00:00"); 248 248 document.cookie = "showHeader=true"+ -
trunk/phpgwapi/js/expressoAjax/expressoAjax.js
r2618 r2630 337 337 if(is_ie) { 338 338 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); 340 340 this.oxmlhttp.setRequestHeader('Content-Type','text/plain'); 341 341 this.oxmlhttp.send(null); … … 345 345 } 346 346 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; 348 348 } 349 349 … … 353 353 //------------------------------------ END: Functions for Progress Bar -------------------------------------------------// 354 354 // Default Controller File 355 var URL_DEFAULT = URL_SERVER + " /controller.php?menuaction=";355 var URL_DEFAULT = URL_SERVER + "controller.php?menuaction="; 356 356 // connector object 357 357 var _onmouseup = document.onmouseup; -
trunk/phpgwapi/js/tools/xlink.js
r2628 r2630 7 7 var _divAppboxHeader = null; 8 8 var _loading = new Image( ); 9 _loading.src = URL_SERVER + ' /phpgwapi/images/loading.gif';9 _loading.src = URL_SERVER + 'phpgwapi/images/loading.gif'; 10 10 11 11 function handler( pLink ) … … 68 68 else 69 69 _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 72 72 ) ); 73 73 … … 94 94 if ( _scripts.item( i ).getAttribute( 'src' ) != null ) 95 95 _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 98 98 ); 99 99 -
trunk/phpgwapi/js/tools/xscript.js
r2628 r2630 26 26 27 27 _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( ';' ), 29 29 "handler" : function( data ) 30 30 {
Note: See TracChangeset
for help on using the changeset viewer.