Changeset 24 for trunk/contactcenter
- Timestamp:
- 05/10/07 11:51:20 (17 years ago)
- Location:
- trunk/contactcenter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/doc/change_log.txt
r16 r24 20 20 - Foi adicionado importação e exportação aos contatos do outlook 2000 (em inglês e português) 21 21 - Foi adicionado a importação e exportação com suporte ao campo de telefone. Em todos os tipos de arquivos. 22 - Corrigido problema de lentidão ao buscar o nome/email dos participantes de uma lista pública grande. 22 23 -
trunk/contactcenter/inc/class.ui_data.inc.php
r19 r24 2390 2390 $info = ldap_get_entries($ds, $sr); 2391 2391 for($z = 0; $z < $info['count']; $z++) { 2392 $participant = ' "'.$info[$z]['cn'][0].'" <'.$info[$z]['mail'][0].'>';2392 $participant = '<font color=\'DARKBLUE\'> "'.$info[$z]['cn'][0].'" <'.$info[$z]['mail'][0].'></font><br>'; 2393 2393 $array_emails[$info[$z]['mail'][0]] = null; 2394 2394 array_push($array_participants, $participant); … … 2397 2397 foreach($array_emails as $index => $email) 2398 2398 if($email) 2399 array_push($array_participants, $email);2399 array_push($array_participants, " ".$email."<br>"); 2400 2400 2401 2401 ldap_close($ds); 2402 2402 } 2403 2403 sort($array_participants); 2404 $array_participants['names_ordered'] = $contact['names_ordered']; 2405 echo serialize($array_participants); 2404 $innerHTML = ''; 2405 foreach($array_participants as $index => $participant){ 2406 $innerHTML .= $participant; 2407 } 2408 $return = array('size' => count($array_participants), 'names_ordered'=> $contact['names_ordered'], 'inner_html' => $innerHTML); 2409 echo serialize($return); 2406 2410 } 2407 2411 -
trunk/contactcenter/js/ccListParticipants.js
r2 r24 76 76 var handler = function (responseText) { 77 77 var contacts = unserialize(responseText); 78 var title = contacts['names_ordered']; 79 document.body.appendChild(el); 80 78 var title = contacts.names_ordered; 79 document.body.appendChild(el); 81 80 el.innerHTML = ""; 82 81 el.innerHTML = "<br> <b><font color='BLUE' nowrap>"+title+"</font></b>"+ 83 82 " <br><br> <u>"+ 84 Element('cc_participants').value+"</u> <br><br>"; 85 86 if(contacts.length) { 87 for (var d = 0; d < contacts.length; d++) { 88 el.innerHTML += 89 "<font color='DARKBLUE'> "+ 90 contacts[d]+"</font> <br>"; 91 } 83 Element('cc_participants').value+"</u> <br><br>"; 84 if(contacts.size > 0) { 85 el.innerHTML += contacts.inner_html; 92 86 } 93 87 else {
Note: See TracChangeset
for help on using the changeset viewer.