*
* sponsored by Thyamad - http://www.thyamad.com
* ------------------------------------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\***************************************************************************/
class ui_preferences
{
var $public_functions = array(
'index' => true,
'set_preferences' => true,
);
function index()
{
$GLOBALS['phpgw_info']['flags']['app_header'] = lang('ContactCenter').' - '.lang('Preferences');
$GLOBALS['phpgw']->common->phpgw_header();
echo parse_navbar();
$GLOBALS['phpgw']->template->set_file(array('pref' => 'preferences.tpl'));
/* Get Saved Preferences */
$actual = $this->get_preferences();
/* Get the catalog options */
$pCatalog = CreateObject('contactcenter.bo_people_catalog');
$types = $pCatalog->get_all_connections_types();
if (is_array($types))
{
$options_email = '';
foreach($types as $id => $name)
{
$options_email .= '