member.class.php中是这样写的,仅调用了member数据表中的字段,如下:
/**
* 会员列表
*/
public function init(){
$of = input('get.of');
$or = input('get.or');
$of = in_array($of, array('userid','username','email','groupid','regip','lastdate','loginnum','experience','amount','point')) ? $of : 'userid';
$or = in_array($or, array('ASC','DESC')) ? $or : 'DESC';
$groupid = 0;
$member_group = get_groupinfo();
$member = D('member');
$total = $member->total();
$page = new page($total, 15);
$data = $member->order("$of $or")->limit($page->limit())->select();
include $this->admin_tpl('member_list');
}
请问怎样调用member_detail表中的字段并显示在会员列表页中?