久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動:電腦PC端+手機(jī)端+微網(wǎng)站+自適應(yīng)網(wǎng)頁多模板選擇-建站388元起價!!!
當(dāng)前位置:主頁 > 網(wǎng)站建設(shè) > dedecms 織夢5.7 圖集實(shí)現(xiàn)分頁功能,織夢技術(shù)

dedecms 織夢5.7 圖集實(shí)現(xiàn)分頁功能,織夢技術(shù)

時間:2023-07-19 13:07:19 閱讀: 文章分類: 網(wǎng)站建設(shè) 作者: 織夢網(wǎng)站員

導(dǎo)讀:織夢技術(shù)織夢技術(shù)第一步: 在圖集模板里加入分頁代碼:{dede:pagebreak/} 第二步: 打開arc_archives_class.php,在include目錄下,在結(jié)織夢模板網(wǎng)站dede模板安裝。

織夢模板網(wǎng)站dede模板安裝第一步:在圖集模板里加入分頁代碼:{dede:pagebreak/} 第二步:打開arc_archives_class.php,在include目錄下,在結(jié)尾處加上以下代碼: /** * 獲得動態(tài)頁面圖集中圖片縮略列表 * * @access public * @param int $totalPage 總頁數(shù) * @param int $nowPage 當(dāng)前頁數(shù) * @param int $aid 文檔id * @return string */ function GetlitpicDM_list($totalPage,$nowPage,$aid) { global $dsql,$sqlCt; $attlist="desclen|80"; FillAttsDefault($ctag->CAttribute->Items,$attlist); extract($ctag->CAttribute->Items, EXTR_SKIP); if(!isset($this->addTableRow['imgurls'])) return ; $revalue = ''; $dtp = new DedeTagParse(); $dtp->LoadSource($this->addTableRow['imgurls']); $images = array(); if(is_array($dtp->CTags)) { $pagenum=1; foreach($dtp->CTags as $ctag1) { if($ctag1->GetName()=="img") { $litpic.='<LI> <DIV class=img><A title="'. $ctag1->GetAtt('text').'" href="view.php?aid='.$aid.'&pageno='.$pagenum.'"><IMG style="BACKGROUND-IMAGE: url('.$ctag1->GetAtt('ddimg').')" src="'.$GLOBALS['cfg_templets_skin'].'/tukustyle/blankBg.gif" ></A></DIV><A href="view.php?aid='.$aid.'&pageno='.$pagenum.'">'.substr($ctag1->GetAtt('text'), 30).'</A> </LI>'; $pagenum++; } } } return $litpic; } /** * 獲得靜態(tài)頁面圖集中圖片縮略列表 * * @access public * @param int $totalPage 總頁數(shù) * @param int $nowPage 當(dāng)前頁數(shù) * @param int $aid 文檔id * @return string */ function Getlitpic_list($totalPage,$nowPage,$aid) { global $dsql,$sqlCt; $attlist="desclen|80"; FillAttsDefault($ctag->CAttribute->Items,$attlist); extract($ctag->CAttribute->Items, EXTR_SKIP); if(!isset($this->addTableRow['imgurls'])) return ; $revalue = ''; $dtp = new DedeTagParse(); $dtp->LoadSource($this->addTableRow['織夢模板;imgurls']); $images = array(); if(is_array($dtp->CTags)) { $pagenum=1; foreach($dtp->CTags as $ctag1) { if($ctag1->GetName()=="img") { if($pagenum==1) { $litpic.='<LI> <DIV class=img><A title="'. $ctag1->GetAtt('text').'" href="'.$this->NameFirst.'.'.$this->ShortName.'"><IMG style="BACKGROUND-IMAGE: url('.$ctag1->GetAtt('ddimg').')" src="'.$GLOBALS['cfg_templets_skin'].'/tukustyle/blankBg.gif" ></A></DIV><A href="'.$this->NameFirst.'_'.$pagenum.'.'.$this->ShortName.'">'.substr($ctag1->GetAtt('text'),0,30).'</A> </LI>'; } else { $litpdede下瓻模板下載ic.='<LI> <DIV class=img><A title="'. $ctag1->GetAtt('text').'" href="'.$this->NameFirst.'_'.$pagenum.'.'.$this->ShortName.'"><IMG style="BACKGROUND-IMAGE: url('.$ctag1->GetAtt('ddimg').')" src="'.$GLOBALS['cfg_templets_skin'].'/tukustyle/blankBg.gif" >織夢后臺模板;</A></DIV><A href="'.$this->NameFirst.'_'.$pagenum.'.'.$this->ShortName.'">'.substr($ctag1->GetAtt('text'),0,30).'</A> </LI>'; } $pagenum++; } } } return $litpic; }相關(guān)織夢模板網(wǎng)站dede模板安裝。

關(guān)鍵詞標(biāo)簽: 織夢 分頁 圖集

聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-07-19 ,文章dedecms 織夢5.7 圖集實(shí)現(xiàn)分頁功能,織夢技術(shù)主要講述分頁,圖集,織夢網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請保留鏈接: http://www.bifwcx.com/article/web_31167.html

我的IDC 網(wǎng)站建設(shè)技術(shù)SEOUC.COM
專注網(wǎng)站建設(shè),SEO優(yōu)化,小程序設(shè)計制作搭建開發(fā)定制網(wǎng)站等,數(shù)千家網(wǎng)站定制開發(fā)案例,網(wǎng)站推廣技術(shù)服務(wù)。
  • 5000+合作客服
  • 8年從業(yè)經(jīng)驗(yàn)
  • 150+覆蓋行業(yè)
  • 最新熱門源碼技術(shù)文章

    主站蜘蛛池模板: 成都市| 东乌珠穆沁旗| 襄城县| 遵义市| 虎林市| 鄄城县| 涿州市| 赤城县| 疏附县| 油尖旺区| 沛县| 安新县| 阳信县| 和田县| 周口市| 巴彦县| 三原县| 南通市| 南川市| 芮城县| 六盘水市| 常州市| 虹口区| 大竹县| 巴林左旗| 应城市| 泸州市| 盐边县| 莱芜市| 大姚县| 肃南| 台湾省| 渭源县| 张掖市| 手游| 奈曼旗| 卓尼县| 枣阳市| 嘉定区| 怀集县| 临泉县|