标签名:
{fun gettrainer $list ""}
引号中参数:
参数名称 |
描述 |
调用数量 |
选填。默认为10(0:不限) |
姓名字数 |
选填。默认为0(0:截取后字数为0) |
是否审核 |
选填。默认为0(0:不限,1:审核) |
是否推荐 |
选填。默认为0(0:不限,1:推荐) |
必须照片 |
选填。默认为0(0:不限,1:必须有照片) |
照片宽度 |
选填。默认为60 |
照片高度 |
选填。默认为80 |
机构会员ID |
选填。默认为0(0:不限) |
机构会员是否审核 |
选填。默认为0(0:不限,1:审核) |
机构会员是否推荐 |
选填。默认为0(0:不限,1:推荐) |
排序方式 |
选填。默认为`t_adddate` DESC |
打开方式 |
选填。默认为空(_self:原窗口,_blank:新窗口) |
记录集偏移 |
选填。默认为0 |
数据说明:
字段 |
描述 |
url |
链接地址 |
t_name |
培训师姓名 |
name |
截取后培训师姓名 |
t_photo |
照片 |
pic_w |
图片宽度 |
pic_h |
图片高度 |
target |
打开方式 |
t_sex |
性别 |
t_birth |
生日 |
t_nation |
民族 |
t_province |
籍贯 |
t_edu |
学历 |
t_school |
毕业院校 |
t_mainprofession |
主要专业 |
t_jobtitle |
职称 |
t_position |
职位 |
t_introduce |
介绍 |
t_address |
地址 |
t_post |
邮编 |
t_tel |
电话 |
t_fax |
传真 |
t_email |
邮件 |
t_adddate |
添加时间 |
范例:
{fun gettrainer $list '7','3','1','0','1','117','125','0','1','0','t_adddate asc','_self','0'}
<!--{foreach from=$itemlist item=rs}-->
<div class="t_share4">
<a href="{$rs.url}" {$rs.target} class="pic"><img src="{$rs.t_photo}" width="{$rs.pic_w}" height="{$rs.pic_h}" /></a>
<p><a href="{$rs.url}" {$rs.target}>{$rs.t_name}</a></p>
</div>
<!--{/foreach}-->
输出后:
<div class="t_share4">
<a href="/co/trainer.php?id=1" target="_self" class="pic"><img src="/upfiles/attachments/file/20140124/20140124172712_968.jpg" width="100" height="120" /></a>
<p><a href="/co/trainer.php?id=1" target="_self">佩佩</a></p>
</div>
<div class="t_share4">
<a href="/co/trainer.php?id=2" target="_self" class="pic"><img src="/upfiles/attachments/file/20140125/20140125090024_821.jpg" width="100" height="120" /></a>
<p><a href="/co/trainer.php?id=2" target="_self">娜娜</a></p>
</div>
………………