Courses.php: indent JavaScript code
parent
593ac0219a
commit
8fbf0f1d1d
53
Courses.php
53
Courses.php
|
@ -25,11 +25,11 @@ include 'Header.php';
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js" integrity="sha512-57oZ/vW8ANMjR/KQ6Be9v/+/h6bq9/l3f0Oc7vn6qMqyhvPd1cvKBRWWpzu0QoneImqr2SkmO4MSqU+RpHom3Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js" integrity="sha512-57oZ/vW8ANMjR/KQ6Be9v/+/h6bq9/l3f0Oc7vn6qMqyhvPd1cvKBRWWpzu0QoneImqr2SkmO4MSqU+RpHom3Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function extendDeadline(id) {
|
function extendDeadline(id) {
|
||||||
const dropstudents = $("#dropstudents").html();
|
const dropstudents = $("#dropstudents").html();
|
||||||
try {
|
try {
|
||||||
$(`<form id="frm" method="get" action="Script.php">
|
$(`<form id="frm" method="get" action="Script.php">
|
||||||
<input type="hidden" name="extenddeadline" value="true" >
|
<input type="hidden" name="extenddeadline" value="true" >
|
||||||
<input type="hidden" name="id" value="${id}" >
|
<input type="hidden" name="id" value="${id}" >
|
||||||
New date and time<br>
|
New date and time<br>
|
||||||
|
@ -42,28 +42,27 @@ include 'Header.php';
|
||||||
<br>
|
<br>
|
||||||
${dropstudents}
|
${dropstudents}
|
||||||
</form>`).dialog({
|
</form>`).dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
title:'Extend deadline',
|
title:'Extend deadline',
|
||||||
close: function () {
|
close: function () {
|
||||||
var closeBtn = $('.ui-dialog-titlebar-close');
|
var closeBtn = $('.ui-dialog-titlebar-close');
|
||||||
closeBtn.html('');
|
closeBtn.html('');
|
||||||
},
|
},
|
||||||
buttons: {
|
buttons: {
|
||||||
'Submit': function () {
|
'Submit': function () {
|
||||||
$('#frm').submit();
|
$('#frm').submit();
|
||||||
$(this).dialog('close');
|
$(this).dialog('close');
|
||||||
},
|
},
|
||||||
'Cancel': function () {
|
'Cancel': function () {
|
||||||
$(this).dialog('close');
|
$(this).dialog('close');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
alert(e);
|
alert(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if(!empty($_GET["course"]))
|
if(!empty($_GET["course"]))
|
||||||
|
|
Loading…
Reference in New Issue