当前位置: 首页>>代码示例>>PHP>>正文


PHP Tool::getPrevPage方法代码示例

本文整理汇总了PHP中Tool::getPrevPage方法的典型用法代码示例。如果您正苦于以下问题:PHP Tool::getPrevPage方法的具体用法?PHP Tool::getPrevPage怎么用?PHP Tool::getPrevPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tool的用法示例。


在下文中一共展示了Tool::getPrevPage方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: error

 public function error($_info)
 {
     $this->_controll->assign('message', $_info);
     $this->_controll->assign('prev', Tool::getPrevPage());
     $this->_controll->display(SMARTY_ADMIN . 'public/error.html');
     exit;
 }
开发者ID:156248605,项目名称:cishop,代码行数:7,代码来源:Redirect.class.php

示例2: clear

 public function clear()
 {
     if ($this->_model->clear()) {
         $this->_redirect->succ(Tool::getPrevPage(), '清理成功');
     } else {
         $this->_redirect->error('没有找到可清理的订单');
     }
 }
开发者ID:yjf0503,项目名称:Mall,代码行数:8,代码来源:OrderAction.class.php

示例3: first

 public function first()
 {
     if (isset($_GET['id'])) {
         if ($this->_model->first()) {
             $this->_redirect->succ(Tool::getPrevPage());
         } else {
             $this->_redirect->error('售后服务设置默认失败');
         }
     }
 }
开发者ID:yjf0503,项目名称:Mall,代码行数:10,代码来源:ServiceAction.class.php

示例4: sort

 public function sort()
 {
     if (isset($_POST['send'])) {
         if ($this->_model->sort()) {
             $this->_redirect->succ(Tool::getPrevPage());
         } else {
             $this->_redirect->error('导航排序失败');
         }
     }
 }
开发者ID:yjf0503,项目名称:Mall,代码行数:10,代码来源:PriceAction.class.php

示例5: delete

 public function delete()
 {
     if (isset($_GET['id'])) {
         if ($this->_model->delete()) {
             $this->_redirect->succ(Tool::getPrevPage(), '品牌删除成功');
         } else {
             $this->_redirect->error('品牌删除失败');
         }
     }
 }
开发者ID:yjf0503,项目名称:Mall,代码行数:10,代码来源:BrandAction.class.php

示例6: error

 public function error($_url = '')
 {
     if (empty($_url)) {
         $this->_tpl->assign('message', $this->_message);
         $this->_tpl->assign('prev', Tool::getPrevPage());
         $this->_tpl->display(SMARTY_ADMIN . 'public/error.tpl');
         exit;
     } else {
         Redirect::getInstance()->succ($_url);
     }
 }
开发者ID:yjf0503,项目名称:Mall,代码行数:11,代码来源:check.class.php

示例7: update

 public function update()
 {
     if (isset($_POST['send'])) {
         if ($this->_model->update()) {
             $this->_redirect->succ(Tool::getPrevPage(), '管理员修改成功');
         } else {
             $this->_redirect->error('管理员修改失败');
         }
     }
     if (isset($_GET['id'])) {
         $this->_tpl->assign('AllLevel', Tool::setFormItem($this->_level->findAll(), 'id', 'level_name'));
         $this->_tpl->assign('OneManage', $this->_model->findOne());
         $this->_tpl->display(SMARTY_ADMIN . 'manage/update.tpl');
     }
 }
开发者ID:yjf0503,项目名称:Mall,代码行数:15,代码来源:ManageAction.class.php

示例8: refund

 public function refund()
 {
     if ($this->_order->refund()) {
         $this->_redirect->succ(Tool::getPrevPage());
     } else {
         $this->_redirect->error('申请退款失败,请重试');
     }
 }
开发者ID:yjf0503,项目名称:Mall,代码行数:8,代码来源:MemberAction.class.php

示例9: isUp

 public function isUp()
 {
     if ($this->_model->isUp()) {
         $this->_redirect->succ(Tool::getPrevPage());
     }
 }
开发者ID:yjf0503,项目名称:Mall,代码行数:6,代码来源:GoodsAction.class.php


注:本文中的Tool::getPrevPage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。