certifyztemail.html.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * The certifyztmobile view file of admin module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Yidong Wang <yidong@cnezsoft.com>
  8. * @package admin
  9. * @version $Id$
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include '../../common/view/header.html.php';?>
  14. <div id='mainContent' class='main-content'>
  15. <div class='center-block mw-700px' id='checkEmail'>
  16. <div class='main-header'>
  17. <h2><?php echo $lang->admin->certifyEmail;?></h2>
  18. </div>
  19. <form method='post' target='hiddenwin'>
  20. <table class='table table-form'>
  21. <tr>
  22. <th><?php echo $lang->user->email;?></th>
  23. <td><?php echo html::input('email', $email, "class='form-control'");?></td>
  24. <td><?php echo html::a(inlink('ajaxsendcode', 'type=email'), $lang->admin->getCaptcha, '', "id='codeSender' class='btn'");?></td>
  25. </tr>
  26. <tr>
  27. <th><?php echo $lang->admin->captcha;?></th>
  28. <td><?php echo html::input('captcha', '', "class='form-control'");?></td>
  29. </tr>
  30. <tr>
  31. <td colspan='2' class='text-center'><?php echo html::submitButton();?></td>
  32. </tr>
  33. </table>
  34. </form>
  35. </div>
  36. </div>
  37. <script>
  38. $(function()
  39. {
  40. $('#codeSender').click(function()
  41. {
  42. var data = {email: $('#email').val()};
  43. var url = $(this).attr('href');
  44. $.post(url, data, function(response)
  45. {
  46. if(response.result == 'success')
  47. {
  48. $('#codeSender').popover({trigger:'manual', content:response.message, placement:'right'}).popover('show');
  49. $('#codeSender').next('.popover').addClass('popover-success');
  50. function distroy(){$('#codeSender').popover('destroy')}
  51. setTimeout(distroy, 2000);
  52. }
  53. else
  54. {
  55. alert(response.message);
  56. }
  57. }, 'json')
  58. return false;
  59. })
  60. });
  61. </script>
  62. <?php include '../../common/view/footer.html.php';?>