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

denier + form

parent d774cb58
No related branches found
No related tags found
No related merge requests found
<!doctype html>
<html lang="fr">
<head>
<?php include('templates/head.php') ?>
<title>Accès Refusé</title>
<head>
<?php include('templates/head.php') ?>
<title>Postulation Apprentis | Accès Refusé</title>
</head>
<body style="text-align: center">
<div class="page-style">
<?php include('templates/header.php');?>
<h1 style="color:red">Accès Refusé</h1>
<p>La période des postulations n'a pas démarré.</p>
<button type ="button" id="retourHome" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">
Retour à l'accueil
</button>
</div>
<body>
<?php include('templates/header.php');?>
<main id="main" role="main" class="content container-grid">
<h3 style="color:red">Accès Refusé</h3>
<p>La période des postulations n'a pas démarré.</p>
<button class="btn btn-primary" id="retourHome">Retour à l'accueil</button>
</main>
</body>
</html>
\ No newline at end of file
......@@ -93,9 +93,9 @@
<!-- Info perso -->
<h5>2.1 Données personnelles</h5>
<div class="form-group">
<label for="genreApp">Genre:</label>
<label for="genreApp">Genre *</label>
<select name="genreApp" id="genreApp" class="custom-select" data-required>
<option value="notSelected" <?php echo (!isset($_SESSION['postedForm']['genreApp'])) ? "selected" : ''; ?> disabled> Choisissez un genre*</option>
<option value="notSelected" <?php echo (!isset($_SESSION['postedForm']['genreApp'])) ? "selected" : ''; ?> disabled> Choisir un genre...</option>
<option value="Homme" <?php echo ($_SESSION['postedForm']['genreApp'] == "Homme") ? "selected" : ''; ?>>Homme</option>
<option value="Femme" <?php echo ($_SESSION['postedForm']['genreApp'] == "Femme") ? "selected" : ''; ?>>Femme</option>
</select>
......@@ -163,10 +163,58 @@
</div>
<h5>2.2 Représentants légaux</h5>
<div class="form-group">
test
<label>Avez vous plus de 18 ans ?*:</label>
<div class="custom-control custom-radio">
<input type="radio" name="maj" id="maj1" class="custom-control-input" value="false" <?php echo (!isset($_SESSION['postedForm']['maj']) || $_SESSION['postedForm']['maj'] == "false") ? "checked=\"checked\"" : ''; ?>>
<label class="custom-control-label" for="maj1">Non</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" name="maj" id="maj2" class="custom-control-input" value="true" <?php echo ($_SESSION['postedForm']['maj'] == "true") ? "checked=\"checked\"" : ''; ?>>
<label class="custom-control-label" for="maj2">Oui</label>
</div>
</div>
</div> <!-- end div all -->
<div class="form-group" id="representants">
<p>Représentant principal:*</p>
<select name="genreRep1" id="genreRep1" class="custom-select">
<option <?php echo (!isset($_SESSION['postedForm']['genreRep1'])) ? "selected" : ''; ?> disabled> Choisissez un genre*</option>
<option value="Homme" <?php echo ($_SESSION['postedForm']['genreRep1'] == "Homme") ? "selected" : ''; ?>>Homme</option>
<option value="Femme" <?php echo ($_SESSION['postedForm']['genreRep1'] == "Femme") ? "selected" : ''; ?>>Femme</option>
</select>
<label for="nameRep1">Nom *</label>
<input type="text" name="nameRep1" id="nameRep1" class="form-control" placeholder="Nom" value="<?php echo $_SESSION['postedForm']['nameRep1'] != '' ? $_SESSION['postedForm']['nameRep1'] : ''; ?>"/>
<label for="surnameRep1">Prénom *</label>
<input type="text" name="surnameRep1" id="surnameRep1" class="form-control" placeholder="Prénom" value="<?php echo $_SESSION['postedForm']['surnameRep1'] != '' ? $_SESSION['postedForm']['surnameRep1'] : ''; ?>"/>
<label for="adrRep1">Rue *</label>
<input type="text" name="adrRep1" id="adrRep1" class="form-control" placeholder="Rue" value="<?php echo $_SESSION['postedForm']['adrRep1'] != '' ? $_SESSION['postedForm']['adrRep1'] : ''; ?>"/>
<label for="NPARep1">NPA\Domicile *</label>
<input type="text" name="NPARep1" id="NPARep1" class="form-control" placeholder = "NPA\Domicile" value="<?php echo $_SESSION['postedForm']['NPARep1'] != '' ? $_SESSION['postedForm']['NPARep1'] : ''; ?>"/>
<label for="telRep1">Téléphone *</label>
<input type="text" name="telRep1" id="telRep1" class="form-control" placeholder="+41 79 123 45 67" value="<?php echo $_SESSION['postedForm']['telRep1'] != '' ? $_SESSION['postedForm']['telRep1'] : ''; ?>"/>
<p>Représentant secondaire:*</p>
<select name="genreRep2" id="genreRep2" class="custom-select">
<option <?php echo (!isset($_SESSION['postedForm']['genreRep2'])) ? "selected" : ''; ?> disabled> Choisissez un genre*</option>
<option value="Homme" <?php echo ($_SESSION['postedForm']['genreRep2'] == "Homme") ? "selected" : ''; ?>>Homme</option>
<option value="Femme" <?php echo ($_SESSION['postedForm']['genreRep2'] == "Femme") ? "selected" : ''; ?>>Femme</option>
</select>
<label for="nameRep2">Nom *</label>
<input type="text" name="nameRep2" id="nameRep2" class="form-control" placeholder="Nom" value="<?php echo $_SESSION['postedForm']['nameRep2'] != '' ? $_SESSION['postedForm']['nameRep2'] : ''; ?>"/>
<label for="surnameRep2">Prénom *</label>
<input type="text" name="surnameRep2" id="surnameRep2" class="form-control" placeholder="Prénom" value="<?php echo $_SESSION['postedForm']['surnameRep2'] != '' ? $_SESSION['postedForm']['surnameRep2'] : ''; ?>"/>
<label for="adrRep2">Rue *</label>
<input type="text" name="adrRep2" id="adrRep2" class="form-control" placeholder="Rue" value="<?php echo $_SESSION['postedForm']['adrRep2'] != '' ? $_SESSION['postedForm']['adrRep2'] : ''; ?>"/>
<label for="NPARep2">NPA\Domicile *</label>
<input type="text" name="NPARep2" id="NPARep2" class="form-control" placeholder = "NPA\Domicile" value="<?php echo $_SESSION['postedForm']['NPARep2'] != '' ? $_SESSION['postedForm']['NPARep2'] : ''; ?>"/>
<label for="telRep2">Téléphone *</label>
<input type="text" name="telRep2" id="telRep2" class="form-control" placeholder="+41 79 123 45 67" value="<?php echo $_SESSION['postedForm']['telRep2'] != '' ? $_SESSION['postedForm']['telRep2'] : ''; ?>"/>
</div>
<h3>3 Activités</h3>
<h5>3.1 Scolarité</h5>
<table id="scolaire">
...
</table>
<button class="btn btn-primary btn-block" type="submit">Terminer</button>
</div> <!-- end div all -->
</form>
</main>
......@@ -176,45 +224,6 @@
Help text about the text field.
</small>
-->
<label for="maj">Avez vous plus de 18 ans?*</label><p>
<dl class="radio-list-left">
<dd>
<input type="radio" name="maj" id="maj1" value="false" <?php echo (!isset($_SESSION['postedForm']['maj']) || $_SESSION['postedForm']['maj'] == "false") ? "checked=\"checked\"" : ''; ?>>
<label for="maj1">Non</label>
</dd>
<dd>
<input type="radio" name="maj" id="maj2" value="true" <?php echo ($_SESSION['postedForm']['maj'] == "true") ? "checked=\"checked\"" : ''; ?>>
<label for="maj2">Oui</label>
</dd>
</dl>
<section id="representants">
<p>Représentant principal:*</p>
<select name="genreRep1" id="genreRep1">
<option <?php echo (!isset($_SESSION['postedForm']['genreRep1'])) ? "selected" : ''; ?> disabled> Choisissez un genre*</option>
<option value="Homme" <?php echo ($_SESSION['postedForm']['genreRep1'] == "Homme") ? "selected" : ''; ?>>Homme</option>
<option value="Femme" <?php echo ($_SESSION['postedForm']['genreRep1'] == "Femme") ? "selected" : ''; ?>>Femme</option>
</select>
<input type="text" name="nameRep1" id="nameRep1" placeholder="Nom*" value="<?php echo $_SESSION['postedForm']['nameRep1'] != '' ? $_SESSION['postedForm']['nameRep1'] : ''; ?>"/>
<input type="text" name="surnameRep1" id="surnameRep1" placeholder="Prénom*" value="<?php echo $_SESSION['postedForm']['surnameRep1'] != '' ? $_SESSION['postedForm']['surnameRep1'] : ''; ?>"/>
<input type="text" name="adrRep1" id="adrRep1" placeholder="Rue*" value="<?php echo $_SESSION['postedForm']['adrRep1'] != '' ? $_SESSION['postedForm']['adrRep1'] : ''; ?>"/>
<input type="text" name="NPARep1" id="NPARep1" placeholder = "NPA\Domicile*" value="<?php echo $_SESSION['postedForm']['NPARep1'] != '' ? $_SESSION['postedForm']['NPARep1'] : ''; ?>"/>
<input type="text" name="telRep1" id="telRep1" placeholder="Téléphone (+41 79 123 45 67)*" value="<?php echo $_SESSION['postedForm']['telRep1'] != '' ? $_SESSION['postedForm']['telRep1'] : ''; ?>"/>
<p>Représentant secondaire:</p>
<select name="genreRep2" id="genreRep2">
<option <?php echo (!isset($_SESSION['postedForm']['genreRep2'])) ? "selected" : ''; ?> disabled> Choisissez un genre</option>
<option value="Homme" <?php echo ($_SESSION['postedForm']['genreRep2'] == "Homme") ? "selected" : ''; ?>>Homme</option>
<option value="Femme" <?php echo ($_SESSION['postedForm']['genreRep2'] == "Femme") ? "selected" : ''; ?>>Femme</option>
</select>
<input type="text" name="nameRep2" id="nameRep2" placeholder="Nom" value="<?php echo $_SESSION['postedForm']['nameRep2'] != '' ? $_SESSION['postedForm']['nameRep2'] : ''; ?>"/>
<input type="text" name="surnameRep2" id="surnameRep2" placeholder="Prénom" value="<?php echo $_SESSION['postedForm']['surnameRep2'] != '' ? $_SESSION['postedForm']['surnameRep2'] : ''; ?>"/>
<input type="text" name="adrRep2" id="adrRep2" placeholder="Rue" value="<?php echo $_SESSION['postedForm']['adrRep2'] != '' ? $_SESSION['postedForm']['adrRep2'] : ''; ?>"/>
<input type="text" name="NPARep2" id="NPARep2" placeholder = "NPA\Domicile" value="<?php echo $_SESSION['postedForm']['NPARep2'] != '' ? $_SESSION['postedForm']['NPARep2'] : ''; ?>"/>
<input type="text" name="telRep2" id="telRep2" placeholder="Téléphone (+41 79 123 45 67)" value="<?php echo $_SESSION['postedForm']['telRep2'] != '' ? $_SESSION['postedForm']['telRep2'] : ''; ?>"/>
</section>
</fieldset>
<legend><span class="number">3</span> Activités</legend>
<fieldset>
<legend><span class="number">3.1</span> Scolarité</legend>
<table id="scolaire">
<tr>
<td><input type="text" name="ecole1" placeholder="Ecole*" value="<?php echo $_SESSION['postedForm']['ecole1'] != '' ? $_SESSION['postedForm']['ecole1'] : ''; ?>" data-required/></td>
......
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