解决phpcms V9 推荐位无法排序

/phpcms/modules/content/content.php  454行
/**
  * 排序
  */
public function listorder() {   if(isset($_GET['dosubmit'])) {     $catid = intval($_GET['catid']);     if(!$catid) showmessage(L('missing_part_parameters'));     $modelid = $this->categorys[$catid]['modelid'];     $this->db->set_model($modelid);     foreach($_POST['listorders'] as $id => $listorder) {       $this->db->update(array('listorder'=>$listorder),array('id'=>$id));         //更改推荐排序开始--新添加的         $r = $this->db->get_one(array('id'=>$id));         if($r['posids']){           $this->db_config = pc_base::load_config('database');           $tablepre = $this->db_config['default']['tablepre'];           $this->db->table_name = $tablepre."position_data";           $this->db->update(array('listorder'=>$listorder),array('id'=>$id,modelid=>$modelid));         }         //更改推荐排序结束--     }     showmessage(L('operation_success'));   } else {     showmessage(L('operation_failure'));   } }

 

转载于:https://www.cnblogs.com/qhorse/p/4812709.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值