if (trim(strip_tags($project->intro))) { echo $OUTPUT->box_start('mod_introbox', 'projectintro'); echo format_module_intro('project', $project, $cm->id); echo $OUTPUT->box_end(); } } //$content = file_rewrite_pluginfile_urls($project->content, 'pluginfile.php', $context->id, 'mod_project', 'content', $project->revision); $formatoptions = new stdClass(); $formatoptions->noclean = true; $formatoptions->overflowdiv = true; $formatoptions->context = $context; $members = array(); $tasks = array(); $members = getGroupMembers($currentgroup); //Get group members of the group, ID's and last access $tasks = getGroupsTasks($currentgroup); $html = "<a href='../chat/index.php?id=3'>Open Chat</a><br />"; $html .= "<table border=1><tr><td style='vertical-align:top;'><u>List of Tasks</u><br /><br />+ <a href='task_create.php'>NEW</a><br /><br />"; foreach ($tasks as $task) { $name = getStudentName($task->members); $html .= " - " . $task->name . " For: "; $name_size = count($name); $name_count = 0; foreach ($name as $assigned_name) { $html .= "<b>" . $assigned_name->username . "</b>"; if ($name_size - 1 != $name_count) { $html .= ", "; } $name_count++; } $html .= " Due: " . userdate($task->end_date);
if (trim(strip_tags($project->intro))) { echo $OUTPUT->box_start('mod_introbox', 'projectintro'); echo format_module_intro('project', $project, $cm->id); echo $OUTPUT->box_end(); } } //$content = file_rewrite_pluginfile_urls($project->content, 'pluginfile.php', $context->id, 'mod_project', 'content', $project->revision); $formatoptions = new stdClass(); $formatoptions->noclean = true; $formatoptions->overflowdiv = true; $formatoptions->context = $context; $members = array(); $tasks = array(); $members = getGroupMembers($currentgroup); //Get group members of the group, ID's and last access $tasks = getGroupsTasks($currentgroup, $project->id); $history = getGroupChatHistory($currentgroup, $project->id); //Get Group chat history $html = ""; // Initiate blank HTML to create the screen. //Alert Section - When loading the module, check for any alerts for the user/group if ($currentgroup > 0) { $html .= checkAlerts($USER->id, $currentgroup); } //Draw the screen //Left side is the project side, Start with listing all the tasks $html .= "<table border=1 width=80%><tr><td style='vertical-align:top;'><table><tr><td><u>List of Tasks</u><br /><br /><a href='task_edit.php?cmid=" . $id . "'>+ NEW TASK</a><br /><br />"; foreach ($tasks as $task) { $name = getStudentName($task->members); //Get users assigned to the task //If the task is complete, display a checkmark