zoukankan      html  css  js  c++  java
  • 解决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'));   } }
  • 相关阅读:
    HDNOIP普及+提高整合
    [BZOJ4016][FJOI2014]最短路径树问题
    [BZOJ3697]采药人的路径
    [COJ0985]WZJ的数据结构(负十五)
    [KOJ6024]合并果子·改(强化版)
    [KOJ6023]合并果子·改
    [KOJ0574NOIP200406合并果子]
    Atomic operations on the x86 processors
    Javascript 严格模式详解
    const C语言(转)
  • 原文地址:https://www.cnblogs.com/qhorse/p/4812709.html
Copyright © 2011-2022 走看看