<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                <?php namespace app\admin\Controller; use think\Db; use think\Request; use think\controller; use app\admin\Model\Cate as CateModel; Class Cate extends Controller{ /** * function add 添加欄目 * function edit 傳入id修改 * function index 顯示列表 * function del 刪除欄目 */ public function add() { $cate = new CateModel(); if (Request::instance()->isPost()) { $data = input('post.'); $add = $cate->save($data); if ($add) { $this->success('增加欄目成功', 'cate/index'); } else { $this->error('增加欄目失敗'); } } $cateList = $cate->cateTree(); $this->assign('cate', $cateList); return view(); } public function edit($id) { $cate = new CateModel(); if(request()->isPost()){ $data=input('post.'); $save = $cate->where('id', $data['id'])->save( $data); if ($save !== false){ $this->success('修改欄目成功!', url('index')); } else{ $this->error('修改欄目失敗!'); } return; } //變量輸出 $cates = $cate->find(input('id')); $cateList = $cate->cateTree(); $this->assign( array( 'caterList' =>$cateList, //欄目option 'cates' =>$cates, //欄目信息 )); return view(); } public function index() { $cate = new CateModel(); $cateList = $cate->cateTree(); $this->assign('cate', $cateList); return view(); } public function del($id) { $del=db('cate')->delete($id); if($del) { $this->success('刪除欄目成功!',url('index')); } else { $this->error('刪除欄目失敗!'); } } }
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看