The administrator page is not displayed. Can someone please guide me?
G
G 2020-03-27 16:53:55
0
0
1199

<?phpnamespace app\admin\controller;use app\admin\common\Base;use think\Request;use app\admin\model\Admin as AdminModel;class Admin extends Base{ //Show administrator homepage public function index() { //1. Read the information of the admin administrator table $admin = AdminModel::get(['username'=> 'admin']); //2. Assign the current administrator's information to Template $this -> view -> assign('admin', $admin); //3. Render template return $this -> view -> fetch('admin_list'); } //Render edit template public function edit(Request $request) {                                                                                                         using Information is assigned to the template $this -> view -> assign('admin', $admin); //3. Render the template return $this -> view -> fetch('admin_edit'); } //Execute Update operation: public function update(Request $request) { ; ; Prompt message $status = 1; $message = 'Update successful'; //If the update fails if (is_null($res)) { $status = 0; message = 'Update failed';                                                                                                        return ['status'= >$status, 'message'=>$message]; }}

! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

{include file='public/header' /}<body><div class="x-nav">            <span class="layui-breadcrumb">              <a><cite>首页</cite></a>              <a><cite>会员管理</cite></a>              <a><cite>管理员列表</cite></a>            </span>    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"  href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon" style="line-height:30px">ဂ</i></a></div><div class="x-body"> <table class="layui-table"> ; ;/th>                                                                                                                                                                                                                                          Login Time                                                tr> ;                      </tbody>                                                                  $admin.enail}                                                                                                                                                                                                   {$admin.last_time}</td>                                                      4','','510')"                           class="ml-5" style="text-decoration:none">                                                                                       </a>                                                               public/Base_js' /}<script> layui.use(['laydate','element','laypage','layer'], function(){ $ = layui.jquery;//jquery laydate = layui.laydate ; // Date plug -in lement = layui.element (); // Bread navigation layer = layui.layer; // pop -up layer // The above module introduces laypage as required ({cont: 'page', pages: 100, first: 1: 1 ,last: 100 ,prev: '<em><</em>' ,next: '<em>></em>' , }); , }); //Edit function admin_edit (title, url,id,w,h) { x_admin_show(title,url,w,h); }</script></body></html>

G
G

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template