/phpcms/modules/content/content.php 454 Lines/** * Sort*/
Publicfunction 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)); //Change the recommended sort start--newly added$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)); }//Change recommended sort End--} showmessage (L ('operation_success')); } Else{showmessage (L ('operation_failure')); }}
Resolve Phpcms V9 Recommended bit cannot be sorted