织梦cmsdedecms织梦cms标准图集在主页目录页启用而
时间: 2021-02-24 06:46
浏览次数:
不变动官方网关键文档,在自定方式文档中放入个方式来完成 开启 \include\extend.func.php 在最下边添加这一方式 function Getimgurls($aid,$num=4) { global $dsql; $imgurls = $result = ; $imgrow = $dsql-GetOne(
不变动官方网关键文档,在自定方式文档中放入个方式来完成 开启 \include\extend.func.php 在最下边添加这一方式 function Getimgurls($aid,$num=4) { global $dsql; $imgurls = $result = ; $imgrow = $dsql-GetOne( Select imgurls From `dede_addonimages...
不变动官方网关键文档,在自定方式文档中放入个方式来完成
开启 \include\extend.func.php 在最下边添加这一方式
function Getimgurls($aid,$num=4)
global $dsql;
$imgurls = $result =
$imgrow = $dsql- GetOne( Select imgurls From `dede_addonimages` where aid= $aid
$imgurls = $imgrow[ imgurls
if($imgurls != )
{
$dtp = new DedeTagParse();
$dtp- LoadSource($imgurls);
$images = array();
if(is_array($dtp- CTags))
{
foreach($dtp- CTags as $ctag)
{
if($ctag- GetName() == img )
{
$row = array();
$row[ width ] = $ctag- GetAtt( width
$row[ height ] = $ctag- GetAtt( height
$row[ imgsrc ] = trim($ctag- GetInnerText());
$row[ text ] = $ctag- GetAtt( text
$images[] = $row;
}
}
}
$dtp- Clear();
$i = 0;
foreach($images as $row)
{
if($i == $num) break;
if($row[ imgsrc ] != )
{
$result .= li div >
dedecms模版,dedecms公司模版,dedecms新闻资讯模版,高档HTML5响应式模版,dedecms手机上模版,织梦cms模版实例教程,网站模版,网页页面模版,完全免费网页页面模版