帐号信息和教师信息查看完成
This commit is contained in:
1 parent
d431dd1047
commit
495921d85e
18 files changed
+427
-319
No files matched your search
@@ -132,9 +132,11 @@ class Index extends Base
|
||||
// 读取用户信息
|
||||
public function read($id)
|
||||
{
|
||||
|
||||
// 获取管理员信息
|
||||
$list = AD::where('id',$id)->find();
|
||||
$list = AD::where('id',$id)
|
||||
->field('id,xingming,sex,shengri,username,school,phone,denglucishu,lastip,ip,lasttime,thistime,create_time,update_time')
|
||||
->find();
|
||||
$list['webtitle'] = '帐号信息';
|
||||
|
||||
// 模板赋值
|
||||
$this->assign('list',$list);
|
||||
@@ -143,6 +145,25 @@ class Index extends Base
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
|
||||
// 读取用户信息
|
||||
public function myinfo()
|
||||
{
|
||||
$id = session('userid');
|
||||
// 获取管理员信息
|
||||
$list = AD::where('id',$id)
|
||||
->field('id,xingming,sex,shengri,username,school,phone,denglucishu,lastip,ip,lasttime,thistime,create_time,update_time')
|
||||
->find();
|
||||
$list['webtitle'] = '我的信息';
|
||||
|
||||
// 模板赋值
|
||||
$this->assign('list',$list);
|
||||
|
||||
|
||||
// 渲染模板
|
||||
return $this->fetch('read');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user