1 | <?php |
---|
2 | /************************************************************************************************\ |
---|
3 | * Gerencia de projetos ageis * |
---|
4 | * by Rafael Raymundo da Silva (rafael2000@gmail.com) * |
---|
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 | |
---|
12 | $GLOBALS['phpgw_info'] = array(); |
---|
13 | $GLOBALS['phpgw_info']['flags']['currentapp'] = 'agileProjects'; |
---|
14 | include('../header.inc.php'); |
---|
15 | |
---|
16 | echo '<link type="text/css" href="templates/default/css/jquery-ui-1.8.4.custom.css" rel="stylesheet" />'; |
---|
17 | echo '<link type="text/css" href="templates/default/css/columns.css" rel="stylesheet" />'; |
---|
18 | echo '<link type="text/css" href="templates/default/css/kanban.css" rel="stylesheet" />'; |
---|
19 | echo '<link type="text/css" href="templates/default/css/tables.css" rel="stylesheet" />'; |
---|
20 | echo '<script type="text/javascript" src="js/jscode/jquery-1.4.2.min.js"></script>'; |
---|
21 | //Carregando common_functions e os scripts necessários para montar as abas |
---|
22 | $obj = CreateObject("agileProjects.functions"); |
---|
23 | $scripts = "js/jscode/common_functions.js,". |
---|
24 | "js/jscode/jquery-ui-1.8.6.custom.min.js,". |
---|
25 | "js/jscode/tabs.js,". |
---|
26 | "js/jscode/edit_element.js"; |
---|
27 | echo $obj -> getFilesJs($scripts); |
---|
28 | |
---|
29 | $c = CreateObject('phpgwapi.config','agileProjects'); |
---|
30 | $c->read_repository(); |
---|
31 | $current_config = $c->config_data; |
---|
32 | |
---|
33 | $_SESSION['phpgw_info']['expresso']['user'] = $GLOBALS['phpgw_info']['user']; |
---|
34 | $_SESSION['phpgw_info']['expresso']['server'] = $GLOBALS['phpgw_info']['server']; |
---|
35 | $_SESSION['phpgw_info']['expresso']['global_denied_users'] = $GLOBALS['phpgw_info']['server']['global_denied_users']; |
---|
36 | $_SESSION['phpgw_info']['expresso']['global_denied_groups'] = $GLOBALS['phpgw_info']['server']['global_denied_groups']; |
---|
37 | // $_SESSION['phpgw_info']['expresso']['agileProjects']['active'] = 1; |
---|
38 | |
---|
39 | $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); |
---|
40 | $template->set_file(Array('agileProjects' => 'index.tpl')); |
---|
41 | $template->set_block('agileProjects','body'); |
---|
42 | |
---|
43 | //Para teste, apresentar o login/conta do usuario corrente |
---|
44 | //print_r($_SESSION['phpgw_info']['expresso']['user']['userid']); |
---|
45 | //print_r($_SESSION['phpgw_info']['expresso']['user']['account_id']); |
---|
46 | |
---|
47 | //TODO: uitabs ira retornar um array de 4 posicoes, cada uma referente a uma aba |
---|
48 | /* $uitabs = CreateObject('agileProjects.uitabs'); //nome da classe eh uitabs |
---|
49 | |
---|
50 | $uitabsContent = $uitabs->uitabs(); |
---|
51 | |
---|
52 | $var = Array( 'projects' => $uitabsContent[0], |
---|
53 | ); |
---|
54 | $template->set_var($var); |
---|
55 | */ $template->pfp('out','body'); |
---|
56 | |
---|
57 | $GLOBALS['phpgw']->common->phpgw_footer(); |
---|
58 | ?> |
---|