rewrite ^/areas_([a-z]+)/(.*)/([0-9]+)\.html$ /areas/plus/view.php?aid=$3&area=$1 last;rewrite ^/areas_([a-z]+)/(.*)/([0-9]+)_([0-9]+)\.html$ /areas/plus/view.php?aid=$2&pageno=$3&area=$1 last;rewrite ^/areas_([a-z]+)/(.*)/$ /areas/plus/list.php?tid=$2&area=$1 last;rewrite ^/areas_([a-z]+)/(.*)/list_([0-9]+)_([0-9]+)\.html$ /areas/plus/list.php?tid=$2&PageNo=$4&area=$1 last;rewrite ^/areas_([a-z]+)/$ /areas/index.php?area=$1 last;rewrite ^/areas.html$ /areas/index.php last;
RewriteEngine OnRewriteBase /RewriteRule ^areas_([a-z0-9_\-]+)/(.*)/([0-9]+)\.html$ areas/plus/view\.php?aid=$3&area=$1 [L]RewriteRule ^areas_([a-z0-9_\-]+)/(.*)/([0-9]+)_([0-9]+)\.html$ areas/plus/view\.php?aid=$2&pageno=$3&area=$1 [L]RewriteRule ^areas_([a-z0-9_\-]+)/(.*)/$ areas/plus/list\.php?tid=$2&area=$1 [L]RewriteRule ^areas_([a-z0-9_\-]+)/(.*)/list_([0-9]+)_([0-9]+)\.html$ areas/plus/list\.php?tid=$3&PageNo=$4&area=$1 [L]RewriteRule ^areas_([a-z0-9_\-]+)/$ areas/index\.php?area=$1 [L]RewriteRule ^areas\.html$ areas/index\.php [L]
<rule name="分站文章页"><match url="^areas_([a-z]+)/(.*)/([0-9]+).html$" ignoreCase="false" /><action type="Rewrite" url="/areas/plus/view.php?aid={R:3}&area={R:1}" appendQueryString="false" /></rule><rule name="分站文章分页"><match url="^areas_([a-z]+)/(.*)/([0-9]+)_([0-9]+).html$" ignoreCase="false" /><action type="Rewrite" url="/areas/plus/view.php?aid={R:2}&pageno={R:3}&area={R:1}" appendQueryString="false" /></rule><rule name="分站栏目页"><match url="^areas_([a-z]+)/(.*)/$" ignoreCase="false" /><action type="Rewrite" url="/areas/plus/list.php?tid={R:2}&area={R:1}" appendQueryString="false" /></rule><rule name="分站栏目分页"><match url="^areas_([a-z]+)/(.*)/list_([0-9]+)_([0-9]+).html$" ignoreCase="false" /><action type="Rewrite" url="/areas/plus/list.php?tid={R:3}&PageNo={R:4}&area={R:1}" appendQueryString="false" /></rule><rule name="分站首页"><match url="^areas_([a-z]+)/$" ignoreCase="false" /><action type="Rewrite" url="/areas/index.php?area={R:1}" appendQueryString="false" /></rule><rule name="分站全国"><match url="^areas.html$" ignoreCase="false" /><action type="Rewrite" url="/areas/index.php" appendQueryString="false" /></rule>
$preRow = $this->dsql->GetOne($query.$pre);
if(is_array($preRow)) $preRow['title'] = $GLOBALS['cfg_areas_title'] . $preRow['title'];if(is_array($nextRow)) $nextRow['title'] = $GLOBALS['cfg_areas_title'] . $nextRow['title'];
function Display()
function Display($ismake=0)
$this->ParseDMFields($this->PageNo,0);
$this->ParseDMFields($this->PageNo,$ismake);
//处理一些特殊字段
$row['title'] = $GLOBALS['cfg_areas_title'] . $row['title'];
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/images/defaultpic.gif';
$row['litpic'] = $GLOBALS['cfg_basehost'].'/images/defaultpic.gif';
$this->TypeInfos = $this->dsql->GetOne($query);
$this->TypeInfos['typename'] = $GLOBALS['cfg_areas_title'] . $this->TypeInfos['typename'];
$tinfos = $this->dsql->GetOne();
$tinfos['typename'] = $GLOBALS['cfg_areas_title'] . $tinfos['typename'];
//处理一些特殊字段
$row['title'] = $GLOBALS['cfg_areas_title'] . $row['title'];
$row['sonids'] = $row['rel'] = '';
$row['typename'] = $GLOBALS['cfg_areas_title'] . $row['typename'];
$pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]);
$pv->Fields['typename'] = $GLOBALS['cfg_areas_title'] . $typeids[$i]['typename'];
$row['typelink'] = $row['typeurl'] = GetOneTypeUrlA($row);
$row['typename'] = $GLOBALS['cfg_areas_title'] . $row['typename'];
{dede:areas sqlstr="" row="5"}<dt><a href='[field:arcurl/]'>[field:title/]</a></dt><dd>[field:sonareas1]<a href='[field:arcurl/]'>[field:title/]</a>[field:sonareas2]<a href='[field:arcurl/]'>[field:title/]</a>[/field:sonareas2][/field:sonareas1]</dd>{/dede:areas}
{dede:areas sqlstr="" row="5"}{/dede:areas}
{dede:areas sqlstr="istop = 1" row="5"}[field:sonareas1][/field:sonareas1]{/dede:areas}
{dede:areas sqlstr="istop = 1" row="5"}[field:sonareas1][field:sonareas2][/field:sonareas2][/field:sonareas1]{/dede:areas}
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>全国城市分站</title></head><body><!--可以引入自己的头部和尾部--><style>.all_city{clear:both;max-width:1200px;margin:0 auto}.all_city h2{padding:0;margin:0;font-size:16px;font-weight:700;width:70px;color:#00a0e9;line-height:30px}.all_city h2 a{text-decoration:none;font-size:16px;font-weight:700;width:70px;color:#222;line-height:30px}.all_city ul{padding:0;margin:0;list-style:none;float:left;padding-left:20px}.all_city ul li.all_city_li{clear:both;float:left;line-height:30px}.all_city ul.all_city_ul li{list-style:none;float:left}.all_city ul li.all_city_li a,.all_city ul.all_city_ul li a{display:block;float:left;padding-left:10px;color:#222;text-decoration:none;font-size:14px}</style>{dede:areas}<div class="all_city"><h2><a href='[field:arcurl/]'>[field:title/]</a></h2><ul>[field:sonareas1]<li class="all_city_li"><a href='[field:arcurl/]'><b>[field:title/]</b></a><ul class="all_city_ul">[field:sonareas2]<li><a href='[field:arcurl/]'>[field:title/]</a></li>[/field:sonareas2]</ul></li>[/field:sonareas1]</ul></div>{/dede:areas}</body></html>
{dede:global.cfg_areas_title runphp=yes}@me = @me ? @me : '包头';{/dede:global.cfg_areas_title}
上一篇:织梦手机站生成静态插件
下一篇:织梦企业公司官网小程序插件
https://www.91084.com/chajian/1372.html
Copyright © 2019-2024 河南格展网络科技有限公司 版权所有 Powered by 城市建站 | 网站优化
备案号:豫ICP备20001987号-2 豫公网安备 41022402000130号
本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!