婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 網站建設 > 建站知識 > Dedecmsv5.7聯動類型兩級變一級的解決方法

Dedecmsv5.7聯動類型兩級變一級的解決方法

POST TIME:2017-12-13 22:49

DEDEcms聯動類別一般都是兩級聯動,怎么把這個兩級的修改成一級的呢?我跟大家分享下現實方法:

1.首先要修改infolink.lib.php
注釋掉一下代碼:

/*
$sontype = ( ($househx % 500 != 0) ? $househx : 0 );
$toptype = ( ($househx % 500 == 0) ? $househx : ( $househx-($membertype%500) ) );
$fields['househx'] = "<a href='{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&househx={$toptype}&nativeplace={$nativeplace}'><b>{$em_househxs[$toptype]}</b></a> ";

下級顯示不顯示
foreach($em_househxs as $eid=>$em)
{
if($eid < $toptype+1 || $eid > $toptype+499) continue;
if($eid == $househx) {
$fields['househx'] .= " <b>{$em}</b>";
}
else {
$fields['househx'] .= " <a href='{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&househx={$eid}&nativeplace={$nativeplace}'>{$em}</a>";
}
}
*/

換成

foreach($em_househxs as $eid=>$em)
{
if($eid % 500 != 0) continue;
if(isset($_GET['househx']))
{
$navclass=$_GET['househx'];
if ($navclass==$eid)
{
$navclass=' style=color:#ff0000';
}
$fields['househx'] .= " <a href='{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&househx={$eid}&nativeplace={$nativeplace}'".$navclass.">{$em}</a>";
}
}

即可!



收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266
主站蜘蛛池模板: 越西县| 习水县| 边坝县| 葫芦岛市| 长子县| 泗水县| 敖汉旗| 竹山县| 那曲县| 石林| 乐安县| 大宁县| 同仁县| 泽普县| 许昌市| 吉首市| 台东市| 新田县| 安乡县| 阿尔山市| 长白| 昌图县| 保德县| 鹤壁市| 海安县| 故城县| 曲阳县| 洛川县| 庄河市| 峡江县| 茂名市| 天镇县| 科技| 霍州市| 盱眙县| 枣强县| 珠海市| 陕西省| 徐汇区| 南川市| 阿合奇县|