123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325 |
- {include file="public/layout" /}
- <body class="bodystyle">
- <div id="append_parent"></div>
- <div id="ajaxwaitid"></div>
- <div class="page atta min-hg-c-10">
- {include file="seo/bar" /}
- <form method="post" id="handlepost" action="{:U('Sitemap/index')}" enctype="multipart/form-data" name="form1">
- <div class="ncap-form-default">
- <dl class="row">
- <dt class="tit">
- <label>地图类型</label>
- </dt>
- <dd class="opt">
- <label class="curpoin"><input type="checkbox" name="sitemap_xml" value="1" onclick="sitemap_type(this);" {if condition="isset($config.sitemap_xml) && $config.sitemap_xml eq 1"}checked="checked"{/if}>xml地图</label>
- <span class="notic2 {if condition="!isset($config.sitemap_xml) || $config.sitemap_xml != 1"}none{/if}" id="sg_sitemap_xml">
- {notempty name="$global.web_mobile_domain_open"}
- <a href="{$web_basehost}__ROOT_DIR__/sitemap.xml" target="_blank">PC端</a>
- <a href="{$mobile_domain}__ROOT_DIR__/sitemap_{$global.web_mobile_domain}.xml" target="_blank">移动端</a>
- {else /}
- <a href="{$web_basehost}__ROOT_DIR__/sitemap.xml" target="_blank">{$web_basehost}__ROOT_DIR__/sitemap.xml</a>
- {/notempty}
- <a href="javascript:void(0);" onclick="update_sitemap_xml();">手工更新</a>
- </span>
- <br/>
- <label class="curpoin"><input type="checkbox" name="sitemap_txt" value="1" onclick="sitemap_type(this);" {if condition="isset($config.sitemap_txt) && $config.sitemap_txt eq 1"}checked="checked"{/if}>txt地图</label>
- <span class="notic2 {if condition="!isset($config.sitemap_txt) || $config.sitemap_txt != 1"}none{/if}" id="sg_sitemap_txt">
- {notempty name="$global.web_mobile_domain_open"}
- <a href="{$web_basehost}__ROOT_DIR__/sitemap.txt" target="_blank">PC端</a>
- <a href="{$mobile_domain}__ROOT_DIR__/sitemap_{$global.web_mobile_domain}.txt" target="_blank">移动端</a>
- {else /}
- <a href="{$web_basehost}__ROOT_DIR__/sitemap.txt" target="_blank">{$web_basehost}__ROOT_DIR__/sitemap.txt</a>
- {/notempty}
- <a href="javascript:void(0);" onclick="update_sitemap_txt();">手工更新</a>
- </span>
- <br/>
- <label class="curpoin"><input type="checkbox" name="sitemap_html" value="1" onclick="sitemap_type(this);" {if condition="isset($config.sitemap_html) && $config.sitemap_html eq 1"}checked="checked"{/if}>html地图</label>
- <span class="notic2 {if condition="!isset($config.sitemap_html) || $config.sitemap_html != 1"}none{/if}" id="sg_sitemap_html">
- <a href="{$web_basehost}__ROOT_DIR__/sitemap.html" target="_blank">{$web_basehost}__ROOT_DIR__/sitemap.html</a> <a href="javascript:void(0);" onclick="update_sitemap_html();">手工更新</a>
- (<a href="javascript:void(0);" onclick="sitemap_exp('sitemap_1_1');">查看模板</a><span id="sitemap_1_1" class="none">:__ROOT_DIR__/public/html/sitemap.htm</span>)
- </span>
- <span class="err"></span>
- <p class="notic"></p>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit">自动更新</dt>
- <dd class="opt">
- <label class="curpoin"><input id="sitemap_auto1" name="sitemap_auto" value="1" {if condition="isset($config.sitemap_auto) && $config.sitemap_auto eq 1"}checked{/if} type="radio">开启</label>
-
- <label class="curpoin"><input id="sitemap_auto0" name="sitemap_auto" value="0" {if condition="!isset($config.sitemap_auto) || $config.sitemap_auto eq 0"}checked{/if} type="radio">关闭</label>
- <p class="notic">地图跟随文档一起更新</p>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit">
- <label>过滤规则</label>
- </dt>
- <dd class="opt">
- <label class="curpoin"><input type="checkbox" name="sitemap_not1" value="1" {if condition="isset($config.sitemap_not1) && $config.sitemap_not1 eq 1"}checked="checked"{/if}>过滤隐藏栏目</label>
- <label class="curpoin"><input type="checkbox" name="sitemap_not2" value="1" {if condition="isset($config.sitemap_not2) && $config.sitemap_not2 eq 1"}checked="checked"{/if}>过滤外部链接</label>
- <span class="err"></span>
- <p class="notic"></p>
- </dd>
- </dl>
- <div id="div_sitemap_xml" class="{if condition="empty($config.sitemap_xml)"}none{/if}">
- <dl class="row">
- <dt class="tit">
- <label>更新频率</label>
- </dt>
- <dd class="opt">
- 首页
- <select name="sitemap_changefreq_index">
- <option value="always" {if condition="empty($config.sitemap_changefreq_index) || $config.sitemap_changefreq_index eq 'always'"}selected="true"{/if}>经常</option>
- <option value="hourly" {if condition="!empty($config.sitemap_changefreq_index) && $config.sitemap_changefreq_index eq 'hourly'"}selected="true"{/if}>每小时</option>
- <option value="daily" {if condition="!empty($config.sitemap_changefreq_index) && $config.sitemap_changefreq_index eq 'daily'"}selected="true"{/if}>每天</option>
- <option value="weekly" {if condition="!empty($config.sitemap_changefreq_index) && $config.sitemap_changefreq_index eq 'weekly'"}selected="true"{/if}>每周</option>
- <option value="monthly" {if condition="!empty($config.sitemap_changefreq_index) && $config.sitemap_changefreq_index eq 'monthly'"}selected="true"{/if}>每月</option>
- <option value="yearly" {if condition="!empty($config.sitemap_changefreq_index) && $config.sitemap_changefreq_index eq 'yearly'"}selected="true"{/if}>每年</option>
- <option value="never" {if condition="!empty($config.sitemap_changefreq_index) && $config.sitemap_changefreq_index eq 'never'"}selected="true"{/if}>从不</option>
- </select>
-
- 列表页
- <select name="sitemap_changefreq_list">
- <option value="always" {if condition="!empty($config.sitemap_changefreq_list) && $config.sitemap_changefreq_list eq 'always'"}selected="true"{/if}>经常</option>
- <option value="hourly" {if condition="empty($config.sitemap_changefreq_list) || $config.sitemap_changefreq_list eq 'hourly'"}selected="true"{/if}>每小时</option>
- <option value="daily" {if condition="!empty($config.sitemap_changefreq_list) && $config.sitemap_changefreq_list eq 'daily'"}selected="true"{/if}>每天</option>
- <option value="weekly" {if condition="!empty($config.sitemap_changefreq_list) && $config.sitemap_changefreq_list eq 'weekly'"}selected="true"{/if}>每周</option>
- <option value="monthly" {if condition="!empty($config.sitemap_changefreq_list) && $config.sitemap_changefreq_list eq 'monthly'"}selected="true"{/if}>每月</option>
- <option value="yearly" {if condition="!empty($config.sitemap_changefreq_list) && $config.sitemap_changefreq_list eq 'yearly'"}selected="true"{/if}>每年</option>
- <option value="never" {if condition="!empty($config.sitemap_changefreq_list) && $config.sitemap_changefreq_list eq 'never'"}selected="true"{/if}>从不</option>
- </select>
-
- 内容页
- <select name="sitemap_changefreq_view">
- <option value="always" {if condition="!empty($config.sitemap_changefreq_view) && $config.sitemap_changefreq_view eq 'always'"}selected="true"{/if}>经常</option>
- <option value="hourly" {if condition="!empty($config.sitemap_changefreq_view) && $config.sitemap_changefreq_view eq 'hourly'"}selected="true"{/if}>每小时</option>
- <option value="daily" {if condition="empty($config.sitemap_changefreq_view) || $config.sitemap_changefreq_view eq 'daily'"}selected="true"{/if}>每天</option>
- <option value="weekly" {if condition="!empty($config.sitemap_changefreq_view) && $config.sitemap_changefreq_view eq 'weekly'"}selected="true"{/if}>每周</option>
- <option value="monthly" {if condition="!empty($config.sitemap_changefreq_view) && $config.sitemap_changefreq_view eq 'monthly'"}selected="true"{/if}>每月</option>
- <option value="yearly" {if condition="!empty($config.sitemap_changefreq_view) && $config.sitemap_changefreq_view eq 'yearly'"}selected="true"{/if}>每年</option>
- <option value="never" {if condition="!empty($config.sitemap_changefreq_view) && $config.sitemap_changefreq_view eq 'never'"}selected="true"{/if}>从不</option>
- </select>
- <span class="err"></span>
- <p class="notic">xml地图文件使用,你输入的网站的网页内容更新的频率。</p>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit">
- <label>优先级别</label>
- </dt>
- <dd class="opt">
- 首页
- <select name="sitemap_priority_index">
- <option value="0.1" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.1'"}selected="true"{/if}>0.1</option>
- <option value="0.2" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.2'"}selected="true"{/if}>0.2</option>
- <option value="0.3" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.3'"}selected="true"{/if}>0.3</option>
- <option value="0.4" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.4'"}selected="true"{/if}>0.4</option>
- <option value="0.5" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.5'"}selected="true"{/if}>0.5</option>
- <option value="0.6" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.6'"}selected="true"{/if}>0.6</option>
- <option value="0.7" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.7'"}selected="true"{/if}>0.7</option>
- <option value="0.8" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.8'"}selected="true"{/if}>0.8</option>
- <option value="0.9" {if condition="!empty($config.sitemap_priority_index) && $config.sitemap_priority_index eq '0.9'"}selected="true"{/if}>0.9</option>
- <option value="1.0" {if condition="empty($config.sitemap_priority_index) || $config.sitemap_priority_index eq '1.0'"}selected="true"{/if}>1.0</option>
- </select>
-
- 列表页
- <select name="sitemap_priority_list">
- <option value="0.1" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.1'"}selected="true"{/if}>0.1</option>
- <option value="0.2" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.2'"}selected="true"{/if}>0.2</option>
- <option value="0.3" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.3'"}selected="true"{/if}>0.3</option>
- <option value="0.4" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.4'"}selected="true"{/if}>0.4</option>
- <option value="0.5" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.5'"}selected="true"{/if}>0.5</option>
- <option value="0.6" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.6'"}selected="true"{/if}>0.6</option>
- <option value="0.7" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.7'"}selected="true"{/if}>0.7</option>
- <option value="0.8" {if condition="empty($config.sitemap_priority_list) || $config.sitemap_priority_list eq '0.8'"}selected="true"{/if}>0.8</option>
- <option value="0.9" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '0.9'"}selected="true"{/if}>0.9</option>
- <option value="1.0" {if condition="!empty($config.sitemap_priority_list) && $config.sitemap_priority_list eq '1.0'"}selected="true"{/if}>1.0</option>
- </select>
-
- 内容页
- <select name="sitemap_priority_view">
- <option value="0.1" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.1'"}selected="true"{/if}>0.1</option>
- <option value="0.2" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.2'"}selected="true"{/if}>0.2</option>
- <option value="0.3" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.3'"}selected="true"{/if}>0.3</option>
- <option value="0.4" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.4'"}selected="true"{/if}>0.4</option>
- <option value="0.5" {if condition="empty($config.sitemap_priority_view) || $config.sitemap_priority_view eq '0.5'"}selected="true"{/if}>0.5</option>
- <option value="0.6" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.6'"}selected="true"{/if}>0.6</option>
- <option value="0.7" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.7'"}selected="true"{/if}>0.7</option>
- <option value="0.8" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.8'"}selected="true"{/if}>0.8</option>
- <option value="0.9" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '0.9'"}selected="true"{/if}>0.9</option>
- <option value="1.0" {if condition="!empty($config.sitemap_priority_view) && $config.sitemap_priority_view eq '1.0'"}selected="true"{/if}>1.0</option>
- </select>
- <span class="err"></span>
- <p class="notic">xml地图文件使用,所抓取页面在您网站的重要性,告诉搜索引擎抓取的优先级。数值越大,优先级越高。</p>
- </dd>
- </dl>
- </div>
- <dl class="row">
- <dt class="tit">
- <label for="sitemap_archives_num">生成数量</label>
- </dt>
- <dd class="opt">
- 文档 <input class="tc" id="sitemap_archives_num" name="sitemap_archives_num" value="{$config.sitemap_archives_num|default='100'}" type="text" style="width: 50px;" /> 篇
-
- TAG <input class="tc" id="sitemap_tags_num" name="sitemap_tags_num" value="{$config.sitemap_tags_num|default='100'}" type="text" style="width: 50px;" /> 篇
- <!-- <p class="notic">发布/编辑文档时,会同步更新sitemap.xml,包含首页、栏目页、指定数量的最新发布文档。</p> -->
- <p class="notic2">文档加TAG数量不能超过5000条;数值大对更新文档速度有影响</p>
- </dd>
- </dl>
- <dl class="row zzbaidu">
- <dt class="tit">
- <label for="sitemap_zzbaidutoken">百度推送</label>
- </dt>
- <dd class="opt">
- <input id="sitemap_zzbaidutoken" name="sitemap_zzbaidutoken" value="{$config.sitemap_zzbaidutoken|default=''}" class="input-txt" type="text" />
- <span class="err"></span>
- <p class="notic-pic"><img src="__SKIN__/images/baidu-token.jpg" width="535"></p>
- <p class="notic2">在<a href="https://ziyuan.baidu.com" target="_blank" >百度搜索资源平台</a>获取token并填入,更新文档时主动推送给百度</p>
- </dd>
- </dl>
- <div class="bot">
- <a href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" onclick="adsubmit();">确认提交</a>
- </div>
- </div>
- </form>
- </div>
- <script type="text/javascript">
-
- $(document).ready(function(){
- // 生成文档数量
- // $('#sitemap_archives_num').keyup(function(){
- // var sitemap_archives_num = parseInt($(this).val());
- // if (sitemap_archives_num > 100) {
- // $('#p_sitemap_archives_num').show();
- // } else {
- // $('#p_sitemap_archives_num').hide();
- // }
- // });
-
- // 生成Tag数量
- // $('#sitemap_tags_num').keyup(function(){
- // var sitemap_tags_num = parseInt($(this).val());
- // if (sitemap_tags_num > 100) {
- // $('#p_sitemap_tags_num').show();
- // } else {
- // $('#p_sitemap_tags_num').hide();
- // }
- // });
- });
-
- function sitemap_exp(id)
- {
- $('#'+id).toggle();
- }
-
- function sitemap_type(obj)
- {
- var name = $(obj).attr('name');
- var isChecked = $(obj).is(":checked");
- if (isChecked) {
- if (name == 'sitemap_xml') {
- $('#div_sitemap_xml').show();
- }
- $('#sg_'+name).show();
- } else {
- if (name == 'sitemap_xml') {
- $('#div_sitemap_xml').hide();
- }
- $('#sg_'+name).hide();
- }
- }
-
- function update_sitemap() {
- layer_loading('正在处理');
- $.ajax({
- url: "__ROOT_DIR__/index.php?m=api&c=Sitemap&a=ajax_update_sitemap&lang="+__lang__,
- type: "POST",
- dataType: "json",
- data: {_ajax:1},
- success: function(res){
- layer.closeAll();
- if (1 == res.code) {
- layer.msg(res.msg, {icon: 1, time: 1000});
- } else {
- layer.alert(res.data.msg, {icon: 5, title: false});
- }
- },
- error: function(e){
- layer.closeAll();
- layer.alert(e.responseText, {icon: 5, title:false});
- }
- });
- }
- function update_sitemap_xml(){
- layer_loading('正在处理');
- $.ajax({
- url: "__ROOT_DIR__/index.php?m=api&c=Sitemap&a=ajax_update_sitemap_xml&lang="+__lang__,
- type: "POST",
- dataType: "json",
- data: {is_auto:'off', _ajax:1},
- success: function(res){
- layer.closeAll();
- if (1 == res.code) {
- layer.msg(res.msg, {icon: 1, time: 1000});
- } else {
- layer.alert(res.data.msg, {icon: 5, title: false});
- }
- },
- error: function(e){
- layer.closeAll();
- layer.alert(e.responseText, {icon: 5, title:false});
- }
- });
- }
- function update_sitemap_txt(){
- layer_loading('正在处理');
- $.ajax({
- url: "__ROOT_DIR__/index.php?m=api&c=Sitemap&a=ajax_update_sitemap_txt&lang="+__lang__,
- type: "POST",
- dataType: "json",
- data: {is_auto:'off', _ajax:1},
- success: function(res){
- layer.closeAll();
- if (1 == res.code) {
- layer.msg(res.msg, {icon: 1, time: 1000});
- } else {
- layer.alert(res.data.msg, {icon: 5, title: false});
- }
- },
- error: function(e){
- layer.closeAll();
- layer.alert(e.responseText, {icon: 5, title:false});
- }
- });
- }
-
- function update_sitemap_html(){
- layer_loading('正在处理');
- $.ajax({
- url: "__ROOT_DIR__/index.php?m=api&c=Sitemap&a=ajax_update_sitemap_html&lang="+__lang__,
- type: "POST",
- dataType: "json",
- data: {is_auto:'off', _ajax:1},
- success: function(res){
- layer.closeAll();
- if (1 == res.code) {
- layer.msg(res.msg, {icon: 1, time: 1000});
- } else {
- layer.alert(res.data.msg, {icon: 5, title: false});
- }
- },
- error: function(e){
- layer.closeAll();
- layer.alert(e.responseText, {icon: 5, title:false});
- }
- });
- }
-
- function adsubmit(){
- layer_loading("正在处理");
- $('#handlepost').submit();
- }
- </script>
-
- {include file="public/footer" /}
|