설명 없음
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

users_retrieve_password.htm 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page min-hg-c-10">
  6. {include file="vertify/bar" /}
  7. <form class="form-horizontal" id="post_form" action="" method="post">
  8. <div class="ncap-form-default">
  9. <dl class="row">
  10. <dt class="tit">
  11. <label for="adminlogin_is_on">是否启用</label>
  12. </dt>
  13. <dd class="opt">
  14. <label class="curpoin"><input id="adminlogin_is_on1" name="captcha[users_retrieve_password][is_on]" value="1" type="radio" {if condition='!empty($row.is_on)'}checked="checked"{/if}>启用</label>
  15. <label class="curpoin"><input id="adminlogin_is_on0" name="captcha[users_retrieve_password][is_on]" value="0" type="radio" {if condition='empty($row.is_on)'}checked="checked"{/if}>关闭</label>
  16. <span class="err"></span>
  17. <p class="notic"></p>
  18. </dd>
  19. </dl>
  20. <dl class="row">
  21. <dt class="tit">
  22. <label for="adminlogin_codeSet">预置字符</label>
  23. </dt>
  24. <dd class="opt">
  25. <input type="text" name="captcha[users_retrieve_password][config][codeSet]" placeholder="验证码预置字符" value="{$row.config.codeSet|default=$row.default.codeSet}" id="codeSet" class="input-txt" onkeyup="this.value=this.value.replace(/[^\w]/g,'');" onpaste="this.value=this.value.replace(/[^\w]/g,'')">
  26. <span class="err"></span>
  27. <p class="notic">仅支持英文字母、数字</p>
  28. </dd>
  29. </dl>
  30. <dl class="row">
  31. <dt class="tit">
  32. <label for="adminlogin_fontSize">字号大小</label>
  33. </dt>
  34. <dd class="opt">
  35. <input type="text" name="captcha[users_retrieve_password][config][fontSize]" placeholder="验证码字体大小(px)" value="{$row.config.fontSize|default=$row.default.fontSize}" id="fontSize" class="input-txt">
  36. <span class="err"></span>
  37. <p class="notic"></p>
  38. </dd>
  39. </dl>
  40. <dl class="row">
  41. <dt class="tit">
  42. <label for="adminlogin_useCurve">混淆曲线</label>
  43. </dt>
  44. <dd class="opt">
  45. <label class="curpoin"><input id="adminlogin_useCurve1" name="captcha[users_retrieve_password][config][useCurve]" value="1" type="radio" {if condition="$row.config.useCurve == '1'"}checked="checked"{/if}>开</label>
  46. <label class="curpoin"><input id="adminlogin_useCurve0" name="captcha[users_retrieve_password][config][useCurve]" value="0" type="radio" {if condition="empty($row.config.useCurve)"}checked="checked"{/if}>关</label>
  47. <span class="err"></span>
  48. <p class="notic"></p>
  49. </dd>
  50. </dl>
  51. <dl class="row">
  52. <dt class="tit">
  53. <label for="adminlogin_useNoise">添加杂点</label>
  54. </dt>
  55. <dd class="opt">
  56. <label class="curpoin"><input id="adminlogin_useNoise1" name="captcha[users_retrieve_password][config][useNoise]" value="1" type="radio" {if condition="$row.config.useNoise == '1'"}checked="checked"{/if}>是</label>
  57. <label class="curpoin"><input id="adminlogin_useNoise0" name="captcha[users_retrieve_password][config][useNoise]" value="0" type="radio" {if condition="empty($row.config.useNoise)"}checked="checked"{/if}>否</label>
  58. <span class="err"></span>
  59. <p class="notic"></p>
  60. </dd>
  61. </dl>
  62. <dl class="row">
  63. <dt class="tit">
  64. <label for="adminlogin_length">显示位数</label>
  65. </dt>
  66. <dd class="opt">
  67. <input type="text" name="captcha[users_retrieve_password][config][length]" placeholder="验证码图片高度" value="{$row.config.length|default=$row.default.length}" id="length" class="input-txt" onkeyup="this.value=this.value.replace(/[^0-9]/g,'');" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\[^0-9]/g,''));">
  68. <span class="err"></span>
  69. <p class="notic"></p>
  70. </dd>
  71. </dl>
  72. <div class="bot">
  73. <input type="hidden" name="inc_type" id="inc_type" value="{$inc_type|default='default'}">
  74. <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
  75. </div>
  76. </div>
  77. </form>
  78. </div>
  79. <script type="text/javascript">
  80. // 判断输入框是否为空
  81. function checkForm(){
  82. if($('#codeSet').val() == ''){
  83. showErrorMsg('预置字符不能为空');
  84. $('#codeSet').focus();
  85. return false;
  86. }
  87. if($('#fontSize').val() == '' || 0 == $('#fontSize').val()){
  88. showErrorMsg('字体大小必须大于0');
  89. $('#fontSize').focus();
  90. return false;
  91. }
  92. if($('#length').val() == '' || 0 == $('#length').val()){
  93. showErrorMsg('显示位数必须大于0');
  94. $('#length').focus();
  95. return false;
  96. } else if ($('#length').val() > 8) {
  97. showErrorMsg('显示位数不能大于8');
  98. $('#length').focus();
  99. return false;
  100. }
  101. layer_loading('正在处理');
  102. $('#post_form').submit();
  103. }
  104. </script>
  105. {include file="public/footer" /}