28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
|
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\
|
||
|
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({
|
||
|
modal: true,
|
||
|
title: 'Mark submission',
|
||
|
buttons: {
|
||
|
'Submit': function() {
|
||
|
$('#submit-form').submit();
|
||
|
$(this).dialog('close');
|
||
|
},
|
||
|
'Cancel': function() {
|
||
|
$(this).dialog('close');
|
||
|
}
|
||
|
|
||
|
}
|
||
|
});
|
||
|
|
||
|
} catch (e) {
|
||
|
alert(e);
|
||
|
}
|
||
|
}
|
||
|
|