会员列表调用,分享!
1 会员所有名字列表[ecmsinfo]'select username as title from phome_enewsmember ',10,18,0,24,18,0[/ecmsinfo]
2 会员中企业会员名字列表[ecmsinfo]'select username as title from phome_enewsmember where groupid=4',10,18,0,24,18,0[/ecmsinfo]
3 企业会员企业名称列表 [ecmsinfo]'select company as title from phome_enewsmemberadd ',10,18,0,24,18,0[/ecmsinfo]
[ecmsinfo]栏目ID/专题ID,显示条数,标题截取数,是否显示栏目名,操作类型,模板ID,只显示有标题图片[/ecmsinfo]
对照看 其中语句中username as title 表示将数据库表的username 换成帝国的模型变量列表里的名字,写模板的时候 [!--title--] 表示名称
好在模型变量里调用,2 中的 groupid=4 后面的4对应你的会员等级,自己用鼠标放到后台会员组的一组,看连接地址就知道了
1 会员所有名字列表[ecmsinfo]'select username as title from phome_enewsmember ',10,18,0,24,18,0[/ecmsinfo]
2 会员中企业会员名字列表[ecmsinfo]'select username as title from phome_enewsmember where groupid=4',10,18,0,24,18,0[/ecmsinfo]
3 企业会员企业名称列表 [ecmsinfo]'select company as title from phome_enewsmemberadd ',10,18,0,24,18,0[/ecmsinfo]
[ecmsinfo]栏目ID/专题ID,显示条数,标题截取数,是否显示栏目名,操作类型,模板ID,只显示有标题图片[/ecmsinfo]
对照看 其中语句中username as title 表示将数据库表的username 换成帝国的模型变量列表里的名字,写模板的时候 [!--title--] 表示名称
好在模型变量里调用,2 中的 groupid=4 后面的4对应你的会员等级,自己用鼠标放到后台会员组的一组,看连接地址就知道了