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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. {include file="public/layout" /}
  2. <body class="bodystyle">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page atta">
  6. {include file="seo/bar" /}
  7. <form method="post" id="handlepost" action="{:U('Sitemap/index')}" enctype="multipart/form-data" name="form1">
  8. <div class="ncap-form-default">
  9. <dl class="row">
  10. <dt class="tit">自动生成</dt>
  11. <dd class="opt">
  12. <div class="onoff">
  13. <label for="sitemap_auto1" class="cb-enable {if condition='isset($config.sitemap_auto) && $config.sitemap_auto eq 1'}selected{/if}" >开启</label>
  14. <label for="sitemap_auto0" class="cb-disable {if condition='!isset($config.sitemap_auto) || $config.sitemap_auto eq 0'}selected{/if}" >关闭</label>
  15. <input id="sitemap_auto1" name="sitemap_auto" value="1" {if condition="isset($config.sitemap_auto) && $config.sitemap_auto eq 1"}checked{/if} type="radio">
  16. <input id="sitemap_auto0" name="sitemap_auto" value="0" {if condition="!isset($config.sitemap_auto) || $config.sitemap_auto eq 0"}checked{/if} type="radio">
  17. </div>
  18. <p class="notic">更新内容时候自动更新网站地图</p>
  19. </dd>
  20. </dl>
  21. <dl class="row">
  22. <dt class="tit">
  23. <label>过滤栏目及内容</label>
  24. </dt>
  25. <dd class="opt">
  26. <label><input type="checkbox" name="sitemap_not1" value="1" {if condition="isset($config.sitemap_not1) && $config.sitemap_not1 eq 1"}checked="checked"{/if}>过滤隐藏栏目</label>&nbsp;
  27. <label><input type="checkbox" name="sitemap_not2" value="1" {if condition="isset($config.sitemap_not2) && $config.sitemap_not2 eq 1"}checked="checked"{/if}>过滤外部模块</label>&nbsp;
  28. <span class="err"></span>
  29. <p class="notic"></p>
  30. </dd>
  31. </dl>
  32. <dl class="row">
  33. <dt class="tit">
  34. <label>Sitemap类型</label>
  35. </dt>
  36. <dd class="opt">
  37. <label><input type="checkbox" name="sitemap_xml" value="1" {if condition="isset($config.sitemap_xml) && $config.sitemap_xml eq 1"}checked="checked"{/if}>Xml网站地图</label>&nbsp;
  38. <br/><p class="notic2">适合谷歌和百度,地图网址 <a href="__SITE_URL____ROOT_DIR__/sitemap.xml" target="_blank">__SITE_URL____ROOT_DIR__/sitemap.xml</a> &nbsp;&nbsp;<a href="javascript:void(0);" onclick="update_sitemap();" class="ncap-btn ncap-btn-green">更新地图</a></p>
  39. <span class="err"></span>
  40. <p class="notic"></p>
  41. </dd>
  42. </dl>
  43. <dl class="row">
  44. <dt class="tit">
  45. <label>更新频率</label>
  46. </dt>
  47. <dd class="opt">
  48. 首页
  49. <select name="sitemap_changefreq_index">
  50. <option value="always" {if condition="empty($config.sitemap_changefreq_index) || $config.sitemap_changefreq_index eq 'always'"}selected="true"{/if}>经常</option>
  51. <option value="hourly" {if condition="!empty($config.sitemap_changefreq_index) && $config.sitemap_changefreq_index eq 'hourly'"}selected="true"{/if}>每小时</option>
  52. <option value="daily" {if condition="!empty($config.sitemap_changefreq_index) && $config.sitemap_changefreq_index eq 'daily'"}selected="true"{/if}>每天</option>
  53. <option value="weekly" {if condition="!empty($config.sitemap_changefreq_index) && $config.sitemap_changefreq_index eq 'weekly'"}selected="true"{/if}>每周</option>
  54. <option value="monthly" {if condition="!empty($config.sitemap_changefreq_index) && $config.sitemap_changefreq_index eq 'monthly'"}selected="true"{/if}>每月</option>
  55. <option value="yearly" {if condition="!empty($config.sitemap_changefreq_index) && $config.sitemap_changefreq_index eq 'yearly'"}selected="true"{/if}>每年</option>
  56. <option value="never" {if condition="!empty($config.sitemap_changefreq_index) && $config.sitemap_changefreq_index eq 'never'"}selected="true"{/if}>从不</option>
  57. </select>
  58. &nbsp;&nbsp;
  59. 列表页
  60. <select name="sitemap_changefreq_list">
  61. <option value="always" {if condition="!empty($config.sitemap_changefreq_list) && $config.sitemap_changefreq_list eq 'always'"}selected="true"{/if}>经常</option>
  62. <option value="hourly" {if condition="empty($config.sitemap_changefreq_list) || $config.sitemap_changefreq_list eq 'hourly'"}selected="true"{/if}>每小时</option>
  63. <option value="daily" {if condition="!empty($config.sitemap_changefreq_list) && $config.sitemap_changefreq_list eq 'daily'"}selected="true"{/if}>每天</option>
  64. <option value="weekly" {if condition="!empty($config.sitemap_changefreq_list) && $config.sitemap_changefreq_list eq 'weekly'"}selected="true"{/if}>每周</option>
  65. <option value="monthly" {if condition="!empty($config.sitemap_changefreq_list) && $config.sitemap_changefreq_list eq 'monthly'"}selected="true"{/if}>每月</option>
  66. <option value="yearly" {if condition="!empty($config.sitemap_changefreq_list) && $config.sitemap_changefreq_list eq 'yearly'"}selected="true"{/if}>每年</option>
  67. <option value="never" {if condition="!empty($config.sitemap_changefreq_list) && $config.sitemap_changefreq_list eq 'never'"}selected="true"{/if}>从不</option>
  68. </select>
  69. &nbsp;&nbsp;
  70. 内容页
  71. <select name="sitemap_changefreq_view">
  72. <option value="always" {if condition="!empty($config.sitemap_changefreq_view) && $config.sitemap_changefreq_view eq 'always'"}selected="true"{/if}>经常</option>
  73. <option value="hourly" {if condition="!empty($config.sitemap_changefreq_view) && $config.sitemap_changefreq_view eq 'hourly'"}selected="true"{/if}>每小时</option>
  74. <option value="daily" {if condition="empty($config.sitemap_changefreq_view) || $config.sitemap_changefreq_view eq 'daily'"}selected="true"{/if}>每天</option>
  75. <option value="weekly" {if condition="!empty($config.sitemap_changefreq_view) && $config.sitemap_changefreq_view eq 'weekly'"}selected="true"{/if}>每周</option>
  76. <option value="monthly" {if condition="!empty($config.sitemap_changefreq_view) && $config.sitemap_changefreq_view eq 'monthly'"}selected="true"{/if}>每月</option>
  77. <option value="yearly" {if condition="!empty($config.sitemap_changefreq_view) && $config.sitemap_changefreq_view eq 'yearly'"}selected="true"{/if}>每年</option>
  78. <option value="never" {if condition="!empty($config.sitemap_changefreq_view) && $config.sitemap_changefreq_view eq 'never'"}selected="true"{/if}>从不</option>
  79. </select>
  80. <span class="err"></span>
  81. <p class="notic">XML地图文件使用,你输入的网站的网页内容更新的频率。</p>
  82. </dd>
  83. </dl>
  84. <dl class="row">
  85. <dt class="tit">
  86. <label>优先级别</label>
  87. </dt>
  88. <dd class="opt">
  89. 首页
  90. <select name="sitemap_priority_index">
  91. <option value="0.1" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.1'"}selected="true"{/if}>0.1</option>
  92. <option value="0.2" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.2'"}selected="true"{/if}>0.2</option>
  93. <option value="0.3" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.3'"}selected="true"{/if}>0.3</option>
  94. <option value="0.4" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.4'"}selected="true"{/if}>0.4</option>
  95. <option value="0.5" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.5'"}selected="true"{/if}>0.5</option>
  96. <option value="0.6" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.6'"}selected="true"{/if}>0.6</option>
  97. <option value="0.7" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.7'"}selected="true"{/if}>0.7</option>
  98. <option value="0.8" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.8'"}selected="true"{/if}>0.8</option>
  99. <option value="0.9" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.9'"}selected="true"{/if}>0.9</option>
  100. <option value="1.0" {if condition="empty($config.sitemap_priority_index) || $config.sitemap_priority_index eq '1.0'"}selected="true"{/if}>1.0</option>
  101. </select>
  102. &nbsp;&nbsp;
  103. 列表页
  104. <select name="sitemap_priority_list">
  105. <option value="0.1" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.1'"}selected="true"{/if}>0.1</option>
  106. <option value="0.2" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.2'"}selected="true"{/if}>0.2</option>
  107. <option value="0.3" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.3'"}selected="true"{/if}>0.3</option>
  108. <option value="0.4" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.4'"}selected="true"{/if}>0.4</option>
  109. <option value="0.5" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.5'"}selected="true"{/if}>0.5</option>
  110. <option value="0.6" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.6'"}selected="true"{/if}>0.6</option>
  111. <option value="0.7" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.7'"}selected="true"{/if}>0.7</option>
  112. <option value="0.8" {if condition="empty($config.sitemap_priority_list) || $config.sitemap_priority_list eq '0.8'"}selected="true"{/if}>0.8</option>
  113. <option value="0.9" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.9'"}selected="true"{/if}>0.9</option>
  114. <option value="1.0" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '1.0'"}selected="true"{/if}>1.0</option>
  115. </select>
  116. &nbsp;&nbsp;
  117. 内容页
  118. <select name="sitemap_priority_view">
  119. <option value="0.1" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.1'"}selected="true"{/if}>0.1</option>
  120. <option value="0.2" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.2'"}selected="true"{/if}>0.2</option>
  121. <option value="0.3" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.3'"}selected="true"{/if}>0.3</option>
  122. <option value="0.4" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.4'"}selected="true"{/if}>0.4</option>
  123. <option value="0.5" {if condition="empty($config.sitemap_priority_view) || $config.sitemap_priority_view eq '0.5'"}selected="true"{/if}>0.5</option>
  124. <option value="0.6" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.6'"}selected="true"{/if}>0.6</option>
  125. <option value="0.7" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.7'"}selected="true"{/if}>0.7</option>
  126. <option value="0.8" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.8'"}selected="true"{/if}>0.8</option>
  127. <option value="0.9" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.9'"}selected="true"{/if}>0.9</option>
  128. <option value="1.0" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '1.0'"}selected="true"{/if}>1.0</option>
  129. </select>
  130. <span class="err"></span>
  131. <p class="notic">XML地图文件使用,所抓取页面在您网站的重要性,告诉搜索引擎抓取的优先级。数值越大,优先级越高。</p>
  132. </dd>
  133. </dl>
  134. <dl class="row">
  135. <dt class="tit">
  136. <label for="sitemap_archives_num">生成文档数量</label>
  137. </dt>
  138. <dd class="opt">
  139. <input id="sitemap_archives_num" name="sitemap_archives_num" value="{$config.sitemap_archives_num|default='100'}" type="text" style="width: 60px;" />&nbsp;篇
  140. <p class="notic">发布/编辑文档时,会同步更新sitemap.xml,包含首页、栏目页、指定数量的最新发布文档。</p>
  141. <p class="{if isset($config.sitemap_archives_num) && $config.sitemap_archives_num <= 100}none{/if} red" id="p_sitemap_archives_num">推荐设置100篇,数量设置越多,会对文档发布/编辑的速度造成一定影响。</p>
  142. </dd>
  143. </dl>
  144. <dl class="row">
  145. <dt class="tit">
  146. <label for="sitemap_tags_num">生成Tag数量</label>
  147. </dt>
  148. <dd class="opt">
  149. <input id="sitemap_tags_num" name="sitemap_tags_num" value="{$config.sitemap_tags_num|default='100'}" type="text" style="width: 60px;" />&nbsp;篇
  150. <p class="notic">发布/编辑文档时,会同步更新sitemap.xml,包含首页、栏目页、指定数量的最新发布文档。</p>
  151. <p class="{if isset($config.sitemap_tags_num) && $config.sitemap_tags_num <= 100}none{/elt} red" id="p_sitemap_tags_num">推荐设置100篇,数量设置越多,会对文档发布/编辑的速度造成一定影响。</p>
  152. </dd>
  153. </dl>
  154. <dl class="row zzbaidu">
  155. <dt class="tit">
  156. <label for="sitemap_zzbaidutoken">实时推送Url的token</label>
  157. </dt>
  158. <dd class="opt">
  159. <input id="sitemap_zzbaidutoken" name="sitemap_zzbaidutoken" value="{$config.sitemap_zzbaidutoken|default=''}" class="input-txt" type="text" />
  160. <p class="notic2">这里填入 <a href="https://ziyuan.baidu.com" target="_blank" style="color: red;">百度搜索资源平台</a> 的准入密钥,才能第一时间推送文章链接给百度蜘蛛。</p>
  161. </dd>
  162. </dl>
  163. <div class="bot">
  164. <a href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" onclick="adsubmit();">确认提交</a>
  165. </div>
  166. </div>
  167. </form>
  168. </div>
  169. <script type="text/javascript">
  170. $(document).ready(function(){
  171. // 生成文档数量
  172. $('#sitemap_archives_num').keyup(function(){
  173. var sitemap_archives_num = parseInt($(this).val());
  174. if (sitemap_archives_num > 100) {
  175. $('#p_sitemap_archives_num').show();
  176. } else {
  177. $('#p_sitemap_archives_num').hide();
  178. }
  179. });
  180. // 生成Tag数量
  181. $('#sitemap_tags_num').keyup(function(){
  182. var sitemap_tags_num = parseInt($(this).val());
  183. if (sitemap_tags_num > 100) {
  184. $('#p_sitemap_tags_num').show();
  185. } else {
  186. $('#p_sitemap_tags_num').hide();
  187. }
  188. });
  189. });
  190. function update_sitemap() {
  191. layer_loading('正在处理');
  192. $.ajax({
  193. url: "{:url('Sitemap/ajax_update_sitemap')}",
  194. type: "POST",
  195. dataType: "json",
  196. data: {_ajax:1},
  197. success: function(res){
  198. layer.closeAll();
  199. if (1 == res.code) {
  200. layer.msg(res.msg, {icon: 1, time: 1500}, function(){
  201. window.location.reload();
  202. });
  203. } else {
  204. layer.alert(res.data.msg, {icon: 5, title: false});
  205. }
  206. },
  207. error: function(e){
  208. layer.closeAll();
  209. layer.alert(e.responseText, {icon: 5, title:false});
  210. }
  211. });
  212. }
  213. function adsubmit(){
  214. layer_loading("正在处理");
  215. $('#handlepost').submit();
  216. }
  217. </script>
  218. {include file="public/footer" /}