直接上代码:
[e:loop={select classid, classname, classpath from `[!db.pre!]enewsclass` where bclassid='$bclassid' order by `classid` desc ,7,24,0}] fetch1(select title,titlepic,smalltext,titleurl,keyboard,groupid,classid,newspath,filename,id from phome_ecms_news where classid = .$bqr[classid]. and titlepic!='' order by newstime desc limit 1); $commbookurl=sys_returnbqtitlelink($commbook); ?>