<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國際加速解決方案。 廣告
                文件路徑: 1. shop/controllers/Seller/Shop/SetshopCtl.php 2. shop/controllers/Seller/Shop/DecorationCtl.php 3. shop/controllers/Seller/Shop/NavCtl.php 4. shop/controllers/Seller/Shop/CatCtl.php 一、店鋪設置 控制器:shop/controllers/Seller/Shop/SetshopCtl.php 模型:shop/models/shop/BaseModel.php 視圖:shop/views/default/Seller/Shop/SetshopCtl/index.php 確認提交表單驗證:`$('#form').validator({})` 修改店鋪信息方法:editShop(); `$flag = $this->shopBaseModel->editBase($shop_id, $edit_shop_row);` 二、店鋪幻燈片 控制器:shop/controllers/Seller/Shop/SetshopCtl.php 模型:shop/models/shop/BaseModel.php 視圖:shop/views/default/Seller/Shop/SetshopCtl/slide.php 確認提交表單驗證:`$('#form').validator({})` 修改店鋪幻燈片方法:editSlide(); `$flag = $this->shopBaseModel->editBase($shop_id, $data);` 三、店鋪模板 控制器:shop/controllers/Seller/Shop/SetshopCtl.php 模型:shop/models/shop/BaseModel.php 視圖:shop/views/default/Seller/Shop/SetshopCtl/theme.php 確認提交表單驗證:`$('#form').validator({})` 修改店鋪模板方法:setShopTemp(); `$flag = $this->shopBaseModel->editBase($shop_id, $data);` 四、店鋪裝修 控制器:shop/controllers/Seller/Shop/DecorationCtl.php 模型:shop/models/shop/BaseModel.php、shop/models/shop/DecorationModel.php 視圖:根據URL獲得參數act的值,判斷視圖 ~~~ $act = request_string("act"); if (empty($act)) { //進入這個頁面創建店鋪裝潢 $shop_decoration_info = $this->shopDecorationModel->getOneByWhere(array('shop_id' => $shop_id)); if (empty($shop_decoration_info)) { //創建默認裝修 $param = array(); $param['decoration_name'] = '默認裝修'; $param['shop_id'] = $shop_id; $decoration_id = $this->shopDecorationModel->addDecoration($param); } else { $decoration_id = $shop_decoration_info['decoration_id']; } $renovation_list = $this->shopBaseModel->getOne($shop_id); } elseif ($act == "set") { $decoration_detail = $this->decorationList(); $this->view->setMet('setdecoration');//視圖 } include $this->view->getView(); ~~~ * shop/views/default/Seller/Shop/DecorationCtl/decoration.php 確認提交表單驗證:`$('#form').validator({})` 修改店鋪模板方法:editRenovation(); `$renovation_list = $this->shopBaseModel->editBase($shop_id, $renovation);` * shop/views/default/Seller/Shop/DecorationCtl/setdecoration.php(URL獲得參數act = set) 店鋪裝修選項 五、店鋪導航 控制器:shop/controllers/Seller/Shop/NavCtl.php 模型:shop/models/shop/NavModel.php 視圖:根據URL獲得參數act的值,判斷視圖 ~~~ $act = request_string('act'); if ($act == 'edit') { $nav_id = request_int('nav_id'); $data = $this->shopNavModel->getNavinfo($nav_id); $this->view->setMet('setNav'); } elseif ($act == 'add') { $this->view->setMet('setNav'); $data = array(); } include $this->view->getView(); ~~~ * shop/views/default/Seller/Shop/NavCtl/nav.php 店鋪表單列表:`$data = $this->shopNavModel->getNavlist($shop_id, array(), $page, $rows);` 模型:shop/models/shop/NavModel.php 方法:nav() * shop/views/default/Seller/Shop/NavCtl/setNav.php 確認提交表單驗證:`$('#form').validator({})` 編輯、添加、刪除導航:editNav()、addNav()、delNav() 編輯:`$flag = $this->shopNavModel->editNav($nav_id, $nav);` 添加:`$flag = $this->shopNavModel->addNav($nav);` 刪除:`$flag = $this->shopNavModel->removeNav($nav_id);` 六、店鋪分類 控制器:shop/controllers/Seller/Shop/CatCtl.php 模型:shop/models/shop/GoodCatModel.php 視圖:根據URL獲得參數act的值,判斷視圖 ~~~ $act = request_string('act'); if ($act == 'edit') { $pid = request_int('pid'); $cond_row['id'] = $pid; $data = $this->shopGoodCatModel->getOne($pid); $this->view->setMet('setCat'); } elseif ($act == 'add') { $pid = request_int('pid'); $shop_id['shop_id'] = Perm::$shopId; $data = $this->shopGoodCatModel->getGoodCatparent($shop_id); $this->view->setMet('setCat'); } include $this->view->getView(); ~~~ * shop/views/default/Seller/Shop/CatCtl/cat.php 店鋪分類列表:`$data = $this->shopGoodCatModel->getGoodCatList($shop_id, array('shop_goods_cat_displayorder'=> 'DESC'));;` 模型:shop/models/shop/GoodCatModel.php 方法:nav() * shop/views/default/Seller/Shop/CatCtl/setCat.php 確認提交表單驗證:`$('#form').validator({})` 編輯、添加、刪除分類:editCa()、addCa()、delCa() 編輯:`$flag = $this->shopGoodCatModel->editGoodCat($shop_goods_cat_id, $cat);` 添加:`$flag = $this->shopGoodCatModel->addGoodCat($cat);` 刪除:參數parent_id,根據參數判斷刪除導航 ~~~ $cat_id = request_int("id"); $cat = $this->shopGoodCatModel->getOne($cat_id); if ($cat['parent_id'] == "0") { $flag = $this->shopGoodCatModel->removeGoodAllCat($cat_id); } else { $flag = $this->shopGoodCatModel->removeGoodCat($cat_id); } ~~~ 七、售后服務 控制器:shop/controllers/Seller/Shop/SetshopCtl.php 模型:shop/models/shop/BaseModel.php 視圖:shop/views/default/Seller/Shop/SetshopCtl/service.php 確認提交表單驗證:`$('#form').validator({})` 方法:editShopCommonService() 判斷違禁詞: ~~~ $common_service = request_string('common_service'); if (Text_Filter::checkBanned($common_service, $matche_row)) { $data = array(); $msg = __('含有違禁詞'); $status = 250; $this->data->addBody(-140, array(), $msg, $status); return false; } $flag = $this->shopBaseModel->editBase($shop_id, $shop_edit_row); ~~~
                  <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>

                              哎呀哎呀视频在线观看