Skip to content
Snippets Groups Projects
Commit 45a9d06d authored by nicrausaz's avatar nicrausaz
Browse files

pre-prod test

parent ca052b2f
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@
mailToApprenti($candidateData->mailApprenti, $candidateData->formation);
// kill session
$_SESSION['formError'] = false;
// unset($_SESSION['postedForm']);
unset($_SESSION);
include("templates/confirmationText.php");
} else {
$_SESSION['formError'] = true;
......
......@@ -36,7 +36,7 @@
<label class="custom-control-label" for="lieuLausanne">EPFL Lausanne</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" name="lieu" id="lieuSion" class="custom-control-input" value="Sion" <?php echo ($_SESSION['postedForm']['lieu'] == "Sion") ? "checked=\"checked\"" : ''; ?>>
<input type="radio" name="lieu" id="lieuSion" class="custom-control-input" value="Sion" <?php echo ($_SESSION['postedForm']['lieu'] == "Sion") ? "checked=\"checked\"" : ''; ?>>
<label class="custom-control-label" for="lieuSion">EPFL Valais Sion</label>
</div>
</div>
......@@ -284,7 +284,7 @@
</tr>
<?php
for($i = 2; $i < 4; $i++){
if($_SESSION['postedForm']['employeurPro'.$i]){
if($_SESSION['postedForm']['employeurPro'.$i]){
?>
<tr>
<td><input type="text" class="form-control" name="employeurPro<?php echo $i ?>" placeholder="Employeur" value="<?php echo $_SESSION['postedForm']['employeurPro'.$i] ?>"/></td>
......@@ -450,7 +450,7 @@
if ($_SESSION['formError']) {
echo "<script>showOnFormReturn(lieu);</script>";
}
require_once('templates/footer.php');
// require_once('templates/footer.php');
?>
</body>
</html>
\ No newline at end of file
......@@ -17,7 +17,7 @@ class PersonnalData {
"interactiveMediaDesigner" => "InteractiveMediaDesigners"
);
private $dateNow;
private $rootpath = 'D:/Formdata/'; // \\\\scxdata\\apprentis$\\candidatures\\nouvelles\\
private $rootpath = '\\\\scxdata\\apprentis$\\candidatures\\nouvelles\\';
public $formation = "";
public $lieu = "";
public $filiere = "";
......
......@@ -73,11 +73,12 @@ function checkFileFormat(obj) {
}
function checkYearDate(toCheckValue, errorZone, coefficiantYear) {
// TODO: check this
var inputYear = $(toCheckValue).val();
var currentYear = (new Date).getFullYear() + coefficiantYear;
if ((inputYear != parseInt(inputYear, 10)) || (currentYear < inputYear) || (inputYear.length != 4)) {
$(errorZone).html('<p class ="errorMsgs">Date invalide');
$(errorZone).html('<p class="errorMsgs">Date invalide');
} else {
$(errorZone).html("");
}
......
......@@ -11,9 +11,9 @@
<style>.error { color: red!important; }</style>
<noscript>Veuillez Activer JavaScript pour utiliser le service de postulation</noscript>
<?php
// ini_set("display_errors", 0);
// error_reporting(0);
ini_set("display_errors", 1);
error_reporting(E_ALL);
ini_set("display_errors", 0);
error_reporting(0);
// ini_set("display_errors", 1);
// error_reporting(E_ALL);
session_start();
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment