Destoon多表联合调用

2017-05-02 admin 22
<!--{php $tags=tag("prefix=&table=destoon_news a,destoon_company b,destoon_news_data c&condition=status=3&fields=a.linkurl as comurl,b.linkurl as nurl&length=32&areaid=$cityid&order=addtime desc&pagesize=5&target=_blank&template=null", -1);}-->
      {loop $tags $t}
      <li>
          日期:[{date('Y-m-d',$t[addtime])}]<br />
          公司形象:<img src="{imgurl($t[thumb])}" width="67px" height="59px" alt="{$t[alt]}" /><br />
           公司名:{$t[nurl]}<br />
           公司地址:{$t[linkurl]}<br />
                公司新闻:{$t[title]}<br />
                内容截取:{dsubstr($t[content], 80, '...')}<br />
                新闻地址:{$t[comurl]}<br />

          </li>
      {/loop}