Exemplo n.º 1
0
        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);
$history = getGroupChatHistory($currentgroup);
//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) {
    //make sure a student belongs to a group
    $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
Exemplo n.º 2
0
        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
    if ($task->progress == 100) {