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