events.login-salarie.php 1.7 KB

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