True, 'columns' => True, 'task' => True, 'moveJS' => True ); function uikanban(){ if($_SESSION['phpgw_info']['expresso']['agileProjects']['active'] == ''){ echo "Primeiro selecione um projeto"; exit(); } echo("
Projeto executado: "); print_r($_SESSION['phpgw_info']['expresso']['agileProjects']['projectName']); echo ("
"); echo "
"; } function columns($colName,$idCol){ include_once('inc/class.ldap_functions.inc.php'); $sotasks = new sotasks(); $list = new ldap_functions(); $col.= "
  • "; $col.= "
    "; $col.= "

    ".$colName."

    "; $col.= "
    "; switch($idCol){ case 'sprintBacklog': $sotasks->sotasksKanban('sprintBacklog'); for($i=0;$itasksElements['tasks_id_owner']);$i++){ $tasks_id=$sotasks->tasksElements['tasks_id'][$i]; $tasks_priority=$sotasks->tasksElements['tasks_priority'][$i]; $tasks_title=$sotasks->tasksElements['tasks_title'][$i]; $tasks_description=$sotasks->tasksElements['tasks_description'][$i]; $tasks_estimate=$sotasks->tasksElements['tasks_estimate'][$i]; $col.= $this->task($list->uidnumber2cn($sotasks->tasksElements['tasks_id_owner'][$i]),$tasks_id,$tasks_priority,$tasks_title,$tasks_description,$tasks_estimate); } break; case 'doing': $sotasks->sotasksKanban('doing'); for($i=0;$itasksElements['tasks_id_owner']);$i++){ $tasks_id=$sotasks->tasksElements['tasks_id'][$i]; $tasks_priority=$sotasks->tasksElements['tasks_priority'][$i]; $tasks_title=$sotasks->tasksElements['tasks_title'][$i]; $tasks_description=$sotasks->tasksElements['tasks_description'][$i]; $tasks_estimate=$sotasks->tasksElements['tasks_estimate'][$i]; $col.= $this->task($list->uidnumber2cn($sotasks->tasksElements['tasks_id_owner'][$i]),$tasks_id,$tasks_priority,$tasks_title,$tasks_description,$tasks_estimate); } break; case 'tests': $sotasks->sotasksKanban('tests'); for($i=0;$itasksElements['tasks_id_owner']);$i++){ $tasks_id=$sotasks->tasksElements['tasks_id'][$i]; $tasks_priority=$sotasks->tasksElements['tasks_priority'][$i]; $tasks_title=$sotasks->tasksElements['tasks_title'][$i]; $tasks_description=$sotasks->tasksElements['tasks_description'][$i]; $tasks_estimate=$sotasks->tasksElements['tasks_estimate'][$i]; $col.= $this->task($list->uidnumber2cn($sotasks->tasksElements['tasks_id_owner'][$i]),$tasks_id,$tasks_priority,$tasks_title,$tasks_description,$tasks_estimate); } break; case 'done': $sotasks->sotasksKanban('done'); for($i=0;$itasksElements['tasks_id_owner']);$i++){ $tasks_id=$sotasks->tasksElements['tasks_id'][$i]; $tasks_priority=$sotasks->tasksElements['tasks_priority'][$i]; $tasks_title=$sotasks->tasksElements['tasks_title'][$i]; $tasks_description=$sotasks->tasksElements['tasks_description'][$i]; $tasks_estimate=$sotasks->tasksElements['tasks_estimate'][$i]; $col.= $this->task($list->uidnumber2cn($sotasks->tasksElements['tasks_id_owner'][$i]),$tasks_id,$tasks_priority,$tasks_title,$tasks_description,$tasks_estimate); } break; } $col.= "
    "; $col.= "
  • "; return($col); } function task($owner='',$tasks_id,$tasks_priority,$tasks_title='',$tasks_description='',$tasks_estimate){ if($tasks_priority == 't'){ $tasks_priority ="mark_red"; } else{ $tasks_priority="mark_green"; } $task.="
    ".$owner." ".$tasks_title."
    ".$tasks_description."
    Estimativa: ".$tasks_estimate." pontos
    "; return($task); } } ?>