首页 > 其他 > 详细

织梦内页读取栏目banner图

时间:2015-11-28 18:27:35      阅读:499      评论:0      收藏:0      [点我收藏+]

<img src="
{dede:field name=‘typeid‘ runphp=‘yes‘}
global $dsql;
$typeid = @me;
$query = ‘SELECT topid,typename FROM na_arctype where id = $typeid‘;
$rs = $dsql->GetOne($query);
$topid = $rs[‘topid‘];
$typename1 = ‘/aiweini/uploads/151128/1-15112Q04645W3.jpg‘;
$query2 = ‘SELECT * FROM na_arctype where id = $topid‘;
$row = $dsql->GetOne($query2);
$typename = $row[‘litpic‘];
if($typename==‘‘||$typename==null){
@me= $typename1;
}else{
@me= $typename;
}
{/dede:field}" style=‘max-height:379px;max-width:1024px‘/>

织梦内页读取栏目banner图

原文:http://www.cnblogs.com/lvchenfeng/p/5003070.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!