listProjects = new solists(); $num = count($this->listProjects->db); $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); $template->set_file(Array('agileProjects' => 'projects.tpl')); $template->set_block('agileProjects','body'); if($_SESSION['phpgw_info']['expresso']['agileProjects']['projectName']){ echo("
Projeto executado: "); print_r($_SESSION['phpgw_info']['expresso']['agileProjects']['projectName']); echo ("
"); } echo "


"; for($i=0;$i<$num;$i++){ for($j=0;$j<2;$j++){ $sel=''; $unsel=''; if($_SESSION['phpgw_info']['expresso']['agileProjects']['active'] != $this->listProjects->projId[$i][$j]){ $sel = ''; $unsel = ''; } echo ""; } if($line == "alt"){ $line=""; }else{ $line="alt"; } }//Fim da listagem echo "
".lang('Name of Project')." ".lang('Owner')." ".lang('Description')." ".lang('Actions')."
".$sel.$this->listProjects->db[$i][$j].$unsel." ".$sel.$this->listProjects->db[$i][++$j].$unsel." ".$sel.$this->listProjects->db[$i][++$j].$unsel." "; $projName = $this->listProjects->db[$i][2-$j]; $projId = $this->listProjects->projId[$i][2-$j]; $projOwner = $this->listProjects->db[$i][--$j]; if($_SESSION['phpgw_info']['expresso']['agileProjects']['active'] == $projId){ $projActive = ""; } else{ $projActive = ""; } echo " ".$projActive."
"; } } ?>