[6779] | 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_once('../header.inc.php'); |
---|
| 13 | |
---|
| 14 | class soeditElement{ |
---|
| 15 | |
---|
| 16 | //var $db; |
---|
| 17 | var $projId; |
---|
| 18 | var $resultNameDesc; |
---|
| 19 | var $resultProjDesc; |
---|
| 20 | var $resultUidNumber; |
---|
| 21 | var $resultUserAdmin; |
---|
| 22 | var $nameDesc; |
---|
| 23 | var $usrProj; |
---|
| 24 | var $usrTasks; |
---|
| 25 | var $resultTasks; |
---|
| 26 | |
---|
| 27 | public function soeditProject(){ |
---|
| 28 | include_once('../phpgwapi/inc/class.db.inc.php'); |
---|
| 29 | $projId = addslashes($_POST['projId']); |
---|
| 30 | $this->nameDesc = $GLOBALS['phpgw']->db; |
---|
| 31 | $this->usrProj = $GLOBALS['phpgw']->db; |
---|
| 32 | $this->usrTasks = $GLOBALS['phpgw']->db; |
---|
| 33 | |
---|
| 34 | $this->nameDesc->query('SELECT proj_name, proj_description FROM phpgw_agile_projects WHERE proj_id='.$projId,__LINE__,__FILE__); |
---|
| 35 | while($this->nameDesc->next_record()) |
---|
| 36 | { |
---|
| 37 | $this->resultNameDesc = $this->nameDesc->f('proj_name'); |
---|
| 38 | $this->resultProjDesc = $this->nameDesc->f('proj_description'); |
---|
| 39 | } |
---|
| 40 | $this->usrProj->query('SELECT uprojects_id_user,uprojects_user_admin FROM phpgw_agile_users_projects WHERE uprojects_id_project='.$projId,__LINE__,__FILE__); |
---|
| 41 | while($this->usrProj->next_record()) |
---|
| 42 | { |
---|
| 43 | $this->resultUidNumber[] = $this->usrProj->f('uprojects_id_user'); |
---|
| 44 | $this->resultUserAdmin[] = $this->usrProj->f('uprojects_user_admin'); |
---|
| 45 | } |
---|
| 46 | $this->usrTasks->query('SELECT tasks_id_owner from phpgw_agile_tasks WHERE tasks_id_proj='.$projId,__LINE__,__FILE__); |
---|
| 47 | while($this->usrTasks->next_record()) |
---|
| 48 | { |
---|
| 49 | $this->resultTasks[] = $this->usrTasks->f('tasks_id_owner'); |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | // print_r($this->resultUidNumber); |
---|
| 54 | // print_r($this->resultUserAdmin); |
---|
| 55 | }//End soeditProject |
---|
| 56 | }//End Class soEditElement |
---|
| 57 | ?> |
---|