source: branches/2.2/contactcenter/setup/default_records.inc.php @ 5097

Revision 5097, 2.2 KB checked in by alexandrecorreia, 9 years ago (diff)

Ticket #2020 - Adicionado ao arquivo default_records.inc.php a configuracao padrao para este modulo.

  • 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  *  - Nilton Emilio Buhrer Neto <nilton.neto@gmail.com>                      *
9  *  sponsored by Thyamad - http://www.thyamad.com                            *
10  * ------------------------------------------------------------------------- *
11  *  This program is free software; you can redistribute it and/or modify it  *
12  *  under the terms of the GNU General Public License as published by the    *
13  *  Free Software Foundation; either version 2 of the License, or (at your   *
14  *  option) any later version.                                               *
15  \***************************************************************************/
16        /* Default Preference */
17        $oProc->query("insert into phpgw_preferences(preference_owner, preference_app, preference_value) ".
18                                        "values('-1', 'contactcenter', 'a:7:{s:6:\"empNum\";s:1:\"0\";s:4:\"cell\";s:1:\"0\";s:10:\"department\";s:1:\"0\";".
19                                        "s:15:\"personCardEmail\";s:1:\"1\";s:15:\"personCardPhone\";s:1:\"2\";s:23:\"displayConnectorDefault\";".
20                                        "s:1:\"1\";s:16:\"displayConnector\";s:1:\"1\";}');");
21
22        /* Default Contact Center Data */       
23        $oProc->query("insert into phpgw_cc_typeof_ct_conns (id_typeof_contact_connection,contact_connection_type_name) values(1,'Email')");
24        $oProc->query("insert into phpgw_cc_typeof_ct_conns (id_typeof_contact_connection,contact_connection_type_name) values(2,'Telefone')");
25        $oProc->query("insert into phpgw_cc_typeof_ct_addrs (id_typeof_contact_address,contact_address_type_name) values(1,'Comercial')");     
26        $oProc->query("insert into phpgw_cc_typeof_ct_addrs (id_typeof_contact_address,contact_address_type_name) values(2,'Residencial')");
27
28        // Populate brazilian database.
29        include("states_pt-br.inc.php");
30        include("cities_pt-br.inc.php");
Note: See TracBrowser for help on using the repository browser.