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 | include('inc/class.sobacklogs.inc.php'); |
---|
13 | include('../header.inc.php'); |
---|
14 | |
---|
15 | class uibacklogs{ |
---|
16 | |
---|
17 | var $listBacklogs; |
---|
18 | |
---|
19 | function uibacklogs(){ |
---|
20 | if($_SESSION['phpgw_info']['expresso']['agileProjects']['active'] == NULL){ |
---|
21 | echo "Primeiro selecione um projeto"; |
---|
22 | exit(); |
---|
23 | } |
---|
24 | else{ |
---|
25 | echo("<div align=right>Projeto executado: "); |
---|
26 | print_r($_SESSION['phpgw_info']['expresso']['agileProjects']['projectName']); |
---|
27 | echo ("</div>"); |
---|
28 | $this->listBacklogs = new sobacklogs(); |
---|
29 | $this->listBacklogs->sobacklogs(); |
---|
30 | print_r($this->listBacklogs->tasksSprints['tasks_sprints']); |
---|
31 | $numBacklogs = count($this->listBacklogs->tasksElements['tasks_owner']); |
---|
32 | echo "<div><button type=\"button\" onClick=\"javascript:taskInclude();\">[ ".lang('Include task')." ]</button><br/><br/>"; |
---|
33 | if (count($this->listBacklogs->tasksElements) > 0 ){ |
---|
34 | echo " |
---|
35 | <table id=\"customers\"> |
---|
36 | <thead> |
---|
37 | <tr> |
---|
38 | <th>".lang('Responsable')."</th> |
---|
39 | <th>".lang('Title')."</th> |
---|
40 | <th>".lang('Description')."</th> |
---|
41 | <th>".lang('Sprint')."</th> |
---|
42 | <th>".lang('Actions')."</th> |
---|
43 | </tr> |
---|
44 | </thead> |
---|
45 | <tbody>"; |
---|
46 | } |
---|
47 | for($i=0;$i<$numBacklogs;$i++){ |
---|
48 | |
---|
49 | echo "<tr class=".$line."> |
---|
50 | <td>".$this->listBacklogs->tasksElements['tasks_owner'][$i]."</td> |
---|
51 | <td>".$this->listBacklogs->tasksElements['tasks_title'][$i]."</td> |
---|
52 | <td>".$this->listBacklogs->tasksElements['tasks_description'][$i]."</td> |
---|
53 | <td>".$this->listBacklogs->tasksElements['tasks_sprints'][$i]."</td> |
---|
54 | <td> |
---|
55 | <img title='Editar' src='templates/default/images/edit.png'/> |
---|
56 | <img title='Excluir' src='templates/default/images/delete.png'/> |
---|
57 | </td> |
---|
58 | </tr>"; |
---|
59 | if($line == "alt"){ |
---|
60 | $line=""; |
---|
61 | }else{ |
---|
62 | $line="alt"; |
---|
63 | } |
---|
64 | } |
---|
65 | echo "</tbody></table>"; |
---|
66 | } |
---|
67 | } |
---|
68 | } |
---|
69 | ?> |
---|