events.login-salarie.php 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. if(ENVIRONNEMENT == "DEV"){
  3. $titleHead = "<span class=\"badge\" style=\"background-color:red; position:fixed; margin: -30px 0 0 2em;\">DEV</span>";
  4. } elseif(ENVIRONNEMENT == "PREPROD"){
  5. $titleHead = "<span class=\"badge\" style=\"background-color:red; position:fixed; margin: -30px 0 0 2em;\">PREPROD</span>";
  6. } elseif(ENVIRONNEMENT == "PROD"){
  7. $titleHead = "";
  8. }
  9. ?>
  10. <main class="login">
  11. <div class="login-form">
  12. <img src="img/logo.png" alt="logo">
  13. <form id="formLogin">
  14. <?php echo $titleHead ?>
  15. <div style="margin-bottom: -20px; display: none;" id="divAlerte"></div>
  16. <input type="hidden" id="from" name="from" value="login">
  17. <input type="hidden" id="event" name="event" value="<?php echo (core::ifGet("e")) ? core::getGet("e") : ""; ?>">
  18. <div>
  19. <label for="ident">Matricule ou identifiant</label>
  20. <input type="text" aria-label="Matricule ou identifiant" id="ident" value="" oninput="this.value = this.value.toUpperCase()" maxlength="8" name="ident" required>
  21. </div>
  22. <div>
  23. <label for="date">Date d'ancienneté</label>
  24. <input type="date" pseudo="webkit-date-and-time-value" aria-label="Date d'ancienneté" id="date" value="" name="date" required>
  25. </div>
  26. <div>
  27. <button type="submit" id="submitLogin">Se connecter</button>
  28. </div>
  29. </form>
  30. <div>
  31. <script src="js/login-salarie.js"></script>
  32. </main>