帝国cms扩展ewapeloop标签支持更多其他内容的调用

admin 2024年1月19日13:51:11帝国cms技巧评论1,262 次浏览阅读模式

内容摘要

摘要: 扩展ewap_eloop标签支持更多其他内容的调用,如用此标签获取子栏目。ewap_eloop标签是WAP的专用标签,扩展后支持任何数据的调用。打开文件 wapfun.php,找到206行的 ewap_ReturnB

文章正文

扩展ewap_eloop标签支持更多其他内容的调用,如用此标签获取子栏目。ewap_eloop标签是WAP的专用标签,扩展后支持任何数据的调用。打开文件 wapfun.php,找到206行的 ewap_ReturnBqQuery,在此函数的226行开始加上如下代码: 

if($enews==100)//栏目        {                if($line >0){                        $limit = "limit 0,$line";                        }                if(ifmod($classid)){                        $sonclass = str_replace("|", ",", $emod_r[$classid][sonclass]);                        $sonclass = substr($sonclass, 1,-1);                        if($sonclass){                                $sonclass = "classid in ($sonclass)";                        }                }else{                        $sonclass = ReturnClass($class_r[$classid][sonclass]);                        if($classids){                                $sonclass = "classid in ($classids)";                        }                }                $sonsql=$empire->query("select * from {$dbtbpre}enewsclass where $sonclass order by myorder $limit");                return $sonsql;        }

ewap_eloop标签的操作类型为100的时候就能调出子栏目。

代码注释

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2024年1月19日13:51:11
  • 转载请务必保留本文链接:https://anyun.org/a/webtips/ecmstips/2024/0119/17686.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: