暫無描述
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.

batch_setcity.htm 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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; padding-bottom: 0px;">
  6. <!-- 操作说明 -->
  7. <div id="explanation" class="explanation">
  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>二级域名:开启之前,建议先做好二级域名解析及绑定,避免访问不了。</li>
  14. <li>主站文档:分站列表是否要显示主站(所属区域为“全国”)的文档。</li>
  15. </ul>
  16. </div>
  17. <form class="form-horizontal" id="post_form" method="POST" action="{:url('Citysite/batch_setcity')}" onsubmit="check_submit();">
  18. <div class="ncap-form-default">
  19. <dl class="row">
  20. <dt class="tit">
  21. <label for="is_open">二级域名</label>
  22. </dt>
  23. <dd class="opt" style="width: auto;">
  24. <label class="curpoin"><input type="radio" name="is_open" value="-1" checked="checked">原设置</label>&nbsp;&nbsp;
  25. <label class="curpoin"><input type="radio" name="is_open" value="1">开启</label>&nbsp;&nbsp;
  26. <label class="curpoin"><input type="radio" name="is_open" value="0">关闭</label>
  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="showall">主站文档</label>
  34. </dt>
  35. <dd class="opt" style="width: auto;">
  36. <label class="curpoin"><input type="radio" name="showall" value="-1" checked="checked">原设置</label>&nbsp;&nbsp;
  37. <label class="curpoin"><input type="radio" name="showall" value="1">显示</label>&nbsp;&nbsp;
  38. <label class="curpoin"><input type="radio" name="showall" value="0">隐藏</label>
  39. <span class="err"></span>
  40. <p class="notic"></p>
  41. </dd>
  42. </dl>
  43. <dl class="row">
  44. <dt class="tit">
  45. <label for="status">区域状态</label>
  46. </dt>
  47. <dd class="opt" style="width: auto;">
  48. <label class="curpoin"><input type="radio" name="status" value="-1" checked="checked">原设置</label>&nbsp;&nbsp;
  49. <label class="curpoin"><input type="radio" name="status" value="1">启用</label>&nbsp;&nbsp;
  50. <label class="curpoin"><input type="radio" name="status" value="0">禁用</label>
  51. <p class="notic"></p>
  52. </dd>
  53. </dl>
  54. <dl class="row">
  55. <dt class="tit">
  56. <label for="seoset">SEO信息</label>
  57. </dt>
  58. <dd class="opt" style="width: auto;">
  59. <label class="curpoin"><input type="radio" name="seoset" value="-1" checked="checked">原设置</label>&nbsp;&nbsp;
  60. <label class="curpoin"><input type="radio" name="seoset" value="0">清空</label>&nbsp;&nbsp;
  61. <label class="curpoin"><input type="radio" name="seoset" value="1">引用系统默认</label>
  62. <span class="err"></span>
  63. <p class="notic">系统默认分站SEO在功能配置里统一填写</p>
  64. </dd>
  65. </dl>
  66. <dl class="row" >
  67. <dt class="tit">操作范围</dt>
  68. <dd class="opt" style="width: auto;">
  69. <label class="label"><input class="check" type="checkbox" name="inherit_province" value="1">&nbsp;{eq name='$level' value='1'}当前区域{else/}一级区域{/eq}(省)</label>
  70. &nbsp;&nbsp;&nbsp;
  71. <label class="label"><input class="check" type="checkbox" name="inherit_city" value="1">&nbsp;{eq name='$level' value='2'}当前区域{else/}二级区域{/eq}(市/县)</label>
  72. &nbsp;&nbsp;&nbsp;
  73. <label class="label"><input class="check" type="checkbox" name="inherit_area" value="1">&nbsp;{eq name='$level' value='3'}当前区域{else/}三级区域{/eq}(乡/镇/区)</label>
  74. </dd>
  75. </dl>
  76. <div class="bot" style="padding-bottom:0px;">
  77. <input type="hidden" name="_ajax" value="1">
  78. <input type="hidden" name="ids" value="" id="ids">
  79. <input type="hidden" name="level" value="{$level}">
  80. <a href="JavaScript:void(0);" onclick="check_submit();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
  81. </div>
  82. </div>
  83. </form>
  84. </div>
  85. <script type="text/javascript">
  86. var parentObj = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  87. function check_submit()
  88. {
  89. var inherit_province_ckd = $('input[name=inherit_province]').is(':checked');
  90. var inherit_city_ckd = $('input[name=inherit_city]').is(':checked');
  91. var inherit_area_ckd = $('input[name=inherit_area]').is(':checked');
  92. if (!inherit_province_ckd && !inherit_city_ckd && !inherit_area_ckd) {
  93. showErrorAlert('请勾选要操作的区域级别');
  94. return false;
  95. }
  96. layer_loading('正在处理');
  97. $.ajax({
  98. url: $('#post_form').attr('action'),
  99. type: 'POST',
  100. dataType: 'JSON',
  101. data: $('#post_form').serialize(),
  102. success: function(res){
  103. layer.closeAll();
  104. if (res.code == 1) {
  105. parent.layer.msg(res.msg, {shade: layer_shade, time: 1000}, function(){
  106. parent.window.location.reload();
  107. parent.layer.close(parentObj);
  108. });
  109. } else {
  110. showErrorMsg(res.msg);
  111. }
  112. return false;
  113. },
  114. error: function(e){
  115. layer.closeAll();
  116. showErrorAlert(e.responseText);
  117. return false;
  118. }
  119. });
  120. }
  121. </script>
  122. {include file="public/footer" /}