phpcms首页商机的调用,多种方式

<hr />
{pc:get sql="select * from phpcms_yp_buy" order="updatetime DESC"}
{loop $data $r}
[{if $r['tid'] == 1}询价{elseif $r['tid'] == 2}报价{elseif $r['tid'] == 3}转让{elseif $r['tid'] == 4}促销{elseif $r['tid'] == 5}合作{/if}] <a href="{$r[url]}" title="{$r[title]}">{$r[title]}</a><br />
{/loop}
{/pc}
<hr />
{pc:get sql="select * from phpcms_yp_buy where tid=1" order="updatetime DESC"}
{loop $data $r}
[询价] <a href="{$r[url]}" title="{$r[title]}">{$r[title]}</a><br />
{/loop}
{/pc}
<hr />
{pc:get sql="select * from phpcms_yp_buy where tid=2" order="updatetime DESC"}
{loop $data $r}
[报价] <a href="{$r[url]}" title="{$r[title]}">{$r[title]}</a> [ {get_linkage($r['areaid'],1,' >> ',1)} ] <br />
{/loop}
{/pc}
<hr />
上一篇:创建类模式(一):工厂方法(Factory Method)


下一篇:转 用 AXIOM 促进 XML 处理