Sin descripción
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.

conf.htm 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. <form class="form-horizontal" id="post_form" action="{:url('Citysite/conf')}" method="post">
  7. <div class="ncap-form-default">
  8. <dl class="row">
  9. <dt class="tit">
  10. <label><b>主站配置</b></label>
  11. </dt>
  12. </dl>
  13. <dl class="row">
  14. <dt class="tit">
  15. <label for="title">默认区域</label>
  16. </dt>
  17. <dd class="opt" style="width: auto;">
  18. <select name="site_default_home" id="site_default_home">
  19. <option value="0">不选择区域</option>
  20. {$citysite_html}
  21. </select>
  22. <span class="err"></span>
  23. <p class="notic">如果设置,主站将显示该区域的内容</p>
  24. </dd>
  25. </dl>
  26. <dl class="row {notempty name='$site_default_home'}none{/notempty}" id="dl_site_showall">
  27. <dt class="tit">
  28. <label>显示分站文档</label>
  29. </dt>
  30. <dd class="opt" style="width: auto;">
  31. <label class="curpoin"><input id="site_showall1" name="site_showall" value="1" type="radio" {if condition="!empty($row.site_showall)"} checked="checked"{/if}>开启</label>
  32. &nbsp;
  33. <label class="curpoin"><input id="site_showall0" name="site_showall" value="0" type="radio" {if condition="empty($row.site_showall)"} checked="checked"{/if}>关闭</label>
  34. <p class="notic">默认不选区域时,主站是否显示分站的文档</p>
  35. </dd>
  36. </dl>
  37. <dl class="row">
  38. <dt class="tit">
  39. <label><b>分站统一设置</b></label>
  40. </dt>
  41. </dl>
  42. <dl class="row none">
  43. <dt class="tit">
  44. <label>分站SEO</label>
  45. </dt>
  46. <dd class="opt" style="width: auto;">
  47. <input type="hidden" name="site_seoset" value="1">
  48. </dd>
  49. </dl>
  50. <div id="div_seoset_html">
  51. <dl class="row">
  52. <dt class="tit">
  53. <label for="seo_title">SEO标题</label>
  54. </dt>
  55. <dd class="opt" style="width: auto;">
  56. <input type="text" value="{$row.site_seo_title|default=''}" name="site_seo_title" id="site_seo_title" class="input-txt">
  57. <p class="notic"></p>
  58. </dd>
  59. </dl>
  60. <dl class="row">
  61. <dt class="tit">
  62. <label>SEO关键词</label>
  63. </dt>
  64. <dd class="opt" style="width: auto;">
  65. <textarea rows="5" cols="60" id="site_seo_keywords" name="site_seo_keywords" style="height:20px;">{$row.site_seo_keywords|default=''}</textarea>
  66. <span class="err"></span>
  67. <p class="notic"></p>
  68. </dd>
  69. </dl>
  70. <dl class="row">
  71. <dt class="tit">
  72. <label>SEO描述</label>
  73. </dt>
  74. <dd class="opt" style="width: auto;">
  75. <textarea rows="5" cols="60" id="site_seo_description" name="site_seo_description" style="height:60px;">{$row.site_seo_description|default=''}</textarea>
  76. <span class="err"></span>
  77. <p class="notic2">{region}分站区域,{regionAll}分站完整区域,{parent}分站上级区域,{top}分站顶级区域</p>
  78. </dd>
  79. </dl>
  80. </div>
  81. <dl class="row">
  82. <dt class="tit">
  83. <label>友情链接</label>
  84. </dt>
  85. <dd class="opt" style="width: auto;">
  86. <label class="curpoin"><input id="site_flink_showall0" name="site_flink_showall" value="0" type="radio" {if condition="empty($row.site_flink_showall)"} checked="checked"{/if}>显示全国</label>
  87. &nbsp;
  88. <label class="curpoin"><input id="site_flink_showall1" name="site_flink_showall" value="1" type="radio" {if condition="!empty($row.site_flink_showall)"} checked="checked"{/if}>不显示全国</label>
  89. <p class="notic">默认分站显示全国、分站的友情链接,也可以设置分站不显示全国的友情链接</p>
  90. </dd>
  91. </dl>
  92. <dl class="row">
  93. <dt class="tit">
  94. <label>分站模板风格</label>
  95. </dt>
  96. <dd class="opt" style="width: auto;">
  97. <label class="curpoin"><input id="site_template0" name="site_template" value="0" type="radio" {if condition="empty($row.site_template)"} checked="checked"{/if}>统一模板</label>
  98. &nbsp;
  99. <label class="curpoin"><input id="site_template1" name="site_template" value="1" type="radio" {if condition="!empty($row.site_template)"} checked="checked"{/if}>独立模板</label>
  100. <a id="a_site_template_1" href="javascript:void(0);" data-href="https://www.eyoucms.com/plus/view.php?aid=29080&origin_eycms=1" onclick="parent_openFullframe(this, '城市分站独立模板的制作教程');" {if condition="empty($row.site_template)"} style="display: none;" {/if}>(制作教程)</a>
  101. <p class="notic"></p>
  102. </dd>
  103. </dl>
  104. <div class="bot">
  105. <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
  106. </div>
  107. </div>
  108. </form>
  109. </div>
  110. <script type="text/javascript">
  111. var parentObj = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  112. $(function () {
  113. $('input[name=site_seoset]').click(function(){
  114. var site_seoset = $(this).val();
  115. if (0 == site_seoset) {
  116. $('#div_seoset_html').hide();
  117. } else {
  118. $('#div_seoset_html').show();
  119. }
  120. });
  121. $('input[name=site_template]').click(function(){
  122. var site_template = $(this).val();
  123. if (0 == site_template) {
  124. $('#a_site_template_1').hide();
  125. } else {
  126. $('#a_site_template_1').show();
  127. }
  128. });
  129. $('select[name=site_default_home]').change(function(){
  130. var site_default_home = $(this).val();
  131. if (0 == site_default_home) {
  132. $('#dl_site_showall').show();
  133. } else {
  134. $('#dl_site_showall').hide();
  135. }
  136. });
  137. });
  138. // 判断输入框是否为空
  139. function checkForm(){
  140. layer_loading('正在处理');
  141. $.ajax({
  142. type : 'post',
  143. url : "{:url('Citysite/conf', ['_ajax'=>1])}",
  144. data : $('#post_form').serialize(),
  145. dataType : 'json',
  146. success : function(res){
  147. layer.closeAll();
  148. if(res.code == 1){
  149. var _parent = parent;
  150. _parent.layer.close(parentObj);
  151. _parent.layer.msg(res.msg, {icon: 1, shade: layer_shade, time: 1000});
  152. }else{
  153. showErrorMsg(res.msg);
  154. }
  155. },
  156. error: function(e){
  157. layer.closeAll();
  158. showErrorAlert(e.responseText);
  159. }
  160. });
  161. }
  162. </script>
  163. {include file="public/footer" /}