标签:lod cer dex pos post for article obj xpl
<php> $tag="field:post_title,post_date,post_keywords,object_id,term_id,post_source,post_excerpt,smeta,post_content;order:post_date desc;where:post_keywords not like ‘%出租%‘ and post_title like ‘%最新开盘%‘ and post_keywords not like ‘%出售%‘"; $listczfy=sp_sql_posts_paged_bycatid(55,$tag,6); $czfy = $listczfy[‘posts‘]; </php> <foreach name="czfy" item="vczfy"> <php> $smeta=json_decode($vczfy[‘smeta‘],true); </php> <div class="cz_fy"> <a target="_blank" href="{:leuu(‘article/index‘,array(‘id‘=>$vczfy[‘object_id‘],‘cid‘=>$vczfy[‘term_id‘]))}"><img src="__ROOT__/data/upload/{$smeta.thumb}"/></a> <div class="cz_fy_yh">优惠: <empty name="post_kwd">//要用post_kwd,不要加$符号 暂无,请致电面议 <else /> <php> $post_keywords=explode(‘|‘,$vczfy[post_keywords]); echo mb_substr($post_keywords[2], 0, 12, ‘utf-8‘); </php> </empty> </div> </div> </foreach>
标签:lod cer dex pos post for article obj xpl
原文地址:http://www.cnblogs.com/cuizhenyu/p/6768475.html