公司主页调用同行业企业的方法

来源: https://destoon.cc/ 日期: 2019-03-01 22:13:22 人气: - 评论: 0

以下是调用代码,可以调出和当前公司选择一样行业的公司随机推荐。

<!--{php $tags=tag("moduleid=4&condition=groupid>5 and catid like '%".$COM[catid]."%' and username!='$username'&pagesize=10&order=fromtime desc&template=null");}-->
<table cellpadding="0" cellspacing="0" width="100%">
{loop $tags $i $t}
{if $i%5==0}<tr align="center">{/if} 
<td valign="top" width="20%" height="180">
<div class="thumb""this.className='thumb thumb_on';""this.className='thumb';">
<a href="{$t[linkurl]}"><img src="{imgurl($t[thumb])}" width="100" height="100" alt="{$t[company]}"/></a>
<div><a href="{$t[linkurl]}" title="{$t[alt]}">{$t[company]}</a></div>
</div>
</td>
{if $i%5==4}</tr>{/if}
{/loop}
</table>
</div>