lostpassword-dist.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Quick form to ask for password reminder.
  5. * @package chamilo.custompages
  6. */
  7. require_once api_get_path(SYS_PATH).'main/inc/global.inc.php';
  8. require_once __DIR__.'/language.php';
  9. $rootWeb = api_get_path('WEB_PATH');
  10. ?>
  11. <html>
  12. <head>
  13. <title><?php echo custompages_get_lang('LostPassword'); ?></title>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  15. <script type="text/javascript" src="<?php echo $rootWeb ?>web/assets/jquery/dist/jquery.min.js"></script>
  16. <script type="text/javascript">
  17. $(document).ready(function() {
  18. // Handler pour la touche retour
  19. $('input').keyup(function(e) {
  20. if (e.keyCode == 13) {
  21. $('#lostpassword-form').submit();
  22. }
  23. });
  24. });
  25. </script>
  26. </head>
  27. <body>
  28. <div id="backgroundimage">
  29. <img src="/custompages/images/page-background.png" class="backgroundimage" />
  30. </div>
  31. <div id="wrapper">
  32. <div id="header">
  33. <img src="../../custompages/images/header.png" alt="Ambassador logo" />
  34. </div> <!-- #header -->
  35. <div id="lostpassword-form-box" class="form-box">
  36. <?php
  37. if (isset($content['info']) && !empty($content['info'])) {
  38. echo '<div id="registration-form-error" class="form-error"><ul>'.$content['info'].'</ul></div>';
  39. }
  40. echo isset($content['form']) ? $content['form'] : ''
  41. ?>
  42. </div> <!-- #form -->
  43. <div id="footer">
  44. <img src="../../custompages/images/footer.png" />
  45. </div> <!-- #footer -->
  46. </div> <!-- #wrapper -->
  47. </body>
  48. </html>