source: branches/2.2.0.1/agileProjects/inc/class.uitaskInclude.inc.php @ 4269

Revision 4269, 3.4 KB checked in by rafaelraymundo, 13 years ago (diff)

Ticket #1823 - Adicionada primeira versao do modulo de kanban para avaliacao.

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.sotasks.inc.php');
13 //       include('../header.inc.php');
14
15        class uitaskInclude{
16       
17                var $sprints;
18
19                function uitaskInclude(){
20                       
21                        include_once('inc/class.ldap_functions.inc.php');
22                        $list = new ldap_functions();
23                        $this->sprints = new sotasks();
24                        $sprints = $this->sprints->sotaskInclude();
25                       
26                        for($i=0;$i<count($this->sprints->sprintsElements['sprints_name']);$i++){
27                                $sprints.="<option value=\"".$this->sprints->sprintsIdElements['sprints_id'][$i]."\">".$this->sprints->sprintsElements['sprints_name'][$i]."</option>";
28
29                        }
30
31                        for($i=0;$i<count($this->sprints->usersElements['user_id']);$i++){
32                                $user_id.="<option value=\"".$this->sprints->usersElements['user_id'][$i]."\">".$list->uidnumber2cn($this->sprints->usersElements['user_id'][$i])."</option>";
33                        }
34
35                        echo    "<button type=\"button\" onClick=\"javascript:dataRequest('tabs-2');\">:: Voltar ::</button><br/><br/> 
36
37                        <h2>Incluir tarefa</h2>
38
39                        <div align=\"center\">
40                        <table id='customers' border=2>
41                                <tr class=''><td>Incluir ao Sprint: </td><td>
42                                                                <select name=\"menu\" id=\"sprint\">
43                                                                        <option value=\"0\" selected>Selecione um sprint</option>
44                                                                        ".$sprints."
45                                                                </select>
46                                <span class='important'><input type=\"checkbox\" id=\"important\" value=\"t\">&nbsp;&nbsp;Urgente</span></td></tr>
47                                <tr class='alt'><td>Responsavel: </td><td>
48                                                                <select name=\"menu\" id=\"responsable\">
49                                                                        <option value=\"0\" selected>Selecione um participante</option>
50                                                                        ".$user_id."
51                                                                </select>
52                                </td></tr>
53                                <tr class=''><td>Titulo: </td><td><input type=\"text\" id=\"title\" size='40'></td></tr>
54                                <tr class='alt'><td>Descricao: </td><td><textarea id=\"description\" cols=\"38\" rows=\"4\"></textarea></td></tr>
55                                <tr class=''><td>Estimativa: </td><td><input type=\"text\" id=\"estimate\" size='20'> pontos</td></tr>
56                        </table>
57                        <button onclick=\"javascript:newTask(
58                                                document.getElementById('sprint').value,
59                                                document.getElementById('important').checked,
60                                                document.getElementById('responsable').value,
61                                                document.getElementById('title').value,
62                                                document.getElementById('description').value,
63                                                document.getElementById('estimate').value
64                                                );\" type=\"button\">:: Criar tarefa ::</button>
65                        ";
66                }//End function
67        }//End class
68?>
Note: See TracBrowser for help on using the repository browser.