This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* begin session */ | |
session_start(); | |
/*first check that both the username,password and form token have been sent */ | |
if(!isset($_POST['user_login'], $_POST['pass'])) | |
{ | |
return 'please enter a valid username and password'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var required1 = false; | |
var required2 = false; | |
var required3 = false; | |
var required4 = false; | |
$('.button').click(function() | |
{ | |
if ($('.required-details').css('display') !== 'none') | |
{ | |
($('.required-personal').each(function(index, e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkSection(element, nextElement) { | |
if ($(element).data("required").filled == $(element).data("required").total) { | |
$(nextElement).slideDown('slow'); | |
} else { | |
$(nextElement).slideUp('slow'); | |
} | |
} | |
function checkField(element, parent) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkSection(element, nextElement) { | |
if ($(element).data("required").filled == $(element).data("required").total) { | |
$(nextElement).slideDown('slow'); | |
} else { | |
$(nextElement).slideUp('slow'); | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var signturePads = []; | |
var studentSignaturePad = new SignaturePad(document.getElementById('student-signature-pad'), { | |
backgroundColor: 'rgba(255, 255, 255, 0)', | |
penColor: 'rgb(0, 0, 0)' | |
}); | |
var saveButton = document.getElementById('submit'); | |
var cancelButton = document.getElementById('clear1'); | |
signturePads.push(studentSignaturePad); | |
// saveButton.addEventListener("click", function (event) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var signaturePads = []; | |
var studentSignaturePad = new SignaturePad(document.getElementById('student-signature-pad'), { | |
backgroundColor: 'rgba(255, 255, 255, 0)', | |
penColor: 'rgb(0, 0, 0)' | |
}); | |
var saveButton = document.getElementById('submit'); | |
var cancelButton = document.getElementById('clear1'); | |
signaturePads.push(studentSignaturePad); | |
var signaturePadsContent = signaturePads.indexOf("studentSignaturePad") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var signaturePads = []; | |
var studentSignaturePad = new SignaturePad(document.getElementById('student-signature-pad'), { | |
backgroundColor: 'rgba(255, 255, 255, 0)', | |
penColor: 'rgb(0, 0, 0)' | |
}); | |
var saveButton = document.getElementById('submit'); | |
var cancelButton = document.getElementById('clear1'); | |
var trainerSignaturePad = new SignaturePad(document.getElementById('trainer-signature-pad'), { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postalcity:("#postal-city").val(), | |
//USI | |
existingUSI:$("input[name='usi-question']:checked").val() | |
if ($("input[name='usi-question']:checked").val() == "no") | |
{ | |
createUSI:$("#input[name='create-usi']:checked").val(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checksig(){ | |
for(var i in signaturePads) { | |
if (signaturePads[i].isEmpty){ | |
alert("Please provide the missing signatures.") | |
return false; | |
} | |
else | |
{ | |
alert("why"); | |
return true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="candidate-personal-details-section" class="section"> | |
<div class="header-container"> | |
<h2 class="title highlight">Personal Details</h2> | |
</div> | |
<div id="candidate-student-picture"> | |
<p>Upload student thing here</p> | |
</div> | |
<div class="candidate-flex-box candidate-personal-details-dropdown"> | |
<div class="candidate-details-left"> | |
<div class="candidate-inner-left"> |
OlderNewer