Açıklama Yok
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.

guestbook.htm 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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[guestbook][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[guestbook][is_on]" value="0" type="radio" {if condition='empty($row.is_on)'}checked="checked"{/if}>关闭</label>
  16. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a id="GuestBook" href="javascript:void(0);" onclick="GuestBook();" {if condition='empty($row.is_on)'}style="display:none;"{/if}>[标签调用]</a>
  17. <span class="err"></span>
  18. <p class="notic"></p>
  19. </dd>
  20. </dl>
  21. <dl class="row">
  22. <dt class="tit">
  23. <label for="adminlogin_codeSet">预置字符</label>
  24. </dt>
  25. <dd class="opt">
  26. <input type="text" name="captcha[guestbook][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,'')">
  27. <span class="err"></span>
  28. <p class="notic">仅支持英文字母、数字</p>
  29. </dd>
  30. </dl>
  31. <dl class="row">
  32. <dt class="tit">
  33. <label for="adminlogin_fontSize">字号大小</label>
  34. </dt>
  35. <dd class="opt">
  36. <input type="text" name="captcha[guestbook][config][fontSize]" placeholder="验证码字体大小(px)" value="{$row.config.fontSize|default=$row.default.fontSize}" id="fontSize" class="input-txt">
  37. <span class="err"></span>
  38. <p class="notic"></p>
  39. </dd>
  40. </dl>
  41. <dl class="row">
  42. <dt class="tit">
  43. <label for="adminlogin_useCurve">混淆曲线</label>
  44. </dt>
  45. <dd class="opt">
  46. <label class="curpoin"><input id="adminlogin_useCurve1" name="captcha[guestbook][config][useCurve]" value="1" type="radio" {if condition="$row.config.useCurve == '1'"}checked="checked"{/if}>开</label>
  47. <label class="curpoin"><input id="adminlogin_useCurve0" name="captcha[guestbook][config][useCurve]" value="0" type="radio" {if condition="empty($row.config.useCurve)"}checked="checked"{/if}>关</label>
  48. <span class="err"></span>
  49. <p class="notic"></p>
  50. </dd>
  51. </dl>
  52. <dl class="row">
  53. <dt class="tit">
  54. <label for="adminlogin_useNoise">添加杂点</label>
  55. </dt>
  56. <dd class="opt">
  57. <label class="curpoin"><input id="adminlogin_useNoise1" name="captcha[guestbook][config][useNoise]" value="1" type="radio" {if condition="$row.config.useNoise == '1'"}checked="checked"{/if}>是</label>
  58. <label class="curpoin"><input id="adminlogin_useNoise0" name="captcha[guestbook][config][useNoise]" value="0" type="radio" {if condition="empty($row.config.useNoise)"}checked="checked"{/if}>否</label>
  59. <span class="err"></span>
  60. <p class="notic"></p>
  61. </dd>
  62. </dl>
  63. <dl class="row">
  64. <dt class="tit">
  65. <label for="adminlogin_length">显示位数</label>
  66. </dt>
  67. <dd class="opt">
  68. <input type="text" name="captcha[guestbook][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,''));">
  69. <span class="err"></span>
  70. <p class="notic"></p>
  71. </dd>
  72. </dl>
  73. <div class="bot">
  74. <input type="hidden" name="inc_type" id="inc_type" value="{$inc_type|default='default'}">
  75. <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
  76. </div>
  77. </div>
  78. </form>
  79. </div>
  80. <script type="text/javascript">
  81. $('input[name="captcha[guestbook][is_on]"]').click(function(){
  82. var guest_book = $(this).val();
  83. if (1 == guest_book) {
  84. $('#GuestBook').show();
  85. } else {
  86. $('#GuestBook').hide();
  87. }
  88. });
  89. function GuestBook(){
  90. var url = "https://www.eyoucms.com/plus/view.php?aid=8056&origin_eycms=1";
  91. //iframe窗
  92. layer.open({
  93. type: 2,
  94. shade: layer_shade,
  95. title: '留言模型验证码调用',
  96. shadeClose: false,
  97. maxmin: false, //开启最大化最小化按钮
  98. area: ['700px;', '500px'],
  99. content: url
  100. });
  101. }
  102. // 判断输入框是否为空
  103. function checkForm(){
  104. if($('#codeSet').val() == ''){
  105. showErrorMsg('预置字符不能为空');
  106. $('#codeSet').focus();
  107. return false;
  108. }
  109. if($('#fontSize').val() == '' || 0 == $('#fontSize').val()){
  110. showErrorMsg('字体大小必须大于0');
  111. $('#fontSize').focus();
  112. return false;
  113. }
  114. if($('#length').val() == '' || 0 == $('#length').val()){
  115. showErrorMsg('显示位数必须大于0');
  116. $('#length').focus();
  117. return false;
  118. } else if ($('#length').val() > 8) {
  119. showErrorMsg('显示位数不能大于8');
  120. $('#length').focus();
  121. return false;
  122. }
  123. layer_loading('正在处理');
  124. $('#post_form').submit();
  125. }
  126. </script>
  127. {include file="public/footer" /}