source: branches/2.2/contactcenter/inc/hook_settings.inc.php @ 5105

Revision 5105, 2.1 KB checked in by alexandrecorreia, 13 years ago (diff)

Ticket #2185 - Corrigido o salvamento das preferências do catalogo para seguir padrão do expresso

  • Property svn:executable set to *
Line 
1<?php
2/**************************************************************************\
3* eGroupWare - Contactcenter Preferences                                   *
4* http://www.expressolivre.org                                             *   
5* Modified by Alexandre Correia <alexandrecorreia@celepar.pr.gov.br>       *
6* --------------------------------------------                             *
7*  This program is free software; you can redistribute it and/or modify it *
8*  under the terms of the GNU General Public License as published by the   *
9*  Free Software Foundation; either version 2 of the License, or (at your  *
10*  option)                                                                 *
11\**************************************************************************/
12
13if(!isset($GLOBALS['phpgw_info'])){
14        $GLOBALS['phpgw_info']['flags'] = array(
15                'currentapp' => 'contactcenter',
16                'nonavbar'   => true,
17                'noheader'   => true
18        );
19}
20
21require_once '../header.inc.php';
22
23$pCatalog                       = CreateObject('contactcenter.bo_people_catalog');
24$typesConnections       = $pCatalog->get_all_connections_types();
25
26$preferences    = CreateObject('contactcenter.ui_preferences');
27$actual                 = $preferences->get_preferences();
28
29// Section Cards Visualization Preferences;
30create_section("Cards Visualization Preferences");
31
32$defaultConnections = array();
33if(is_array($typesConnections))
34{
35        foreach( $typesConnections as $key => $value)
36        {
37                $defaultConnections[$key] = $value;
38        }
39}
40
41// Default Person Email Type
42create_select_box('Default Person Email Type', 'personCardEmail', $defaultConnections);
43//Default Person Telephone Type
44create_select_box('Default Person Telephone Type', 'personCardPhone', $defaultConnections);
45
46// Section Connector Setup;
47create_section("Connector Setup");
48create_check_box('Display Connector Client-Server Status Information?','displayConnector',$actual['displayConnector']);
49
50// Section Display Preferences;
51create_section("Display Preferences");
52create_check_box('Registration','empNum', $actual['empNum']);
53create_check_box('Cellphone','cell',$actual['cell']);
54create_check_box('Sector','department',$actual['department']);
Note: See TracBrowser for help on using the repository browser.