dede模板直接读取上传附件图片代码 按照id获取
2020-03-02 17:14
{dede:php}
global $dsql;
$currfield = $refObj->Fields;
$sql='Select url From `dede_uploads` where title = "channel_banner_'.$currfield['id'].'" limit 1 ';
$aaa = $dsql->GetOne($sql);
echo "<div style='background-position: center center;background-repeat: no-repeat;background-size: cover;background-image: url( ".$aaa['url'].");' class='fixed-parallax parallax-fullwidth'> </div>";
{/dede:php}
【责任编辑:小戴工程师】
上一篇:dede模板写php读取数据 下一篇:swiper视频+图片 响应式代码demo 自动判断动画时间最新文章
2020-03-02 17:14
相关文章
2020-03-02 17:14