| Server IP : 188.114.96.2 / Your IP : 104.23.243.201 Web Server : Apache/2.4.59 (Debian) System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 User : edlftp ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/git/sms.edl.codes.solutions/application/views/frontend/ |
Upload File : |
<?php
/*********************
*********************
Student Form
Creation 07/10/2019
Aernout Guillaume
http://codes.solutions
*********************
*********************/
?>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/css/materialize.min.css" rel="stylesheet">
<!-- <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">-->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://cdn.bootcss.com/flag-icon-css/3.3.0/css/flag-icon.css" rel="stylesheet">
<title>Teacher Request</title>
</head>
<body>
<div class="ctrlqFormContentWrapper">
<div class="ctrlqHeaderMast"></div>
<div class="ctrlqCenteredContent">
<div class="ctrlqFormCard">
<div class="ctrlqAccent"></div>
<div class="ctrlqFormContent">
<input type="hidden" name="step" id="step" value="1" />
<input type="hidden" name="form" id="teacher_form" value="1" />
<div class="input-field right col-sm-2 selector">
<select id="lang-selector" name="lang-selector">
<? foreach ($lang as $row) {
if($row['active'] == "1"){
echo "<option value='".strtolower($row['english_name'])."'><span class='flag-icon flag-icon-".$row['tag']."'>".$row['english_name']."</span></option>";
}
}?>
</select>
</div>
<!-- form step 1 -->
<form class="form" id="form-1">
<div class="row">
<div class="input-field col-sm-12">
<h4><?php echo get_phrase('Candidate_Form'); ?></h4>
<p><?php echo get_phrase('All_fields_are_required'); ?></p>
</div>
</div>
<div class="row">
<div class="input-field col-sm-12">
<input id="name" name="name" type="text" class="validate" data-error="#e1" required>
<label for="name"><?php echo get_phrase('Your_Name');?></label>
<div id="e1"></div>
</div>
</div>
<div class="row">
<div class="input-field col-sm-12">
<input id="firstname" name="firstname" type="text" class="validate" data-error="#e16" required>
<label for="firstname"><?php echo get_phrase('Your_First_Name');?></label>
<div id="e16"></div>
</div>
</div>
<div class="row">
<div class="input-field col-sm-12">
<input id="email" name="email" type="text" class="validate" data-error="#e2" required>
<label for="email"><?php echo get_phrase('Your_Email');?></label>
<div id="e2"></div>
</div>
</div>
<div class="row">
<div class="input-field col-sm-12">
<select id="gender" name="gender" class="validate" data-error="#e3" required>
<option value="" disabled selected><?php echo get_phrase('Choose_Gender');?></option>
<option value="Male"><?php echo get_phrase('Male');?></option>
<option value="Female"><?php echo get_phrase('Female');?></option>
</select>
<div id="e3"></div>
</div>
</div>
<div class="row">
<div class="input-field col-sm-12">
<input id="phone" name="phone" type="number" class="validate" data-error="#e3" required>
<label for="phone"><?php echo get_phrase('Your_Phone_number');?></label>
<div id="e3"></div>
</div>
</div>
<div class="row">
<div class="input-field col-sm-12">
<input id="current_language" name="current_language" type="text" class="validate" data-error="#e4" required>
<label for="current_language"><?php echo get_phrase('current_language');?></label>
<div id="e4"></div>
</div>
</div>
<div class="row">
<div class="input-field col-sm-12">
<input id="native_language" name="native_language" type="text" class="validate" data-error="#e5" required>
<label for="native_language"><?php echo get_phrase('native_language');?></label>
<div id="e5"></div>
</div>
</div>
<div class="row">
<div class="input-field col-sm-12">
<label for="birthdate"><?php echo get_phrase('Date_of_Birth');?></label>
<input type="date" id="birthdate" class="datepicker" name="birthdate" data-error="#e5" required>
<div id="e5"></div>
</div>
</div>
<span class="btn btn-default" id="btn-1"><?php echo get_phrase('Next');?></span>
</form>
<!-- form step 2 -->
<form class="form" id="form-2" enctype="multipart/form-data">
<div class="row">
<div class="input-field col-sm-12">
<h4><?php echo get_phrase('Contact_Form'); ?></h4>
<p><?php echo get_phrase('All_fields_are_required'); ?></p>
</div>
</div>
<h6><?php echo get_phrase('Your_address');?></h6>
<div class="row">
<div class="input-field col-sm-12">
<input id="address1" name="address1" type="text" class="validate" data-error="#e16" required>
<label for="address1"><?php echo get_phrase('line_1');?></label>
<div id="e16"></div>
</div>
</div>
<div class="row">
<div class="input-field col-sm-12">
<input id="address2" name="address2" type="text" class="validate" data-error="#e17">
<label for="address2"><?php echo get_phrase('line_2');?></label>
<div id="e17"></div>
</div>
</div>
<div class="row">
<div class="input-field col-sm-6">
<input id="cp" name="cp" type="number" class="validate" data-error="#e18" required>
<label for="cp"><?php echo get_phrase('postal_code');?></label>
<div id="e18"></div>
</div>
</div>
<div class="row">
<div class="input-field col-sm-6">
<input id="location" name="location" type="text" class="validate" data-error="#e19" required>
<label for="location"><?php echo get_phrase('location');?></label>
<div id="e19"></div>
</div>
</div>
<div class="row">
<div class="input-field col-sm-12">
<input id="country" name="country" type="text" class="validate" data-error="#e20" required>
<label for="country"><?php echo get_phrase('country');?></label>
<div id="e20"></div>
</div>
</div>
<span class="btn btn-default" id="btn-2-p"><?php echo get_phrase('Previous');?></span>
<span class="btn btn-default" id="btn-2"><?php echo get_phrase('Next');?></span>
</form>
<!-- form step 3 -->
<form class="form" id="form-3">
<div class="row">
<div class="input-field col-sm-12">
<h4><?php echo get_phrase('Some_questions'); ?></h4>
</div>
</div>
<div class="row">
<div class="input-field col-sm-12">
<select id="language_to_teach" name="language_to_teach" class="validate" data-error="#e6" required>
<option value="" disabled selected><?php echo get_phrase('language_to_teach');?></option>
<?php var_dump($languages); foreach ($languages as $language) {
echo "<option value='".$language['course_language_id']."'>".get_phrase($language['name'])."</option>";
}?>
</select>
<div id="e6"></div>
</div>
</div>
<h6><? echo get_phrase('short_bio'); ?></h6>
<div class="row">
<div class="input-field col s12">
<textarea id="bio" id="bio" name="bio" class="materialize-textarea" data-error="#e12" required></textarea>
<label for="bio"><? //echo get_phrase('any_informations?'); ?></label>
<div id="e12"></div>
</div>
</div>
<span class="btn btn-default" id="btn-3-p"><?php echo get_phrase('Previous');?></span>
<span class="btn btn-default" id="btn-3"><?php echo get_phrase('Next');?></span>
</form>
<!-- form step 4 -->
<form id="form-4" action="/hello_teacher/submit_pdf" method="post" enctype="multipart/form-data">
<div class="col-sm-12">
<h5><? echo get_phrase('Last_step');?></h5>
<h7><? echo get_phrase('submit_your_CV');?></h7>
<input type="hidden" name="id" id="rep" value="lost"/>
<input accept="application/pdf" class="file-path" name="cv" id="cv" type="file" placeholder="<? echo get_phrase('Select_a_file');?>">
<em style="font-size: 10px;"><? echo get_phrase('only_pdf_are_allowed,_the_max_size_is_220Mb');?></em>
<br>
<br>
<button type="submit" id="uplod" class="btn btn-default" value="Submit">Submit</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="fixed-action-btn" style="bottom: 45px; right: 24px;">
<a class="btn-floating btn-large red" href="mailto:[email protected]" title="contact">
<i class="large material-icons">live_help</i>
</a>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/js/materialize.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.15.0/jquery.validate.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.15.0/additional-methods.min.js"></script>
</body>
</html>
<script type="text/javascript" src="/assets/js/csajax/frontend/request.js"></script>
<link href="/assets/css/csstyle/frontend/request.css" rel="stylesheet">
<script>
$(document).ready(function() {
$('form').hide();
$('.value').hide();
$('.thumb').hide();
$('#form-1').show();
$('#upload').click(function(){$('#form-4').submit();});
$('select').material_select();
$('.datepicker').pickadate({
format: 'dd-mm-yyyy',
selectMonths: true,
selectYears: 15
});
$.validator.setDefaults({
ignore: []
});
console.log('<? echo $cur_lang;?>');
$('#lang-selector').val('<? echo $cur_lang;?>');
// $('#lang-selector').find('option[value="<? echo $cur_lang;?>"]').prop('selected', true);
$('#lang-selector').material_select();
// $('#lang-selector').select();
//init the form
$(".form").validate({
submitHandler: function(form) {
return false;
},
errorElement: 'div',
errorPlacement: function(error, element) {
var placement = $(element).data('error');
if (placement) {
$(placement).append(error)
} else {
error.insertAfter(element);
}
}
});
//listener
$('#btn-1').on('click', function() {
console.log("btn-1");
if($("#form-1").valid()){
console.log('ok');
nextStep('1');
}
});
$('#btn-2').on('click', function() {
console.log("btn-2");
if($("#form-2").valid()){
console.log('ok');
nextStep('2');
}
});
$('#btn-2-p').on('click', function() {
previousStep('2');
});
$('#btn-3').on('click', function() {
console.log("btn-3");
if($("#form-3").valid()){
console.log('ok');
nextStep('3');
}
});
$('#btn-3-p').on('click', function() {
previousStep('3');
});
$('#lang-selector').change(function(){
var lang = $('#lang-selector :selected').val();
$.post('/multilanguage/switch_language', {
lang : lang
}, function(data){
console.log(data);
if(data == "1"){
location.reload(true);
}
});
});
});
</script>