$title"; echo $contents; } } function drawerContents($container_id) { global $tools; $hasContent = false; $toolboxes =& $tools[0]; $contents = ""; foreach($toolboxes as $section) { $toolboxContent = ""; $subsections =& $tools[$section->section_id]; $tool_id = $section->section_number."_".$container_id; foreach($subsections as $tool) { $toolboxContent .= drawTool($container_id, $tool); } if ($toolboxContent != "") { $style = 'toolbox'.substr($section->section_number, 0, 1); $toolboxContent = "" . ""; $contents .= $toolboxContent; $hasContent = true; } } $contents .= "
{$section->section_title}
"; return ($hasContent)?$contents:""; } function drawTool($container_id, $section) { global $tools; global $tasksBySection; //trace("drawTool($container_id, {$section->section_id})", 3); $title = getPageTitle($section); $folder_id = $container_id."_".$section->presort; $subsections =& $tools[$section->section_id]; $content = ""; $forms = getFormsForSection($section); /*if (count($forms) > 0) { $name .= ":".$forms[0]->form_id; }*/ if (is_array($subsections)) { foreach($subsections as $sub) { switch($sub->section_type) { case "TOOL": $content .= drawTool($container_id, $sub); break; case "ELEMENT": $content .= drawElement($container_id, $sub); break; default: break; } } } if ($section->top_most_parent_id == $section->parent_section_id) { $style = "font-weight:bold; padding-top: 6px;padding-bottom: 6px; font-size: 14px"; } else { $style = "font-weight:bold; padding-top: 4px;padding-left: 10px;padding-bottom: 4px; font-size: 13px"; } if ($content) { $folder = "$title"; $content = $folder.$content; } return $content; } function drawElement($container_id, $element) { //trace("drawElement($container_id, {$element->section_id})", 3); global $tasks; $forms = getFormsForSection($element); $content = ""; if (count($forms) > 0) { foreach($forms as $form) { if ($tasks[$form->form_id]) { $task =& $tasks[$form->form_id]; $status = getStatus($task); $title = getPageTitle($element); if ($container_id) { $link = "select_program.php?container_id=$container_id§ion_id={$element->section_id}"; } else { $link = "page.php?section_id={$element->section_id}"; } $content .= "$title{$status[0]}".$status[1].""; } } } return $content; } function getFormsForSection($section) { global $pageLookup; global $formLookup; $result = array(); $p = $pageLookup[$section->section_id]; if (is_array($p)) { foreach($p as $page) { $f = $formLookup[$page->page_id]; if (is_array($f)) { foreach($f as $form) { $result[] = $form; } } } } return $result; } function getStatus($task) { $date = $task->date_assigned; $status = "Assigned"; $form = new XMLForm($task->form_id); $s = $form->getSubmissionStatus(); switch($s) { case EmptyForm: $date = $task->date_assigned; $status = "Assigned"; break; case Edited: $date = $task->date_assigned; $status = ""; break; case Returned; $date = $task->date_assigned; $status = ""; break; case Submitted: $date = $form->getLastUpdate(); $status = "Submitted"; break; case Resubmitted: $date = $form->getLastUpdate(); $status = "Resubmitted"; break; case Approved: $date = $task->date_assigned; $status = "Accepted"; break; } return array($status, getDateLong($date), $s); } if ($_SESSION["user_role"] == "master") { // Master Users need to see the master view. redirect("task_list_master.php"); exit; } checkRole("member", "expert"); $user = new User($_SESSION["user_id"]); // Build the page and form lookup tables $pageLookup = groupedQuery(Page, "where status='Y' order by section_id, page_order", "section_id", new ExclusionFilter("page_desc")); $formLookup = groupedQuery(XMLForm, "where status='Y' and form_type in ". "('SINGLE', 'SURVEY', 'SCENARIO', 'AUXILIARY','CONTAINER', 'PLACEHOLDER') ". "order by page_id, form_order", "page_id", new ExclusionFilter("form_body")); ?>

 
Your Task List

As a Facilitation Team Member, you are automatically authorized to view all tools and related files and reports, and access to the filing cabinet.

You have been assigned the tool(s) listed below and authorized to "WRITE" into them.

To “WRITE” into an assigned tool involves:

  • Viewing the tool and related files and reports;
  • Completing forms;
  • Editing form content;
  • Clearing data;
  • Managing survey invitations;
  • Entering survey data;
  • Deleting survey responses; and
  • Submitting final data for review by Facilitator.

Once a form is submitted, you cannot make any changes unless the Facilitator sends the form back for additional edits.

As an external user, you are automatically authorized to view all tools and related files and reports in Toolbox 1. At the discretion of the Facilitation Team, you may be authorized to view additional tools.

You have been assigned the tool(s) listed below and authorized to "WRITE" into them.

To “WRITE” into an assigned tool involves:

  • Viewing the tool and related files and reports;
  • Completing forms;
  • Editing form content;
  • Clearing data;
  • Managing survey invitations;
  • Entering survey data;
  • Deleting survey responses; and
  • Submitting final data for review by Facilitator.

Once a form is submitted, you cannot make any changes unless the Facilitator sends the form back for additional edits.

Click on the Toolbox bar(s) below for a display of the tool(s) assigned to you.



? How to use the Task List
getTasks(null); $tasksBySection = reindexList($tasks, "section_id"); drawer("context", "Mapping Context and Development of Programs", null, true); $containers = loadContainers("program"); $tools = getSectionHierarchyByContainerType("program", "TOOLBOX", "TOOL", "ELEMENT"); foreach($containers as $container) { $container_id = $container->container_id; $formFilter->setContainerID("program", $container_id); $tasks = $user->getTasks($container_id); $tasksBySection = reindexList($tasks, "section_id"); drawer("program_$container_id", "Program: {$container->container_title}", $container_id, false); } ?>