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 |
|
---|
13 | if(!isset($GLOBALS['phpgw_info'])){
|
---|
14 | $GLOBALS['phpgw_info']['flags'] = array(
|
---|
15 | 'currentapp' => 'contactcenter',
|
---|
16 | 'nonavbar' => true,
|
---|
17 | 'noheader' => true
|
---|
18 | );
|
---|
19 | }
|
---|
20 |
|
---|
21 | require_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;
|
---|
30 | create_section("Cards Visualization Preferences");
|
---|
31 |
|
---|
32 | $defaultConnections = array();
|
---|
33 | if(is_array($typesConnections))
|
---|
34 | {
|
---|
35 | foreach( $typesConnections as $key => $value)
|
---|
36 | {
|
---|
37 | $defaultConnections[$key] = $value;
|
---|
38 | }
|
---|
39 | }
|
---|
40 |
|
---|
41 | // Default Person Email Type
|
---|
42 | create_select_box('Default Person Email Type', 'personCardEmail', $defaultConnections);
|
---|
43 | //Default Person Telephone Type
|
---|
44 | create_select_box('Default Person Telephone Type', 'personCardPhone', $defaultConnections);
|
---|
45 |
|
---|
46 | // Section Connector Setup;
|
---|
47 | create_section("Connector Setup");
|
---|
48 | create_check_box('Display Connector Client-Server Status Information?','displayConnector',$actual['displayConnector']);
|
---|
49 |
|
---|
50 | // Section Display Preferences;
|
---|
51 | create_section("Display Preferences");
|
---|
52 | create_check_box('Registration','empNum', $actual['empNum']);
|
---|
53 | create_check_box('Cellphone','cell',$actual['cell']);
|
---|
54 | create_check_box('Sector','department',$actual['department']);
|
---|