source: sandbox/2.2.0.2/contactcenter/inc/class.ui_api.inc.php @ 4498

Revision 4498, 20.8 KB checked in by airton, 13 years ago (diff)

Ticket #1925 - Permitir associar um contato com um grupo na tela de criação do contato

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2  /***************************************************************************\
3  * eGroupWare - Contacts Center                                              *
4  * http://www.egroupware.org                                                 *
5  * Written by:                                                               *
6  *  - Raphael Derosso Pereira <raphaelpereira@users.sourceforge.net>         *
7  *  - Jonas Goes <jqhcb@users.sourceforge.net>                               *
8  *  sponsored by Thyamad - http://www.thyamad.com                            *
9  * ------------------------------------------------------------------------- *
10  *  This program is free software; you can redistribute it and/or modify it  *
11  *  under the terms of the GNU General Public License as published by the    *
12  *  Free Software Foundation; either version 2 of the License, or (at your   *
13  *  option) any later version.                                               *
14  \***************************************************************************/
15
16        /*
17         * This is the Main ContactCenter API for other eGroupWare applications
18         *
19         */
20 
21        class ui_api
22        {
23                var $commons;
24                var $commons_loaded = false;
25               
26                function ui_api()
27                {
28                        $preferences = ExecMethod('contactcenter.ui_preferences.get_preferences');
29
30                        if (!is_array($preferences))
31                        {
32                                $preferences['personCardEmail'] = 1;
33                        }
34                        $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
35
36                        $template->set_file(array('api' => 'api_common.tpl'));
37                        /* Style Sheets */
38                        $template->set_var('cc_css', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/contactcenter/styles/cc_api.css');
39                        $template->set_var('cc_dtree_css', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/js/dftree/dftree.css');
40
41                        $template->set_var('cc_email_id_type', $preferences['personCardEmail']);
42                       
43                       
44                        /* Messages */
45                        $template->set_var('cc_msg_err_invalid_catalog',lang('Unavailable or empty Catalog'));
46                        $template->set_var('cc_msg_err_contacting_server',lang('Couldn\'t contact server or server response is invalid. Contact Admin.'));
47                        $template->set_var('cc_msg_err_timeout',lang('Operation Timed Out.'));
48                        $template->set_var('cc_msg_err_serialize_data_unknown',lang('Data to be serialized is of unknown type!'));
49                        $template->set_var('cc_msg_err_shared',lang('No shared catalog that has permission to add.'));
50                        /* End Messages */
51
52                        if ($preferences['displayConnector'])
53                        {
54                                $template->set_var('cc_connector_visible', 'true');
55                        }
56                        else
57                        {
58                                $template->set_var('cc_connector_visible', 'false');
59                        }
60                        $template->set_var('cc_loading_1', lang('Contacting Server...'));
61                        $template->set_var('cc_loading_2', lang('Server Contacted. Waiting for response...'));
62                        $template->set_var('cc_loading_3', lang('Processing Information...'));
63                        $template->set_var('cc_loading_image', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/contactcenter/templates/default/images/loading_back.png');
64                        $template->set_var('cc_server_root', $GLOBALS['phpgw_info']['server']['webserver_url']);
65                        $template->set_var('cc_phpgw_img_dir', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/images');
66
67                        /* JS Files */
68                        $template->set_var('cc_js_aux', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/contactcenter/js/ccAux.js');
69                        $template->set_var('cc_js_connector', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/contactcenter/js/connector.js');
70                        $template->set_var('cc_js_wz_dragdrop', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/js/wz_dragdrop/wz_dragdrop.js');
71                        $template->set_var('cc_js_dtree', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/js/dftree/dftree.js');
72                        $template->set_var('cc_js_dtabs', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/js/dTabs/dTabs.js');
73                        $template->set_var('cc_js_djswin', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/js/dJSWin/dJSWin.js');
74                        $template->set_var('cc_js_catalog_tree', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/contactcenter/js/cc_tree.js');
75                       
76                        $template->parse('out','api');
77
78                        $this->commons = $template->get_var('out');
79                        $this->commons_loaded = false;                 
80                        }
81               
82                /* DEPRECTED! Use get_email_win() instead */
83                function ui_get_email_win()
84                {
85                        return $this->get_email_win();
86                }
87
88                function get_email_win()
89                {
90                        //$search = $this->ui_get_search_win();
91                       
92                        $template_dir = PHPGW_SERVER_ROOT . '/contactcenter/templates/default/';
93                        $template = CreateObject('phpgwapi.Template', $template_dir);
94
95                        $template->set_file(array('email_win' => 'email_win.tpl'));
96                       
97                        if (!$this->commons_loaded)
98                        {
99                                $template->set_var('cc_api', $this->commons);
100                                $this->commons_loaded = true;
101                        }
102                        else
103                        {
104                                $template->set_var('cc_api', '');
105                        }
106                       
107                        //$template->set_var('cc_search_win', $search);
108                        $template->set_var('cc_js_search', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/contactcenter/js/cc_search.js');
109                       
110                        $template->set_var('cc_email_id_type', $search);
111                       
112                        $template->set_var('cc_email_win_title',lang('Contact Center').' - '.lang('Catalog Entries Emails'));
113                        $template->set_var('cc_email_status',lang('Status').':');
114                        $template->set_var('cc_email_search_text',lang('Search').'...');
115                       
116                        $template->set_var('cc_choose_catalogue',lang('Choose a catalogue').'...');
117                        $template->set_var('cc_choose_ordinance',lang('Choose a ordinance').'...');
118                       
119                        $template->set_var('cc_btn_to_add',lang('To').' >>');
120                        $template->set_var('cc_btn_to_del','<< '.lang('To'));
121                        $template->set_var('cc_btn_cc_add',lang('Cc').' >>');
122                        $template->set_var('cc_btn_cc_del','<< '.lang('Cc'));
123                        $template->set_var('cc_btn_cco_add',lang('Bcc').' >>');
124                        $template->set_var('cc_btn_cco_del','<< '.lang('Bcc'));
125                        $template->set_var('cc_btn_new',lang('New').'...');
126                        $template->set_var('cc_btn_details',lang('Details').'...');
127                        $template->set_var('cc_btn_update',lang('Update'));
128                        $template->set_var('cc_btn_ok',lang('Ok'));
129                        $template->set_var('cc_btn_cancel',lang('Cancel'));
130                       
131                        $template->set_var('cc_label_to',lang('To').':');
132                        $template->set_var('cc_label_cc',lang('Cc').':');
133                        $template->set_var('cc_label_cco',lang('Bcc').':');
134                        $template->set_var('cc_label_entries',lang('Entries').':');
135                        $template->set_var('cc_label_catalogues',lang('Catalogues').':');
136                        $template->set_var('cc_label_catalogue_type',lang('Type Of Catalogue').':');
137                        $template->set_var('cc_label_ordinance_type',lang('Type Of Ordinace').':');
138                       
139                        $template->set_var('phpgw_img_dir', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/images');
140                       
141                        $template->set_var('cc_js_email_win', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/contactcenter/js/cc_email_win.js');
142                       
143                        $template->parse('out','email_win');
144
145                        return $template->get_var('out');
146                }
147
148                function ui_get_search_win()
149                {
150                        return $this->get_search_win();
151                }
152
153                function get_search_win()
154                {
155                        $template_dir = PHPGW_SERVER_ROOT . '/contactcenter/templates/default/';
156                        $template = CreateObject('phpgwapi.Template',$template_dir);
157
158                        $template->set_file(array('search' => 'search_win.tpl'));
159                       
160                        if (!$this->commons_loaded)
161                        {
162                                $template->set_var('cc_api', $this->commons);
163                                $this->commons_loaded = true;
164                        }
165                        else
166                        {
167                                $template->set_var('cc_api', '');
168                        }
169                       
170                        $template->set_var('cc_search_title',lang('Contact Center - Search for Catalog Entries'));
171                        $template->set_var('cc_search_minimize',lang('Minimize'));
172                        $template->set_var('cc_search_close',lang('Close'));
173                        $template->set_var('cc_search_catalogues',lang('Catalogues'));
174                        $template->set_var('cc_search_for',lang('Search for...'));
175                        $template->set_var('cc_search_recursive',lang('Recursive Search?'));
176                        $template->set_var('cc_search_go',lang('Go'));
177                        $template->set_var('cc_search_cancel',lang('Cancel'));
178                       
179                        $template->set_var('cc_js_search_win', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/contactcenter/js/cc_search_win.js');
180                       
181                        $template->set_var('phpgw_img_dir', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/images');
182                       
183                        $template->parse('out','search');
184
185                        return $template->get_var('out');
186                }
187
188                function get_search_obj()
189                {
190                        return "\n".'<script type="text/javascript" src="'.$GLOBALS['phpgw_info']['server']['webserver_url'] . '/contactcenter/js/cc_search.js'.'"></script>'."\n";
191                }
192
193                function ui_get_full_add()
194                {
195                        return $this->get_full_add();
196                }
197
198                function get_full_add()
199                {
200                        $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
201            if($GLOBALS['phpgw_info']['server']['personal_contact_type']=='True'){
202                                $template->set_file(array('full_add' => 'corporative_full_add.tpl'));
203                                $template->set_var('cc_contact_type','advanced');
204                        }else{
205                                $template->set_file(array('full_add' => 'full_add.tpl'));
206                                $template->set_var('cc_contact_type','default');
207                        }
208                        if (!$this->commons_loaded)
209                        {
210                                $template->set_var('cc_api', $this->commons);
211                                $this->commons_loaded = true;
212                        }
213                        else
214                        {
215                                $template->set_var('cc_api', '');
216                        }
217                       
218                        $template->set_var('cc_contact_title',lang('Contact Center').' - '.lang('Contacts'));
219
220                        /* Messages */
221                        $template->set_var('cc_msg_err_empty_field',lang('field is empty'));
222                        $template->set_var('cc_msg_type_state',lang('Type new state here').'...');
223                        $template->set_var('cc_msg_type_city',lang('Type new city here').'...');
224                        /* End Messages */
225                       
226                        /* Contact */
227                        $template->set_var('cc_contact_save',lang('Save'));
228                        $template->set_var('cc_contact_cancel',lang('Cancel'));
229                        $template->set_var('cc_contact_reset',lang('Reset'));
230
231                        $template->set_var('cc_contact_personal',lang('Personal'));
232                        $template->set_var('cc_contact_addrs',lang('Addresses'));
233                        $template->set_var('cc_contact_corporative',lang('Corporative'));
234                        $template->set_var('cc_contact_conns',lang('Connections'));
235                        $template->set_var('cc_contact_grps', lang('Groups'));
236                        $template->set_var('emails_telephones', lang("E-Mails and Telephones"));
237                        $template->set_var('cc_default', lang("Default"));
238
239                        $template->set_var('cc_contact_shared',lang('Add to catalog'));
240                        $template->set_var('cc_contact_shared_types',lang('Choose in wich catalog you would like to add...'));
241
242                        /* End Contact */
243                       
244                        /* Contact - Personal Data */
245                        $dateformat = $GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'];
246               
247                        $j = 0;
248                        for ($i = 0; $i < 5; $i+=2)
249                        {
250                                switch($dateformat{$i})
251                                {
252                                        case 'Y':
253                                                $date[$j]['size'] = 4;
254                                                $date[$j]['name'] = lang('Year');
255                                                break;
256
257                                        case 'm':
258                                        case 'M':
259                                                $date[$j]['size'] = 2;
260                                                $date[$j]['name'] = lang('Month');
261                                                break;
262
263                                        case 'd':
264                                                $date[$j]['size'] = 2;
265                                                $date[$j]['name'] = lang('Day');
266                                }
267                                $j++;
268                        }
269                       
270                        $template->set_var('cc_pd_birth_size_0', "{$date[0]['size']}");
271                        $template->set_var('cc_pd_birth_size_1', "{$date[1]['size']}");
272                        $template->set_var('cc_pd_birth_size_2', "{$date[2]['size']}");
273                       
274                        $template->set_var('cc_pd_birthdate_0', "{$date[0]['name']}");
275                        $template->set_var('cc_pd_birthdate_1', "{$date[1]['name']}");
276                        $template->set_var('cc_pd_birthdate_2', "{$date[2]['name']}");
277
278                        $template->set_var('cc_pd_select_photo_b', lang('Browse').'...');
279                        $template->set_var('cc_form_photo_src', 'photo_form.html');
280                       
281                        $template->set_var('cc_pd_select_photo',lang('Select Photo'));
282                        $template->set_var('cc_pd_alias',lang('Alias'));
283                        $template->set_var('cc_pd_given_names',lang('Given Names'));
284                        $template->set_var('cc_pd_family_names',lang('Family Names'));
285                        $template->set_var('cc_pd_full_name',lang('Full Name'));
286                        $template->set_var('cc_pd_birthdate',lang('Birthdate'));
287                        $template->set_var('cc_pd_gpg_finger_print',lang('GPG Finger Print'));
288                        $template->set_var('cc_pd_suffix',lang('Suffix'));
289                        $template->set_var('cc_pd_choose_suffix',lang('Choose Suffix...'));
290                        $template->set_var('cc_pd_prefix',lang('Prefix'));
291                        $template->set_var('cc_pd_choose_prefix',lang('Choose Prefix...'));
292                        $template->set_var('cc_pd_notes',lang('Notes'));
293                        $template->set_var('cc_pd_sex',lang('Sex'));
294                        $template->set_var('cc_pd_choose_sex',lang('Choose Sex ...'));
295                        $template->set_var('cc_pd_male',lang('Male'));
296                        $template->set_var('cc_pd_female',lang('Female'));
297                        /* End Contact - Personal Data */
298                       
299                        /* Contact - Addresses */
300                        $template->set_var('cc_addr_types',lang('Type of Address'));
301                        $template->set_var('cc_addr_choose_types',lang('Choose Type of Address').'...');
302                        $template->set_var('cc_addr_countries',lang('Country'));
303                        $template->set_var('cc_addr_choose_countries',lang('Choose Country').'...');
304                        $template->set_var('cc_addr_states',lang('State'));
305                        $template->set_var('cc_addr_states_new',lang('New State').'...');
306                        $template->set_var('cc_addr_states_nostate',lang('No State'));
307                        $template->set_var('cc_addr_choose_states',lang('Choose State').'...');
308                        $template->set_var('cc_addr_cities',lang('City'));
309                        $template->set_var('cc_addr_cities_new',lang('New City').'...');
310                        $template->set_var('cc_addr_choose_cities',lang('Choose City').'...');
311                        $template->set_var('cc_addr_1',lang('Address 1'));
312                        $template->set_var('cc_addr_2',lang('Address 2'));
313                        $template->set_var('cc_addr_complement',lang('Complement'));
314                        $template->set_var('cc_addr_other',lang('Address Other'));
315                        $template->set_var('cc_addr_postal_code',lang('Postal Code'));
316                        $template->set_var('cc_addr_po_box',lang('PO Box'));
317                        $template->set_var('cc_addr_is_default',lang('Is Default?'));
318                        $template->set_var('cc_addr_yes',lang('Yes'));
319                        $template->set_var('cc_addr_no',lang('No'));
320                        $template->set_var('cc_available',lang('Available'));
321                        /* End Contact - Addresses */
322                       
323                       
324                        /* Contact - Connections */
325                        $template->set_var('cc_conn_type',lang('Type of Connection'));
326                        $template->set_var('cc_conn_name',lang('Connection Name'));
327                        $template->set_var('cc_conn_value',lang('Connection Value'));
328                       
329                        $template->set_var('cc_new_same_type',lang('New from the same Type').'...');
330                       
331                        $template->set_var('cc_conn_type_none',lang('Choose Type of Connection').'...');
332                        /* End Contact - Connections */
333
334                        /* Contact - Groups */
335                        $template->set_var('cc_grps_available', lang('Groups available'));
336                        $template->set_var('cc_grps_selected', lang('Selected groups'));
337                        $template->set_var('txt_add', lang('Add'));
338                        $template->set_var('txt_rem', lang('Remove'));
339                        /* End Contact - Groups */
340
341                        /* Corporate - contact */
342                        $template->set_var('cc_name_corporate',lang('Corporate'));
343                        $template->set_var('cc_job_title',lang('Job Title'));
344                        $template->set_var('cc_department',lang('Department'));
345                        $template->set_var('cc_web_page',lang('Web Page'));
346
347                        $template->set_var('email', lang("E-Mail"));
348                        $template->set_var('telephone', lang("Telephone"));
349                        $template->set_var('choose_email_telephone', lang("Choose 'E-Mail' or 'Telephone'"));
350
351                        $template->parse('out_full', 'full_add');
352
353                        return $template->get_var('out_full');
354                }
355
356                function get_quick_add_plugin()
357                {
358                        $template_dir = PHPGW_SERVER_ROOT . '/contactcenter/templates/default/';
359                        $template = CreateObject('phpgwapi.Template',$template_dir);
360
361                        $template->set_file(array('quickAdd' => 'quickAddPlugin.tpl'));
362                       
363                        if (!$this->commons_loaded)
364                        {
365                                $template->set_var('cc_api', $this->commons);
366                                $this->commons_loaded = true;
367                        }
368                        else
369                        {
370                                $template->set_var('cc_api', '');
371                        }
372                       
373                        $template->set_var('ccQAPluginFile', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/contactcenter/js/ccQuickAdd-plugin.js');
374
375                        /* Fields Insertion */
376
377                        // TODO: get this from preferences
378                        $nFields = 5;
379                        $fields = array(
380                                lang('Alias'),
381                                lang('Given Names'),
382                                lang('Family Names'),
383                                lang('Phone'),
384                                lang('Email')
385                        );
386                       
387                        $template->set_var('ccQAnFields', $nFields);
388                       
389                        $fieldsHTML = '';
390                        $fieldsTop = 10;
391                        $fieldsSpace = 30;
392                        for ($i = 0; $i < $nFields; $i++)
393                        {
394                                $fieldsHTML .= '<span id="ccQuickAddT'.$i.'" style="position: absolute; top: '.($fieldsTop+$i*$fieldsSpace).'px; left: 5px; width: 100px; text-align: right; border: 0px solid #999;">'.$fields[$i].':</span>'."\n";
395                                if ($i == 0){
396                                        $fieldsHTML .= '<input id="ccQuickAddI'.$i.'" type="text" value="" maxlength="30" style="position: absolute; top: '.($fieldsTop+$i*$fieldsSpace).'px; left: 110px; width: 135px;">'."\n";
397                                }
398                                else if ($i == 4){
399                                        $fieldsHTML .= '<input id="ccQuickAddI'.$i.'" type="text" value="" maxlength="100" style="position: absolute; top: '.($fieldsTop+$i*$fieldsSpace).'px; left: 110px; width: 135px;">'."\n";
400                                }else if ($i == 3){
401                                        $fieldsHTML .= '<input id="ccQuickAddI'.$i.'" type="text" value="" onkeyup="formatPhone(this)" maxlength="30" style="position: absolute; top: '.($fieldsTop+$i*$fieldsSpace).'px; left: 110px; width: 135px;">'."\n";
402                                }
403                                else {
404                                        $fieldsHTML .= '<input id="ccQuickAddI'.$i.'" type="text" value="" maxlength="50" style="position: absolute; top: '.($fieldsTop+$i*$fieldsSpace).'px; left: 110px; width: 135px;">'."\n";
405                                }
406                        }
407
408                        $template->set_var('ccQAFields', $fieldsHTML);
409                        $template->set_var('ccQAWinHeight', ($i+1)*$fieldsSpace+$fieldsTop);
410                        $template->set_var('ccQAFunctionsTop', ($fieldsTop+$i*$fieldsSpace).'px');
411                       
412                        /* Images Dir */
413                        $template->set_var('ccQACardImgRoot', $GLOBALS['phpgw_info']['server']['webserver_url'].'/contactcenter/templates/default/images/');
414                       
415                        /* Texts */
416                        $template->set_var('ccQATitle', lang('Contact Center').' - '.lang('Quick Add'));
417                        $template->set_var('ccQASave', lang('Save'));
418                        $template->set_var('ccQAClear', lang('Reset'));
419                        $template->set_var('ccQACancel', lang('Cancel'));
420                       
421                        $template->parse('out_QA', 'quickAdd');
422
423                        return $template->get_var('out_QA');
424                }
425
426                function parseGroupOption($level, $name, $selected=false){
427
428                    $selected = $selected?'selected="selected"':'';
429                    $optionTemplate = '<option value="{level}" {selected}>{value}</option>';
430
431                    $optionTemplate = preg_replace('/\{level\}/', $level, $optionTemplate);
432                    $optionTemplate = preg_replace('/\{selected\}/', $selected, $optionTemplate);
433                    $optionTemplate = preg_replace('/\{value\}/', $name, $optionTemplate);
434
435                    return $optionTemplate;
436
437                }
438
439                function getCatalogItens($level='0', $parentName=false){
440                    $bo = CreateObject('contactcenter.bo_contactcenter');
441
442                    $options = '';
443
444                    $catalogTree = $bo->get_catalog_tree('0');
445                    foreach ($catalogTree as $id => $catalog)
446                    {
447                        if ($level.'.'.$id !== '0.1')
448                        {
449                            $option = $level.'.'.$id === '0.0'?
450                                $this->parseGroupOption($level.'.'.$id, $catalog['name'], true):
451                                $this->parseGroupOption($level.'.'.$id, $catalog['name']);
452                            $options .= $option;
453                        }
454                    }
455                    return $options;
456                }
457               
458                function get_add_group()
459                {
460                        $template_dir = PHPGW_SERVER_ROOT . '/contactcenter/templates/default/';
461                        $template = CreateObject('phpgwapi.Template',$template_dir);
462
463                        $template->set_file(array('addGroup' => 'addGroup.tpl'));
464
465                        $catalogOptions = $this->getCatalogItens();
466                       
467                        if (!$this->commons_loaded)
468                        {
469                                $template->set_var('cc_api', $this->commons);
470                                $this->commons_loaded = true;
471                        }
472                        else
473                        {
474                               
475                                $template->set_var('cc_api', '');
476                        }
477
478                        $template->set_var('ccAGSourceSelectContent', $catalogOptions);
479                        $template->set_var('ccAGSearch', lang('Search'));
480                       
481                        $template->set_var('ccAGFile', $GLOBALS['phpgw_info']['server']['webserver_url'] . '/contactcenter/js/ccAddGroup.js');                 
482                        $template->set_var('ccAGWinHeightIE', '340');
483                        $template->set_var('ccAGWinHeightMO', '335');
484                       
485                        /* Images Dir */
486                        $template->set_var('ccAGCardImgRoot', $GLOBALS['phpgw_info']['server']['webserver_url'].'/contactcenter/templates/default/images/');
487                       
488                        /* Texts */
489                        $template->set_var('ccAGTitle', lang('Contact Center').' - '.lang('Group Add'));
490                        $template->set_var('ccAGSave', lang('Save'));
491                        $template->set_var('ccAGClear', lang('Reset'));
492                        $template->set_var('ccAGCancel', lang('Cancel'));
493                        $title = '<input type="text" id="title" name="title" value="'.$group['title'].'" size="50" maxlength="50"/>';                   
494                               
495                        $template->set_var('title', $title);                                                                                           
496                        // set content and label variables.
497                        $template->set_var(array(
498                                                'msg_text'      => lang($status),                                               
499                                                'txt_title'     => lang('Contact Group List'),                                         
500                                                'txt_cancel'=> lang('cancel'),
501                                                'txt_add'=> lang('Add'),                                               
502                                                'txt_rem'=> lang('Remove'),
503                                                'txt_personal_contacts' => lang('Personal Contacts'),
504                                                'txt_contacts_in_list' => lang("Participants"),
505                                                'txt_name'      => lang('Full Name')));
506                                               
507                        $template->parse('out_AG', 'addGroup');
508                       
509                        return $template->get_var('out_AG');
510                }
511        }
512?>
Note: See TracBrowser for help on using the repository browser.