lostpassword-dist.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. ?>
  10. <html>
  11. <head>
  12. <title><?php echo custompages_get_lang('LostPassword');?></title>
  13. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  14. <!--[if !IE 6]><!-->
  15. <link rel="stylesheet" type="text/css" href="../../custompages/style.css" />
  16. <!--<![endif]-->
  17. <!--[if IE 6]>
  18. <link rel="stylesheet" type="text/css" href="../../custompages/style-ie6.css" />
  19. <![endif]-->
  20. <script type="text/javascript" src="../../main/inc/lib/javascript/jquery.min.js"></script>
  21. <script type="text/javascript">
  22. $(document).ready(function() {
  23. // Handler pour la touche retour
  24. $('input').keyup(function(e) {
  25. if (e.keyCode == 13) {
  26. $('#lostpassword-form').submit();
  27. }
  28. });
  29. });
  30. </script>
  31. </head>
  32. <body>
  33. <div id="backgroundimage">
  34. <img src="/custompages/images/page-background.png" class="backgroundimage" />
  35. </div>
  36. <div id="wrapper">
  37. <div id="header">
  38. <img src="../../custompages/images/header.png" alt="Ambassador logo" />
  39. </div> <!-- #header -->
  40. <div id="registration-form-info" class="form-info">
  41. <?php if(isset($content['error']) && !empty($content['error'])){
  42. echo $content['info'];
  43. } else {
  44. echo custompages_get_lang('EnterEmailAndWeWillSendYouYourPassword');
  45. }?>
  46. </div>
  47. <div id="lostpassword-form-box" class="form-box">
  48. <?php if (isset($content['error']) && !empty($content['error'])) {
  49. echo '<div id="registration-form-error" class="form-error"><ul>'.$content['error'].'</ul></div>';
  50. }?>
  51. <form id="lostpassword-form" class="form" action="lostPassword.php" method="post">
  52. <div>
  53. <label for="user">*<?php echo custompages_get_lang('LoginOrEmailAddress');?></label>
  54. <input name="user" type="text" /><br />
  55. </div>
  56. </form>
  57. <div id="lostpassword-form-submit" class="form-submit" onclick="document.forms['lostpassword-form'].submit();">
  58. <span><?php echo custompages_get_lang('Send'); ?> </span>
  59. </div> <!-- #form-submit -->
  60. </div> <!-- #form -->
  61. <div id="footer">
  62. <img src="../../custompages/images/footer.png" />
  63. </div> <!-- #footer -->
  64. </div> <!-- #wrapper -->
  65. </body>
  66. </html>