lostpassword-dist.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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('../../main/inc/global.inc.php');
  8. require_once('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. <!--[if !IE 6]><!-->
  16. <link rel="stylesheet" type="text/css" href="../../custompages/style.css" />
  17. <!--<![endif]-->
  18. <!--[if IE 6]>
  19. <link rel="stylesheet" type="text/css" href="../../custompages/style-ie6.css" />
  20. <![endif]-->
  21. <script type="text/javascript" src="<?php echo $rootWeb ?>web/assets/jquery/jquery.min.js"></script>
  22. <script type="text/javascript">
  23. $(document).ready(function() {
  24. // Handler pour la touche retour
  25. $('input').keyup(function(e) {
  26. if (e.keyCode == 13) {
  27. $('#lostpassword-form').submit();
  28. }
  29. });
  30. });
  31. </script>
  32. </head>
  33. <body>
  34. <div id="backgroundimage">
  35. <img src="/custompages/images/page-background.png" class="backgroundimage" />
  36. </div>
  37. <div id="wrapper">
  38. <div id="header">
  39. <img src="../../custompages/images/header.png" alt="Ambassador logo" />
  40. </div> <!-- #header -->
  41. <div id="lostpassword-form-box" class="form-box">
  42. <?php
  43. if (isset($content['info']) && !empty($content['info'])) {
  44. echo '<div id="registration-form-error" class="form-error"><ul>' . $content['info'] . '</ul></div>';
  45. }
  46. echo isset($content['form']) ? $content['form'] : ''
  47. ?>
  48. </div> <!-- #form -->
  49. <div id="footer">
  50. <img src="../../custompages/images/footer.png" />
  51. </div> <!-- #footer -->
  52. </div> <!-- #wrapper -->
  53. </body>
  54. </html>