帝国CMS添加腾讯图片展示功能建站知识
导读:1建站知识帝国CMS模板网下面的帝国CMS教程栏目为您提供了帝国CMS添加腾讯图片展示功能个业网站建设公司seo网站优化。
1.修改eclasst_functions.php 添加以下红色代码//图库模型分页标签function sys_PhotoMorepage($tempid,$spicwidth=0,$spicheight=0){global $navinfor;$morepic=$navinfor['morepic'];if(empty($morepic)){ return "";}//取得标签$tempr=sys_ReturnBqTemp($tempid);if(empty($tempr['tempid'])){return "";}$rexp="rn";$fexp="::::::";$gs="";if($spicwidth){$gs=" width='".$spicwidth."'";}if($spicheight){$gs.=" height='".$spicheight."'";}$rstr="";$sdh="";$firstpic="";$optionstr="";$titleoption="";$listpage="";$nbsp="";$rr=explode($rexp,$morepic);$count=count($rr);//自加$pictitleabout="";$rstrb="";//for($i=0;$i<$count;$i++){ $j=$i+1; $fr=explode($fexp,$rr[$i]); $smallpic=$fr[0]; //小图 $bigpic=$fr[1]; //大图 if(empty($bigpic)) { $bigpic=$smallpic; } $picname=htmlspecialchars($fr[2]); //名称 $showpic=ReplaceMorePagelistvar($tempr['listvar'],$picname,$bigpic); $sdh.=$nbsp."<a href='#ecms' onclick='GotoPhPage(".$j.");' title='".$pic|name."'><img src='".$smallpic."' alt='".$picname."' border=0".$gs."></a>"; if($i==0) { $firstpic=$showpic; } $rstr.="photosr[".$j."]="".addslashes($showpic).""; "; $optionstr.="<option value=".$j.">第 ".$j." 页</option>"; $titleoption.="<option value=".$j.">".$j."、".$picname."</option>"; $listpage.=$nbsp."<a href='#ecms' onclick='GotoPhPage(".$j.");' title='".$picname."'>".$j."</a>"; $nbsp=" "; //自加 $pictitleabout.="arrUrlName[".$i."]="".addslashes($picname)."";"; $rstrb.="arrUrl[".$i."]="".addslashes($网站建设教程showpic)."";"; // }echo ReplaceMorePagetemp($tempr['temptext'],$rstr,$sdh,$optionstr,$titleoption,$firstpic,$listpage,$pictitleabout,$rstrb);}//替换图片集分页模板function ReplaceMorePagetemp($temp,$rstr,$sdh,$select,$titleselect,$showpic,
$listpage,$pictitleabout,$rstrb){$temp=str_replace("[!--photor--]",$rstr,$temp);$temp=str_replace("[!--smalldh--]",$sdh,$temp);$temp=str_replace("[!--select--]",$select,$temp);$temp=str_replace("[!--titleselect--]",$titleselect,$temp);$temp=str_replace("[!--listpage--]",$listpage,$temp);$temp=str_replace("<!--list.var1-->",$showpic,$temp);//自加$temp=str_replace("[!--pictitleabout--]",$pictitleabout,$temp);$temp=str_replace("[!--UrlName--]",$rstrb,$temp);//return $temp;}
2.到后台模板管理-标签模板里添加一个标签模板页面模板内容(*)<script language="javascript" type="text/javascript" src="/JS/Common.js"></script><style>img{ border:0; display:inline-block; }.float_left{float:left}.float_right{float:right}.showpic_ex{width:580px; background:#F4F4F4;}.photo_bar{padding:0 10px;height:35px;background:#EBEBEB}.photo_bar dd{float:left;margin:5px}.photo_bar dt{float:right;margin:5px}#imgBox{text-align:center;padding:15px 0}#photolist{height:80px;clear:both;background:#EBEBEB}#photolist .kz{margin:10px 0;}#photolist .list li{margin:5px 10px;float:left;height:70px;width:70px}</style><div class="showpic_ex"><dl class="photo_bar"> <dd><a href="javascript:SlidePlay();" id="play_pic"><img src="/Skin/Tag
声明: 本文由我的SEOUC技术文章主页发布于:2023-05-22 ,文章帝国CMS添加腾讯图片展示功能建站知识主要讲述腾讯,帝国,CMS网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_4958.html