lostpassword-dist.php 1.8 KB

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