This commit is contained in:
win10 committed 2020-06-17 08:53:21 +08:00
1 parent 75bd6e57d7
commit a4e9780c3c
69 files changed
+174 -1280

No files matched your search

+2 -6
View File
@@ -71,18 +71,17 @@ class Index extends BaseController
// 获取thinkphp版本
$list->thinkphp = \think\facade\App::version();
// 考试数
$con = new \app\kaoshi\model\Kaoshi;
$list['kaoshi'] = $con->count();
// 教师数
$con = new \app\renshi\model\Teacher;
$con = new \app\teacher\model\Teacher;
$list['teacher'] = $con->count();
// 学生数
$con = new \app\teach\model\Banji;
$tempsrc['ruxuenian'] = array_keys(nianJiNameList());
$bjids = $con->search($tempsrc)->column('id');
$con = new \app\renshi\model\Student;
$con = new \app\student\model\Student;
$list['student'] = $con->where('banji_id', 'in', $bjids)
->count();
// 管理员数
@@ -95,9 +94,6 @@ class Index extends BaseController
$con = new \app\keti\model\KetiInfo;
$list['keti'] = $con->count();
$view = app('view');
// 模版赋值
$view->assign('list',$list);