source: branches/2.2/reports/index.php @ 4570

Revision 4570, 2.1 KB checked in by thiagoaos, 9 years ago (diff)

Ticket #1955 - Adição de 2 relatórios e ajuste no relatório de cotas.

Line 
1<?php
2        /*************************************************************************************\
3        * Expresso Relatório                                                                                                     *
4        * by Elvio Rufino da Silva (elviosilva@yahoo.com.br, elviosilva@cepromat.mt.gov.br)  *
5        * -----------------------------------------------------------------------------------*
6        *  This program is free software; you can redistribute it and/or modify it                       *
7        *  under the terms of the GNU General Public License as published by the                         *
8        *  Free Software Foundation; either version 2 of the License, or (at your                        *
9        *  option) any later version.                                                                                                            *
10        \*************************************************************************************/
11        $GLOBALS['phpgw_info'] = array();
12        $GLOBALS['phpgw_info']['flags']['currentapp'] = 'reports';
13        include('../header.inc.php');
14
15        $c = CreateObject('phpgwapi.config','reports');
16        $c->read_repository();
17        $current_config = $c->config_data;
18        $boemailadmin   = CreateObject('emailadmin.bo');
19        $emailadmin_profile = $boemailadmin->getProfileList();
20        $_SESSION['phpgw_info']['expresso']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']);
21       
22        $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
23        $template->set_file(Array('reports' => 'index.tpl'));
24        $template->set_block('reports','body');
25       
26        $var = Array(
27                'lang_rel_user_all'                     => lang('report user'),
28                'lang_rel_title'                        => lang('reports'),
29                'lang_rel_user_org'                     => lang('report organization'),
30                'lang_rel_share_account_org'            => lang('report share account organization'),
31                'lang_rel_institutional_account_org'    => lang('report institutional account organization'),
32                'lang_rel_cota_org'             => lang('report cota organization'),
33                'lang_rel_logon_org'            => lang('report of time without logging by Organization'),
34                'lang_rel_maillists_org'        => lang('report maillists organization'),
35                'lang_rel_usersgroups_org'      => lang('report usersgroups organization'),
36                'page'                                          => $_GET[page]
37        );
38        $template->set_var($var);
39        $template->pfp('out','body');
40        $GLOBALS['phpgw']->common->phpgw_footer();
41?>
Note: See TracBrowser for help on using the repository browser.