不顯示管理員頁面 那個大神指導一下
G
G 2020-03-27 16:53:55
0
0
1144

<?phpnamespace app\admin\controller;use app\admin\common\Base;use think\Request;use app\admin\model\Admin as AdminModel;class Admin extends Base{    //顯示管理員首頁   public  function index()    {        //1.讀取admin管理員表的資訊       $admin = AdminModel::get(['username'=> 'admin']);       賦值給範本       $this -> view -> assign('admin', $admin);        //3.渲染範本       return $this -> view -> flist)(admin_ flist petch; function edit(Request $request)    {        //1.讀取admin管理員表的資訊       $admin = AdminModel::get($request->param('id'));   =   2資訊賦值給範本       $this -> view -> assign('admin', $admin);        //3.渲染範本       return $this -> view -3.渲染範本       return $this -> view -b>更新作業   public function update(Request $request)    {        if ($request -> isAjax(true)){            //// 取得提交的資料,自動過濾空白值param()) ;            //設定更新條件           $map = ['is_update' => $data['is_update']];    $map);            //更新成功的提示訊息           $status = 1;            $message = '更新成功';                  $status = 0;                $message = '更新失敗';            }        }        }    >$status, 'message'=>$message];    }}

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

{include file='public/header' /}

; <span class="layui-breadcrumb"> <a><cite>首頁</cite></a> 會員管理 <a><cite>管理員清單</cite></a> </span> <a class="layui-btnlayui-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">        <thead>        < ID            </th>            <th>               ;/th>;     登入次數           </th>            <th>         /1 9999%>         <th>                操作           </th>        </tr> ;        </thead>        <tbody>        <tr>               </td>            <td>                {$admin. gt;                { $admin.enail}            </td>            <td>                 <td>                {$admin.last_time}</td>            <td class="td-manage">                <a title="編輯" href="itscript:" onclicks); 4','','510')"                   class="ml-5" style="text-decoration:none">            化> </a>; include file=' public/Base_js' /}<script>    layui.use(['laydate','element','laypage','layer'], function(){        $ = layui.jquery;//jquery laydate ;//日期外掛程式       lement = layui.element();//麵包導航       layer = layui.layer;//彈出層       //上使用     ,pages: 100            ,first: 1 ,last: 100            ,prev: '<em><</em>'            ,next: '<em>>);編輯   function admin_edit (title, url,id,w,h) {        x_admin_show(title,url,w,h);    }</script></body></html>

G
G

全部回覆(0)
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!