...
|
...
|
@@ -5,6 +5,7 @@ namespace app\admin\controller; |
|
|
use app\admin\model\AdminLog;
|
|
|
use app\common\controller\Backend;
|
|
|
use think\Config;
|
|
|
use think\Db;
|
|
|
use think\Hook;
|
|
|
use think\Validate;
|
|
|
|
...
|
...
|
@@ -31,12 +32,17 @@ class Index extends Backend |
|
|
*/
|
|
|
public function index()
|
|
|
{
|
|
|
//查出所有待审核老师的个数
|
|
|
$data = Db::name('teacher')
|
|
|
->where('status',0)
|
|
|
->count();
|
|
|
//左侧菜单
|
|
|
list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([
|
|
|
'dashboard' => 'hot',
|
|
|
'addon' => ['new', 'red', 'badge'],
|
|
|
'auth/rule' => __('Menu'),
|
|
|
'general' => ['new', 'purple'],
|
|
|
'teacher' =>[$data,'red']
|
|
|
], $this->view->site['fixedpage']);
|
|
|
$action = $this->request->request('action');
|
|
|
if ($this->request->isPost()) {
|
...
|
...
|
|