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

时间:2023-12-29 13:44:02
<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 />