source: sandbox/2.3-MailArchiver/agileProjects/inc/class.uisprints.inc.php @ 6779

Revision 6779, 4.5 KB checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado Expresso(branch 2.3) integrado ao MailArchiver?.

Line 
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.sosprints.inc.php');
13        include('../header.inc.php');
14
15        class uisprints{
16
17                var $listSprints;
18
19                function uisprints(){
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->listSprints = new sosprints();
29                                $this->listSprints->sosprintsList();
30
31                                $numBacklogs = count($this->listSprints->sprintsElements['sprints_name']);
32                                echo    "<div><button type=\"button\" onClick=\"javascript:sprintInclude();\">[ ".lang('Include sprint')." ]</button><br/><br/>";
33                                if (count($this->listSprints->sprintsElements) > 0 ){
34                                   echo "
35                                        <table id=\"customers\">
36                                          <thead>
37                                             <tr>
38                                                <th>".lang('Name')."</th>
39                                                <th>".lang('Goal')."</th>
40                                                <th>".lang('Start date')."</th>
41                                                <th>".lang('End date')."</th>
42                                                <th>".lang('Retrospective')."</th>
43                                                <th>".lang('Actions')."</th>
44                                             </tr>
45                                          </thead>
46                                          <tbody>";
47                                }
48                                for($i=0;$i<$numBacklogs;$i++){
49                                                $sel = '';
50                                                $unsel='';
51
52                                                if(($this->listSprints->sprintsElements['sprints_status'][$i]) == 't'){
53                                                        $sel = '<B>';
54                                                        $unsel = '</B>';
55                                                }
56
57                                                echo    "<tr class=".$line.">
58                                                  <td>".$sel.$this->listSprints->sprintsElements['sprints_name'][$i].$unsel."</td>
59                                                  <td>".$sel.$this->listSprints->sprintsElements['sprints_goal'][$i].$unsel."</td>
60                                                  <td>".$sel.$this->listSprints->sprintsElements['sprints_dt_start'][$i].$unsel."</td>
61                                                  <td>".$sel.$this->listSprints->sprintsElements['sprints_dt_end'][$i].$unsel."</td>
62                                                  <td>".$sel.$this->listSprints->sprintsElements['sprints_retrospective'][$i].$unsel."</td>
63                                                  <td>
64                                                        <img onclick=\"activeSprint(".$this->listSprints->sprintsElements['sprints_id'][$i].");\" title='Abrir' src='templates/default/images/open.png'/>
65                                                        <img title='Editar' src='templates/default/images/edit.png'/>
66                                                        <img title='Excluir' src='templates/default/images/delete.png'/>
67                                                  </td>
68                                                </tr>";
69                                        if($line == "alt"){
70                                                $line="";
71                                        }else{
72                                                $line="alt";
73                                        }
74                                }
75                                echo "</tbody></table>";
76                        }
77                }
78        }
79?>
Note: See TracBrowser for help on using the repository browser.