Changeset 3796


Ignore:
Timestamp:
02/18/11 16:35:30 (13 years ago)
Author:
niltonneto
Message:

Ticket #1515 - Implementado verificação para mostrar campos permitidos ou não.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/contactcenter/js/cc.js

    r3793 r3796  
    24402440                                html_card = '<tr  style="height:20px" id="' + id + '" onmouseout="'+bg+'" onmouseover="this.style.background=\'LIGHTYELLOW\'" bgcolor="EEEEEE">' + 
    24412441                                        //Para exibir a matricula do empregado na tabela 
    2442                                         '<td align="center" nowrap><span style="solid #999; font-weight: normal; font-size: 10px;height: 10px" id="' + id + ':cc_empNumber"></span></td>' + 
     2442                                        (preferences.empNumShow && ccTree.catalog_perms == 1 ? '<td align="center" nowrap><span style="solid #999; font-weight: normal; font-size: 10px;height: 10px" id="' + id + ':cc_empNumber"></span></td>' : '') + 
    24432443                                        '<td width="auto" style="font-weight: normal; font-size: 10px; text-align: left; height: 10px;"><span valign="bottom" id="' + id + ':cc_icon_group">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="' + id + ':cc_name"></span></td>' + 
    24442444                                        '<td style="solid #999; font-weight: normal; font-size: 10px; text-align: left; height: 10px"><span onMouseOver="this.title = \''+Element('cc_send_mail').value+' => '+'\'+document.getElementById(\''+id + ':cc_name\').innerHTML" id="' + id + ':cc_mail"></span></td>' + 
    24452445                                        '<td align="center" nowrap><span style="solid #999; font-weight: normal; font-size: 10px;height: 10px" id="' + id + ':cc_phone"></span></td>' + 
    24462446                                        //Para exibir o celular empresarial do empregado na tabela 
    2447                                         '<td align="center" nowrap><span style="solid #999; font-weight: normal; font-size: 10px;height: 10px" id="' + id + ':cc_mobile"></span></td>' + 
     2447                                        (preferences.cellShow && ccTree.catalog_perms == 1 ?    '<td align="center" nowrap><span style="solid #999; font-weight: normal; font-size: 10px;height: 10px" id="' + id + ':cc_mobile"></span></td>' : '') + 
    24482448                                        //Para exibir o setor/lotacao do empregado na tabela 
    2449                                         '<td align="center" nowrap><span style="solid #999; font-weight: normal; font-size: 10px;height: 10px" id="' + id + ':cc_department"></span></td>' + 
     2449                                        (preferences.departmentShow && ccTree.catalog_perms == 1 ? '<td align="center" nowrap><span style="solid #999; font-weight: normal; font-size: 10px;height: 10px" id="' + id + ':cc_department"></span></td>' : '') + 
    24502450                                        ( ccTree.catalog_perms == 1 ? 
    2451                                         '<td align="left"><span valign="bottom" id="' + id + ':cc_icon_data"></span></td>':'') + 
     2451                                        '<td align="left"><span valign="bottom" id="' + id + ':cc_icon_data"></span></td>':'') +                                         
     2452                                        (ccTree.catalog_perms & 2 ? 
    24522453                                        '<td align="left" >'+ 
    2453                                         (ccTree.catalog_perms & 2 ? 
    24542454                                        '<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">' + 
    24552455                                        '&nbsp;&nbsp;|&nbsp;&nbsp;'+ 
Note: See TracChangeset for help on using the changeset viewer.