forget.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. if (!isset($title)) {
  3. $title = '找回密码';
  4. }
  5. $view
  6. ->import('inc/head')
  7. ->set('title', $title)
  8. ->set('name', 'password')
  9. ->fetch('header span', $title)
  10. ->fetch('.back@href', 'javascript:history.go(-1)')
  11. ->fetch(array('input@id', 0), 'mobile')
  12. ->fetch(array('input@name', 0), 'mobile')
  13. ->fetch(array('input@dever-error', 0), '请填写手机号')
  14. ->fetch(array('input@id', 1), 'mcode')
  15. ->fetch(array('input@name', 1), 'mcode')
  16. ->fetch(array('input@dever-error', 1), '请填写手机验证码')
  17. ->fetch(array('input@id', 2), 'password')
  18. ->fetch(array('input@name', 2), 'password')
  19. ->fetch(array('input@dever-match', 2), '(?=.*[a-zA-Z0-9])(?=.*[a-zA-Z0-9])(?=.*[a-zA-Z0-9]).{6,18}')
  20. ->fetch(array('input@dever-error', 2), '密码长度为6~18位')
  21. ->fetch('.nol@id', 'mcode_button')
  22. ->fetch('.nol@dever-send', '<{Dever::load("passport/reg.getUrl", "passport/reg.getMCodeLogin", array("skin" => "forget", "sid" => Dever::id()))}>')
  23. ->fetch('.button@class', 'button')
  24. ->fetch('.button@type', 'button')
  25. ->fetch('.button@id', 'forget')
  26. ->append('header', '<input type="hidden" name="refer" id="refer" value="<{Dever::input("refer", Dever::encode(Dever::url("user/account", "main")))}>">')
  27. ->import('inc/foot')
  28. ->display();