hook mod='var'|交友参数钩子

标签名称:hook mod='var'

功能说明:交友参数钩子

适用范围:全局

调用语法:<!--{hook mod='var' type='text/mulit/select/checkbox' item='' value='' name='' text='' maxnum='' trnum='' width='' css=''}-->

标签参数:

参数名 数据类型 是否必须 描述
mod string Yes var
type string Yes text-单个文本,multi-多个文本,select-下拉选框,checkbox-多选框
item string Yes 交友参数名 请查看后台管理->系统设置->其他设置->交友参数,参数名;
value string Yes/No 当前值
name string No select,checkbox选项名称
text string No 提示文字 type='select/checkbox'下有效
maxnum int No 多选数量 type='checkbox'下有效
trnum int No 每行显示个数 type='checkbox' 有效
width string No Table宽度 type='checkbox' 有效
css string No Table样式名 type='checkbox' 有效


标签实例:以当前登录会员($login.info)为例

血型(文本):
<!--{hook mod='var' item='blood' type='text' value=$login.info.blood}-->
兴趣爱好(多文本):
<!--{hook mod='var' item='interest' type='multi' value=$login.info.interest}-->
月薪收入下拉选框:
<!--{hook mod='var' item='salary' type='select' name='salary' text='=请选择=' value=$login.info.salary}-->
喜欢的食物多选:
<!--{hook mod='var' item='food' name='food' type='checkbox' maxnum='5' value=$login.info.food}-->
value,maxnum,trnum,width,css参数可选;

温馨提示:hook里的参数排序位置不分先后