lostpassword.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Quick form to ask for password reminder.
  5. * @package chamilo.custompages
  6. */
  7. /**
  8. * Initialization
  9. */
  10. require_once('../../main/inc/global.inc.php');
  11. require_once('language.php');
  12. /**
  13. * HTML
  14. */
  15. ?>
  16. <html>
  17. <head>
  18. <title>Password recovery</title>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <!--[if !IE 6]><!-->
  21. <link rel="stylesheet" type="text/css" href="../../custompages/style.css" />
  22. <!--<![endif]-->
  23. <!--[if IE 6]>
  24. <link rel="stylesheet" type="text/css" href="../../custompages/style-ie6.css" />
  25. <![endif]-->
  26. <script type="text/javascript" src="../../main/inc/lib/javascript/jquery.min.js"></script>
  27. <script type="text/javascript">
  28. $(document).ready(function() {
  29. // Handler pour la touche retour
  30. $('input').keyup(function(e) {
  31. if (e.keyCode == 13) {
  32. $('#lostpassword-form').submit();
  33. }
  34. });
  35. });
  36. </script>
  37. </head>
  38. <body>
  39. <div id="backgroundimage">
  40. <img src="/custompages/images/page-background.png" class="backgroundimage" />
  41. </div>
  42. <div id="wrapper">
  43. <div id="header">
  44. <img src="../../custompages/images/header.png" alt="Ambassador logo" />
  45. </div> <!-- #header -->
  46. <div id="registration-form-info" class="form-info">
  47. <?php if(isset($content['error']) && !empty($content['error'])){
  48. echo $content['info'];
  49. } else {
  50. echo custompages_get_lang('lang_enter_email_and_well_send_you_password');
  51. }?>
  52. </div>
  53. <div id="lostpassword-form-box" class="form-box">
  54. <?php if (isset($content['error']) && !empty($content['error'])) {
  55. echo '<div id="registration-form-error" class="form-error"><ul>'.$content['error'].'</ul></div>';
  56. }?>
  57. <form id="lostpassword-form" class="form" action="lostPassword.php" method="post">
  58. <div>
  59. <label for="user">*<?php echo custompages_get_lang('UserName');?></label>
  60. <input name="user" type="text" /><br />
  61. <label for="email">*<?php echo custompages_get_lang('Email');?></label>
  62. <input name="email" type="text" /><br />
  63. </div>
  64. </form>
  65. <div id="lostpassword-form-submit" class="form-submit" onclick="document.forms['lostpassword-form'].submit();">
  66. <span><?php echo custompages_get_lang('langSend'); ?> </span>
  67. </div> <!-- #form-submit -->
  68. </div> <!-- #form -->
  69. <div id="footer">
  70. <img src="../../custompages/images/footer.png" />
  71. </div> <!-- #footer -->
  72. </div> <!-- #wrapper -->
  73. </body>
  74. </html>