织梦联动地区apache伪静态规则(2)

$fields['nativeplace'] .= " <a href='{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$eid}&infotype={$infotype}'>{$em}</a>\r\n";

}

        }

    }

    else

    {

        $sontype = ( ($nativeplace % 500 != 0) ? $nativeplace : 0 );

        $toptype = ( ($nativeplace % 500 == 0) ? $nativeplace : ( $nativeplace-($nativeplace%500) ) );

//2011-6-21 修改地区列表的一个小空格 论坛(by:织梦的鱼)

//伪静态

if($cfg_rewrite == 'Y')

{

$rwnativeplace = "/category/list-".$channelid."-".$typeid."-".$toptype."-".$infotype.".html";

$fields['nativeplace'] = "<a href='{$rwnativeplace}'> <b>{$em_nativeplaces[$toptype]}</b></a> &gt;&gt; ";

}

else

{

$fields['nativeplace'] = "<a href='{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$toptype}&infotype={$infotype}'> <b>{$em_nativeplaces[$toptype]}</b></a> &gt;&gt; ";

}

        foreach($em_nativeplaces as $eid=>$em)

        {

            if($eid < $toptype+1 || $eid > $toptype+499) continue;

            if($eid == $nativeplace) {

                $fields['nativeplace'] .= " <b>{$em}</b>\r\n";

            }

            else {

//伪静态

if($cfg_rewrite == 'Y')

{

$rwnativeplace = "/category/list-".$channelid."-".$typeid."-".$eid."-".$infotype.".html";

$fields['nativeplace'] .= "<a href='{$rwnativeplace}'>{$em}</a>\r\n";

}

else

{

$fields['nativeplace'] .= " <a href='{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$eid}&infotype={$infotype}'>{$em}</a>\r\n";

}

          }

      }

    }

    //小分类链接

    if(empty($infotype) || is_array($smalltypes))

    {

        

        foreach($em_infotypes as $eid=>$em)

        {

            if(!is_array($smalltypes) && $eid % 500 != 0) continue;

            if(is_array($smalltypes) && !in_array($eid, $smalltypes)) continue;

            if($eid == $infotype) 

            {

                $fields['infotype'] .= " <b>{$em}</b>\r\n";

            }

            else {

//伪静态

if($cfg_rewrite == 'Y')

{

$rwinfotype = "/category/list-".$channelid."-".$typeid."-".$eid."-".$nativeplace.".html";

$fields['infotype'] .= " <a href='{$rwinfotype}'>{$em}</a>\r\n";

}

else

{

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wsfgjz.html