Skip to content
Snippets Groups Projects
viewpostulation.php 1.09 KiB
Newer Older
nicrausaz's avatar
nicrausaz committed
<!doctype html>
<html lang="fr">
<head>
  <title>Postulation Apprentis | Consultation</title>
  <?php
    require_once("tequila/tequila.php");
    $oClient = new TequilaClient();
    $oClient->SetApplicationName('Formulaire apprentissage');
    $oClient->SetWantedAttributes(array('uniqueid','firstname','name'));
    $oClient->SetWishedAttributes(array('user'));
    $oClient->SetAllowsFilter('categorie=epfl-guests');
    $oClient->Authenticate();
    $user = $oClient->getValue('user');
    $firstname = $oClient->getValue('firstname');
    $name = $oClient->getValue('name');
    $guest_sciper = $oClient->getValue('uniqueid');
    $sKey = $oClient->GetKey();

    include('templates/head.php');
    include('templates/isPostulationOpen.php');
    include('./helpers.php');
  ?>
</head>
<body>
  <?php include('templates/header.php'); ?>
  <main id="main" role="main" class="content container-grid">
    <h3 class="mb-5">Candidature pour un apprentissage</h3>
    <h5 class="mb-3">Votre postulation</h5>
    <article>
     <?php getPostulationBySciper($pdo, $guest_sciper); ?>
    </article>
  </main>
</body>
</html>