Better JavaScript function name.
parent
7f870d8c7a
commit
6b8f97dc58
26
Courses.php
26
Courses.php
|
@ -29,17 +29,17 @@ if( $_SESSION['user_type']=="Lecturer" || $_SESSION['user_type']=="TA")
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
function extend_deadline(id) {
|
|
||||||
|
|
||||||
var dropstudents=$("#dropstudents").html();
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
$('<form id="frm" method="get" action="Script.php">\n\
|
function extendDeadline(id) {
|
||||||
|
|
||||||
|
var dropstudents=$("#dropstudents").html();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
$('<form id="frm" method="get" action="Script.php">\n\
|
||||||
<input type="hidden" name="extenddeadline" value="true" >\n\
|
<input type="hidden" name="extenddeadline" value="true" >\n\
|
||||||
<input type="hidden" name="id" value="'+id+'" > \n\
|
<input type="hidden" name="id" value="'+id+'" > \n\
|
||||||
New Date/Time <br><input type="date" name="date" required=""> <input type="time" name="time" required=""> \n\
|
New Date/Time <br><input type="date" name="date" required=""> <input type="time" name="time" required=""> \n\
|
||||||
|
@ -64,9 +64,9 @@ New Date/Time <br><input type="date" name="date" required=""> <input type="time"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}catch(e){ alert(e); }
|
}catch(e){ alert(e); }
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
@ -326,7 +326,7 @@ New Date/Time <br><input type="date" name="date" required=""> <input type="time"
|
||||||
<br> <span style='font-size:8pt'>Posted : $posted Deadline : <b> $deadline </b> ($marks Marks) "
|
<br> <span style='font-size:8pt'>Posted : $posted Deadline : <b> $deadline </b> ($marks Marks) "
|
||||||
. "<br>"
|
. "<br>"
|
||||||
|
|
||||||
. "<span class='btn-default'> $count_subs Submissions ( $count_marked Marked ) <a href='Courses.php?course=".$url."&act=edit&cid=".$id."'>Edit</a> | <a href='~\..\Submissions.php?id=$id&header=$header&total=$marks' onclick=''> View </a> | <a href='#' onclick='extend_deadline($id)'> Extend Deadline </a> </span> <hr> Attachments : $full_link </span>"
|
. "<span class='btn-default'> $count_subs Submissions ( $count_marked Marked ) <a href='Courses.php?course=".$url."&act=edit&cid=".$id."'>Edit</a> | <a href='~\..\Submissions.php?id=$id&header=$header&total=$marks' onclick=''> View </a> | <a href='#' onclick='extendDeadline($id)'> Extend Deadline </a> </span> <hr> Attachments : $full_link </span>"
|
||||||
. " </div>
|
. " </div>
|
||||||
";
|
";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue