|
|
|
@ -93,22 +93,22 @@ echo "<div class='alert' style='margin-left:20px;border-bottom:2px solid #1D91EF
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<b>Lab Report Submissions (<?php echo $count_subs; ?>)</b>
|
|
|
|
|
<b>Assignment submissions (<?php echo $count_subs; ?>)</b>
|
|
|
|
|
<!-- Nav tabs -->
|
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link active" data-toggle="tab" href="#menu1">Un-Marked Submissions<b> (<?php echo $count_unmarked; ?>)</b></a>
|
|
|
|
|
<a class="nav-link active" data-toggle="tab" href="#menu1">Unmarked submissions<b> (<?php echo $count_unmarked; ?>)</b></a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link" data-toggle="tab" href="#menu2">Marked Submissions <b>(<?php echo $count_marked; ?>)</b></a>
|
|
|
|
|
<a class="nav-link" data-toggle="tab" href="#menu2">Marked submissions <b>(<?php echo $count_marked; ?>)</b></a>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link" data-toggle="tab" href="#menu3">Re-Marking Requests <b>(<?php echo $count_remark; ?>)</b></a>
|
|
|
|
|
<a class="nav-link" data-toggle="tab" href="#menu3">Remarking requests <b>(<?php echo $count_remark; ?>)</b></a>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link" data-toggle="tab" href="#menu4"> View Course Groups</a>
|
|
|
|
|
<a class="nav-link" data-toggle="tab" href="#menu4">Course groups</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="tab-content">
|
|
|
|
@ -184,7 +184,7 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Pending' order by Sub
|
|
|
|
|
|
|
|
|
|
echo " <k href='#'> <div class='btn btn-default break-word' style='dislay:block; word-wrap: break-word; border: 1px solid #F0F0F0;border-left: 4px solid #03407B;'>
|
|
|
|
|
$title <br> by: <b> <span class = 'text-selectable'>$submitted_by </span> </b>
|
|
|
|
|
<br> <span style='font-size:8pt'>Submitted : $posted <button class='btn-sm btn-info' style='margin-left:50px;' onclick='mark($Submission_ID,\"$title\",$total)'> Mark Submission</button><br> Attachments : $full_link </span>
|
|
|
|
|
<br> <span style='font-size:8pt'>Submitted : $posted <button class='btn-sm btn-info' style='margin-left:50px;' onclick='mark($Submission_ID,\"$title\",$total)'> Mark</button><br> Attachments : $full_link </span>
|
|
|
|
|
</div></k>";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -268,8 +268,8 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Marked' Order by lab
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo " <k href='#'> <div class='btn btn-default break-word ' style='dislay:block; word-wrap: break-word; border: 1px solid #F0F0F0;border-left: 4px solid #03407B;'>
|
|
|
|
|
$title <br> by : <b> <span class = 'text-selectable'>$submitted_by </span> [ Marked $Marks ] </b> Visibility : <b>$Visibility </b> <button class='btn-sm btn-success' style='margin-left:50px;' onclick='updatev($Submission_ID)'>Update visibility</button>
|
|
|
|
|
<hr> Lecturer/TA notes : $notes<br> <span style='font-size:8pt'>Submitted : $posted <b> </b> <button class='btn-sm btn-info' style='margin-left:50px;' onclick='mark($Submission_ID,\"$title\",$total)'> Re-Mark Submission</button><br> Attachments : $full_link </span>
|
|
|
|
|
$title <br> by : <b> <span class = 'text-selectable'>$submitted_by </span> [ Marks: $Marks ] </b>
|
|
|
|
|
<hr> Marking notes: $notes<br> <span style='font-size:8pt'>Submitted : $posted <b> </b> <button class='btn-sm btn-info' style='margin-left:50px;' onclick='mark($Submission_ID,\"$title\",$total)'>Remark</button><br> Attachments : $full_link </span>
|
|
|
|
|
</div></k>";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -349,7 +349,7 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Remarking'");
|
|
|
|
|
echo " <k href='#'> <div class='btn btn-default break-word ' style='dislay:block; word-wrap: break-word; border: 1px solid #F0F0F0;border-left: 4px solid #03407B;'>
|
|
|
|
|
$title <br> by : <b> <span class = 'text-selectable'>$submitted_by </span> [ Marked $Marks ] </b> <br> Remarking Reason : <b>$remarking_reason </b>
|
|
|
|
|
<hr> <span style='font-size:8pt'>Submitted : $posted <b> </b> "
|
|
|
|
|
. "<button class='btn-sm btn-info' style='margin-left:50px;' onclick='mark($Submission_ID,\"$title\",$total)'> Re-Mark Submission</button>"
|
|
|
|
|
. "<button class='btn-sm btn-info' style='margin-left:50px;' onclick='mark($Submission_ID,\"$title\",$total)'>Remark</button>"
|
|
|
|
|
. " <a href='~\..\Script.php?ignoreremarking=yes&id=$id&subid=$Submission_ID&header=$header&total=$total&status=Marked' class='btn-sm btn-warning'> Ignore Request </a>"
|
|
|
|
|
. "<br> Attachments : $full_link </span>
|
|
|
|
|
</div></k>";
|
|
|
|
@ -412,31 +412,34 @@ where course_group_members_table.Course_Group_id=$id");
|
|
|
|
|
include 'Footer.php';
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<script src="http://118.25.96.118/nor/css/jquery-1.11.1.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<script src="http://118.25.96.118/nor/css/jquery-ui.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="http://118.25.96.118/nor/css/jquery-ui.css" />
|
|
|
|
|
|
|
|
|
|
<script src="./css/jquery-1.11.1.min.js"></script>
|
|
|
|
|
<script src="./css/jquery-ui.min.js"></script>
|
|
|
|
|
<link rel="stylesheet" href="./css/jquery-ui.css" />
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
function mark(id, title, marks) {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
$('<form id="submit-form" method="get" action="Script.php">' + title + '(' + marks + ' marks) <input type="hidden" name="savemarks" value="true">\n\
|
|
|
|
|
<input type="hidden" name="total" value="' + marks + '" > <input type="hidden" name="id" value="' + id + '" ><br> Marks <input type="text" name="marks">\n\
|
|
|
|
|
$(`<form id="submit-form" method="get" action="Script.php">
|
|
|
|
|
${title} (${marks} marks)
|
|
|
|
|
<input type="hidden" name="savemarks" value="true">
|
|
|
|
|
<input type="hidden" name="total" value="${marks}" >
|
|
|
|
|
<input type="hidden" name="id" value="${id}" >
|
|
|
|
|
<br> Marks
|
|
|
|
|
<input type="text" name="marks">\n\
|
|
|
|
|
Comments <textarea name="feedback"></textarea> \n\
|
|
|
|
|
<input type="hidden" name="labid" value="<?php echo $course_id; ?>"> <input type="hidden" name="header" value="<?php echo $header; ?>"> </form>').dialog({
|
|
|
|
|
<input type="hidden" name="labid" value="<?php echo $course_id; ?>">
|
|
|
|
|
<input type="hidden" name="header" value="<?php echo $header; ?>">
|
|
|
|
|
</form>`).dialog({
|
|
|
|
|
modal: true,
|
|
|
|
|
title: 'Mark Submission',
|
|
|
|
|
title: 'Mark submission',
|
|
|
|
|
buttons: {
|
|
|
|
|
'Submit Marking': function() {
|
|
|
|
|
'Submit': function() {
|
|
|
|
|
$('#submit-form').submit();
|
|
|
|
|
|
|
|
|
|
$(this).dialog('close');
|
|
|
|
|
},
|
|
|
|
|
'X': function() {
|
|
|
|
|
|
|
|
|
|
'Cancel': function() {
|
|
|
|
|
$(this).dialog('close');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -448,31 +451,4 @@ where course_group_members_table.Course_Group_id=$id");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function updatev(id) {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
$('<form id="submit-form" method="get" action="Script.php"> <input type="hidden" name="updatevisibility" value="true">\n\
|
|
|
|
|
<input type="hidden" name="id" value="' + id + '" > <br>\n\
|
|
|
|
|
Update Visibility<br><select name="status"> <option> Public </option><option>Private</option> </select> \n\
|
|
|
|
|
<input type="hidden" name="labid" value="<?php echo $id; ?>"> <input type="hidden" name="total" value="<?php echo $total; ?>" > <input type="hidden" name="header" value="<?php echo $header; ?>"> </form>').dialog({
|
|
|
|
|
modal: true,
|
|
|
|
|
title: 'Update Report Visibility',
|
|
|
|
|
buttons: {
|
|
|
|
|
'Update': function() {
|
|
|
|
|
$('#submit-form').submit();
|
|
|
|
|
$(this).dialog('close');
|
|
|
|
|
},
|
|
|
|
|
'X': function() {
|
|
|
|
|
|
|
|
|
|
$(this).dialog('close');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
alert(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|