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

主頁(yè) > 網(wǎng)站建設(shè) > 建站知識(shí) > 織夢(mèng)cms聯(lián)動(dòng)兩級(jí)變一級(jí)的辦法

織夢(mèng)cms聯(lián)動(dòng)兩級(jí)變一級(jí)的辦法

POST TIME:2020-03-28 19:02

織夢(mèng)模板的聯(lián)動(dòng)類(lèi)型兩級(jí)可以變一級(jí)的,相信大家都很需要吧,現(xiàn)在就來(lái)說(shuō)一下如何修改文件,找到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> ";

下級(jí)顯示不顯示
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>";
}
}



收縮
  • 微信客服
  • 微信二維碼
  • 電話(huà)咨詢(xún)

  • 400-1100-266
主站蜘蛛池模板: 阳朔县| 随州市| 焦作市| 万州区| 长寿区| 赤峰市| 康平县| 临猗县| 铜川市| 银川市| 北碚区| 固安县| 友谊县| 门头沟区| 房山区| 光泽县| 西青区| 怀仁县| 湄潭县| 囊谦县| 宜兰市| 礼泉县| 长寿区| 正镶白旗| 当涂县| 即墨市| 睢宁县| 巩义市| 秀山| 庆安县| 东乡族自治县| 隆林| 嫩江县| 自治县| 会同县| 吴川市| 天津市| 酉阳| 色达县| 白山市| 绥中县|