Changeset 1598 for trunk/contactcenter/index.php
- Timestamp:
- 11/06/09 09:50:22 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/index.php
r498 r1598 24 24 25 25 $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['telephone_number'] = $GLOBALS['phpgw_info']['user']['telephonenumber']; 26 27 $prefs = CreateObject('contactcenter.ui_preferences'); 28 $actual = $prefs->get_preferences(); 29 30 $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['empNumShow'] = false; 31 $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['cellShow'] = false; 32 $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['departmentShow'] = false; 33 34 if ($actual['empNum']) 35 { 36 $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['empNumShow'] = true; 37 } 38 39 if ($actual['cell']) 40 { 41 $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['cellShow'] = true; 42 } 43 44 if ($actual['department']) 45 { 46 $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['departmentShow'] = true; 47 } 48 49 50 26 51 //Enable/Disable VoIP Service -> Voip Server Config 27 52 $_SESSION['phpgw_info']['user']['preferences']['contactcenter']['voip_enabled'] = false; … … 38 63 } 39 64 } 40 } 65 } 66 41 67 // Verificar se há contatos compartilhados para o usuario logado 42 68 $acl = CreateObject("phpgwapi.acl",$GLOBALS['phpgw_info']['user']['account_id']); … … 47 73 } 48 74 } 49 $obj = CreateObject('contactcenter.ui_data'); 50 $obj->index(); 75 $obj = CreateObject('phpgwapi.config','contactcenter'); 76 $opts = $obj->read_repository(); 77 echo '<script> var v_label = \'' . $opts['cc_ldap_legend'] . '\'; var v_atrib = \'' . $opts['cc_ldap_atrib'] . '\'; v_min = \'' . $opts['cc_ldap_min'] . '\' </script>'; 78 $opts = null; 79 $obj = CreateObject('contactcenter.ui_data'); 80 $obj->index(); 81 82 51 83 $GLOBALS['phpgw']->common->phpgw_footer(); 52 84 ?>
Note: See TracChangeset
for help on using the changeset viewer.