織夢(mèng)Dedecms聯(lián)動(dòng)方式二級(jí)變一級(jí)的方法_DedeCms教程
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!
以下代碼都注掉
- /*
- $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>";
- }
- }
僅供大家學(xué)習(xí)參考,希望對(duì)大家有幫助
查看更多 DedeCms教程 織夢(mèng)模板 織夢(mèng)DedeCms視頻教程 織夢(mèng)dedecms專題
相關(guān)DedeCms教程:
- 織夢(mèng)Cms防黑客攻擊必須要做的幾件事!
- 織夢(mèng)DedeCMS模板及系統(tǒng)程序編碼轉(zhuǎn)換的方法
- 織夢(mèng)dedecms如何讓內(nèi)容頁(yè)顯示不同的內(nèi)容,但是每次更新都不變
- 織夢(mèng)DedeCMS網(wǎng)站服務(wù)器搬家詳細(xì)教程
- 織夢(mèng)dedecms列表頁(yè)標(biāo)題顯示分頁(yè)的頁(yè)數(shù),有利于seo優(yōu)化
- Dedecms列表頁(yè)標(biāo)簽list/pagelist使用方法及pagelist的樣式
- 織夢(mèng)DedeCMS如何讓文章列表實(shí)現(xiàn)“隔行換色”
- 修改織夢(mèng)dedecms的Artlist標(biāo)簽去掉table
- DEDECMS打開網(wǎng)站后臺(tái)系統(tǒng)首頁(yè)卡解決方法
- 織夢(mèng)DEDECMS網(wǎng)站內(nèi)容頁(yè)、欄目頁(yè)獲取當(dāng)前頂級(jí)欄目名稱標(biāo)簽
- Dedecms實(shí)現(xiàn)鍵盤方向鍵翻頁(yè)效果教程
- DEDECMS附件按月保存,修改DEDE附件不按天保存
DedeCms教程教程Rss訂閱Cms教程搜索
DedeCms教程推薦
- 織夢(mèng)Dedecms聯(lián)動(dòng)方式二級(jí)變一級(jí)的方法
- DedeCms教程:Windows Server 2012 搭建PHP+MySQL環(huán)境安裝DedeCMS系統(tǒng)
- DEDECMS列表偽靜態(tài)修改
- DedeCms V3內(nèi)置采集系統(tǒng)使用指南
- 點(diǎn)擊作者姓名可以進(jìn)入作者空間,支持V5.01
- 織夢(mèng)CMS調(diào)用欄目的地址(非標(biāo)簽調(diào)用)
- 網(wǎng)易財(cái)經(jīng)頻道-財(cái)經(jīng)要聞 的采集點(diǎn)分享
- 活用宏標(biāo)記實(shí)現(xiàn)定時(shí)更換你的Banner
- 關(guān)于dedecms非官方站點(diǎn)
- dede5.0 標(biāo)題長(zhǎng)度突破80字節(jié)方法!
猜你也喜歡看這些
- 簡(jiǎn)潔大氣響應(yīng)式網(wǎng)絡(luò)工作室織夢(mèng)模板
- 咖啡奶茶餐飲類企業(yè)招商加盟網(wǎng)站模板(自適應(yīng)手機(jī)端)
- 織夢(mèng)那片海網(wǎng)絡(luò)工作室公司模板2012版(模板無(wú)憂獨(dú)家發(fā)布)
- dedecms(織夢(mèng))html5通用手機(jī)網(wǎng)站-WAP網(wǎng)站模板
- 電器維修織夢(mèng)DEDE模板_電器公司網(wǎng)站模板
- dedecms科技評(píng)論-新聞自媒體模板(自適應(yīng)+手機(jī)版)
- dedecms物流企業(yè)網(wǎng)站模板(適合快遞、物流與貨運(yùn)企業(yè)使用)
- 織夢(mèng)dede通用企業(yè)模板/企業(yè)公司網(wǎng)站 帶后臺(tái)數(shù)據(jù)
- dedecms英文企業(yè)模板(適合外貿(mào),國(guó)外企業(yè)模板)
- 維康網(wǎng)最新版網(wǎng)頁(yè)模版下載
- 相關(guān)鏈接:
復(fù)制本頁(yè)鏈接| 搜索織夢(mèng)Dedecms聯(lián)動(dòng)方式二級(jí)變一級(jí)的方法| DedeCms模板| Dede模板| 織夢(mèng)模板| dedecms
- 教程說明:
DedeCms教程-織夢(mèng)Dedecms聯(lián)動(dòng)方式二級(jí)變一級(jí)的方法。