phpcms無(wú)法排序的解決辦法:首先找到并打開“content/content.php”文件;然后找到文中第454行的內(nèi)容;接著更改推薦排序;最后保存修改過(guò)后的文件即可。
解決phpcms V9 推薦位無(wú)法排序
/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)); }? //更改推薦排序結(jié)束-- ??? } ??? showmessage(L('operation_success')); ?? }?else?{ ??? showmessage(L('operation_failure')); ?? } }
推薦:《phpcms教程》
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載。
THE END
喜歡就支持一下吧
相關(guān)推薦