Няма описание
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.

ajax_force_verify.htm 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {include file="public/layout" /}
  2. <body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;min-width: auto;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page" style="min-width: auto;box-shadow:none;">
  6. <!-- 操作说明 -->
  7. <div id="explanation" class="explanation" style="color: rgb(44, 188, 163); background-color: rgb(237, 251, 248); width: 99%; height: 100%;">
  8. <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
  9. <h4 title="提示相关设置操作时应注意的要点">提示</h4>
  10. <span title="收起提示" id="explanationZoom" style="display: block;"></span>
  11. </div>
  12. <ul>
  13. <li>每个网站都存在一个安装序列号,点击【<a href="javascript:void(0);" data-href="https://www.eyoucms.com/plus/view.php?aid=5552" onclick="openFullframe(this,'获取邮箱授权码');">查看教程</a>】复制序列号</li>
  14. </ul>
  15. </div>
  16. <form class="form-horizontal" id="post_form" method="post" onsubmit="return false;">
  17. <div class="ncap-form-default">
  18. <dl class="row">
  19. <dt class="tit">
  20. <label for="serialnumber"><em>*</em>安装序列号</label>
  21. </dt>
  22. <dd class="opt" style="width: auto;">
  23. <input type="text" name="serialnumber" value="" id="serialnumber" class="input-txt" autocomplete="off">
  24. <span class="err"></span>
  25. <p class="notic">每个网站都有一个安装序列号,具体教程请查看上方提示。</p>
  26. </dd>
  27. </dl>
  28. <div class="bot" style="padding-bottom:0px;">
  29. <input type="hidden" name="referurl" value="{$referurl}">
  30. <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
  31. </div>
  32. </div>
  33. </form>
  34. </div>
  35. <script type="text/javascript">
  36. function checkForm()
  37. {
  38. if($.trim($('input[name=serialnumber]').val()) == ''){
  39. showErrorMsg('安全序列号不能为空!');
  40. $('input[name=serialnumber]').focus();
  41. return false;
  42. }
  43. layer_loading('正在处理');
  44. $.ajax({
  45. url: "{:url('Security/ajax_force_verify', ['_ajax'=>1])}",
  46. type: 'POST',
  47. dataType: 'JSON',
  48. data: $('#post_form').serialize(),
  49. success: function(res) {
  50. layer.closeAll();
  51. if (res.code == 1) {
  52. layer.msg(res.msg, {shade: 0.1, time: 1000}, function(){
  53. window.location.href = res.url;
  54. });
  55. } else {
  56. showErrorMsg(res.msg);
  57. }
  58. },
  59. error: function(e){
  60. layer.closeAll();
  61. showErrorAlert(e.responseText);
  62. }
  63. });
  64. }
  65. </script>
  66. {include file="public/footer" /}