Changeset 2475 for trunk/contactcenter
- Timestamp:
- 04/09/10 16:20:29 (14 years ago)
- Location:
- trunk/contactcenter
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/inc/class.ui_api.inc.php
r2473 r2475 218 218 $template->set_var('cc_api', ''); 219 219 } 220 221 $template -> set_var( 'url', $GLOBALS[ 'phpgw' ] -> link( '/contactcenter' ) ); 220 222 221 223 $template->set_var('cc_contact_title',lang('Contact Center').' - '.lang('Contacts')); -
trunk/contactcenter/inc/class.ui_data.inc.php
r2473 r2475 1625 1625 1626 1626 /* Personal Data */ 1627 $data['personal']['cc_pd_photo'] = '../index.php?menuaction=contactcenter.ui_data.data_manager&method=get_photo&id='.$id;1627 $data['personal']['cc_pd_photo'] = $GLOBALS[ 'phpgw' ] -> link( '/', 'menuaction=contactcenter.ui_data.data_manager&method=get_photo&id='.$id ); 1628 1628 $data['personal']['cc_pd_alias'] = $entry['alias']; 1629 1629 $data['personal']['cc_pd_given_names'] = $entry['given_names']; -
trunk/contactcenter/js/cc.js
r2473 r2475 462 462 /* Personal Data */ 463 463 Element('cc_full_add_contact_id').value = null; 464 Element('cc_pd_photo').src = 'templates/default/images/photo.png';464 Element('cc_pd_photo').src = URL_SERVER + '/contactcenter/templates/default/images/photo.png'; 465 465 466 466 /* Addresses */ … … 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=" 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=" 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 = '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'; … … 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=" 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=" 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=" 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; … … 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=" 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=" 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=" 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=" 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=" 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=" 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=" 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=" 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=" 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=" 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">' + -
trunk/contactcenter/templates/classic/corporative_full_add.tpl
r1676 r2475 35 35 <input id="cc_pd_select_photo_b" type="button" style="width: 60px" value="{cc_pd_select_photo_b}" onclick="Element('cc_photo_frame').contentWindow.document.all['cc_photo_input'].click();"> 36 36 </td> 37 <td align="center" colspan="2" rowspan="3"><img id="cc_pd_photo" src=" templates/default/images/photo.png" border="0" width="60px" height="80px"></td>37 <td align="center" colspan="2" rowspan="3"><img id="cc_pd_photo" src="{url}/templates/default/images/photo.png" border="0" width="60px" height="80px"></td> 38 38 </tr> 39 39 <tr class="row_on"> -
trunk/contactcenter/templates/classic/full_add.tpl
r1676 r2475 32 32 <input id="cc_pd_select_photo_b" type="button" style="width: 60px" value="{cc_pd_select_photo_b}" onclick="Element('cc_photo_frame').contentWindow.document.all['cc_photo_input'].click();"> 33 33 </td> 34 <td align="center" colspan="2" rowspan="3"><img id="cc_pd_photo" src=" templates/default/images/photo.png" border="0" width="60px" height="80px"></td>34 <td align="center" colspan="2" rowspan="3"><img id="cc_pd_photo" src="{url}/templates/default/images/photo.png" border="0" width="60px" height="80px"></td> 35 35 </tr> 36 36 <tr class="row_on"> -
trunk/contactcenter/templates/default/corporative_full_add.tpl
r1676 r2475 35 35 <input id="cc_pd_select_photo_b" type="button" style="width: 60px" value="{cc_pd_select_photo_b}" onclick="Element('cc_photo_frame').contentWindow.document.all['cc_photo_input'].click();"> 36 36 </td> 37 <td align="center" colspan="2" rowspan="3"><img id="cc_pd_photo" src=" templates/default/images/photo.png" border="0" width="60px" height="80px"></td>37 <td align="center" colspan="2" rowspan="3"><img id="cc_pd_photo" src="{url}/templates/default/images/photo.png" border="0" width="60px" height="80px"></td> 38 38 </tr> 39 39 <tr class="row_on"> -
trunk/contactcenter/templates/default/full_add.tpl
r1676 r2475 32 32 <input id="cc_pd_select_photo_b" type="button" style="width: 60px" value="{cc_pd_select_photo_b}" onclick="Element('cc_photo_frame').contentWindow.document.all['cc_photo_input'].click();"> 33 33 </td> 34 <td align="center" colspan="2" rowspan="3"><img id="cc_pd_photo" src=" templates/default/images/photo.png" border="0" width="60px" height="80px"></td>34 <td align="center" colspan="2" rowspan="3"><img id="cc_pd_photo" src="{url}/templates/default/images/photo.png" border="0" width="60px" height="80px"></td> 35 35 </tr> 36 36 <tr class="row_on">
Note: See TracChangeset
for help on using the changeset viewer.