|
@@ -490,6 +490,7 @@ class iassign {
|
|
|
$date->setTimestamp($item->timecreated);
|
|
|
|
|
|
$new_file = $individual_dir . DIRECTORY_SEPARATOR . iassign_utils::format_filename('submission_' . ($i++) . '_' . date_format($date, 'Y-m-d_H-i-s') . '.' . $extension_ilm);
|
|
|
+
|
|
|
$zip->add_file_from_string($new_file, $item->answer);
|
|
|
|
|
|
$temp_json = [];
|
|
@@ -648,7 +649,9 @@ class iassign {
|
|
|
} else {
|
|
|
print '<a href="#" style="color: gray; text-decoration: none;margin: 1rem;">'.get_string('all_submissions_manager_next', 'iassign').' <span>▶</span></a>';
|
|
|
}
|
|
|
- print ilm_settings::build_ilm_tags(1, ['type' => "view", 'Proposition' => $url]);
|
|
|
+ $statement = $DB->get_record('iassign_statement', array('id' => $atual_submission->iassign_statementid));
|
|
|
+
|
|
|
+ print ilm_settings::build_ilm_tags($statement->iassign_ilmid, ['type' => "view", 'Proposition' => $url]);
|
|
|
print '</center>';
|
|
|
}
|
|
|
|
|
@@ -743,7 +746,7 @@ class iassign {
|
|
|
$students_list = $DB->get_records_sql(
|
|
|
"SELECT s.userid, a.firstname, a.lastname FROM {role_assignments} s, {user} a " . " WHERE s.contextid = :contextid AND s.userid = a.id AND s.roleid = :roleid " . " ORDER BY a.firstname ASC,a.lastname ASC", $params);
|
|
|
|
|
|
- print '<div class="list-group list-group-root">';
|
|
|
+ print '<div>';
|
|
|
foreach ($exercises_list as $exercise) {
|
|
|
|
|
|
$submissions_list = $DB->get_records("iassign_allsubmissions", array("iassign_statementid" => $exercise->id));
|
|
@@ -763,7 +766,7 @@ class iassign {
|
|
|
. '<span class="badge badge-primary badge-pill" style="float: right;">' . count($submissions_list) . '</span>'
|
|
|
. '</a>';
|
|
|
|
|
|
- print '<div class="list-group collapse" style="padding: 0 1.5rem;" id="item-'.$exercise->id.'">';
|
|
|
+ print '<div class="collapse" style="padding: 0 1.5rem;" id="item-'.$exercise->id.'">';
|
|
|
|
|
|
foreach ($students_list as $student) {
|
|
|
|
|
@@ -787,7 +790,7 @@ class iassign {
|
|
|
. '<span class="badge badge-primary badge-pill" style="float: right;">' . $total . '</span>'
|
|
|
. ' </a>';
|
|
|
|
|
|
- print '<div class="list-group collapse" style="padding-left: 5rem;padding-right: 5rem;" id="item-'.$exercise->id.'-'.$student->userid.'">';
|
|
|
+ print '<div class="collapse" style="padding-left: 5rem;padding-right: 5rem;" id="item-'.$exercise->id.'-'.$student->userid.'">';
|
|
|
|
|
|
print '<table class="table table-striped table-hover"><thead>
|
|
|
<tr>
|