From fa0e7ee4b5f36b22ad581d9e41924980ebe629a7 Mon Sep 17 00:00:00 2001 From: SecretR Date: Wed, 13 Feb 2013 15:16:32 +0200 Subject: [PATCH] Page administration - legacy e-sort code removal, inline edit functional now --- e107_admin/cpage.php | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/e107_admin/cpage.php b/e107_admin/cpage.php index dbd71b8cc..ae2751838 100644 --- a/e107_admin/cpage.php +++ b/e107_admin/cpage.php @@ -278,6 +278,8 @@ class page_admin_ui extends e_admin_ui protected $perPage = 10; protected $batchDelete = true; protected $batchCopy = true; + protected $sortField = 'page_order'; + protected $orderStep = 10; // protected $listSorting = true; protected $fields = array( @@ -294,7 +296,7 @@ class page_admin_ui extends e_admin_ui 'page_rating_flag' => array('title'=> LAN_RATING, 'type' => 'boolean', 'width' => '5%', 'thclass' => 'center', 'class' => 'center' ), 'page_comment_flag' => array('title'=> ADLAN_114, 'type' => 'boolean', 'width' => '5%', 'thclass' => 'center', 'class' => 'center' ), // 'page_password' => array('title'=> LAN_USER_05, 'type' => 'text', 'width' => 'auto'), - 'page_order' => array('title'=> LAN_ORDER, 'type' => 'number', 'width' => 'auto', 'nolist'=>true), + 'page_order' => array('title'=> LAN_ORDER, 'type' => 'number', 'width' => 'auto', 'inline'=>true), // 'page_ip_restrict' => array('title'=> LAN_USER_07, 'type' => 'text', 'width' => 'auto'), // Avatar 'options' => array('title'=> LAN_OPTIONS, 'type' => null, 'forced'=>TRUE, 'width' => '10%', 'thclass' => 'center last', 'class' => 'center','readParms'=>'sort=1') @@ -309,25 +311,6 @@ class page_admin_ui extends e_admin_ui function init() { - - if(e_AJAX_REQUEST) // ajax sorting. - { - $sql = e107::getDb(); - $c= ($_GET['from']) ? intval($_GET['from']) : 0; - if(isset($_POST['all'])) - { - foreach($_POST['all'] as $row) - { - list($tmp,$id) = explode("-",$row); - $sql->db_Update("page","page_order = ".intval($c)." WHERE page_id = ".intval($id)); - $c++; - } - } - // echo ""; - exit; - } - - $this->templates = e107::getLayouts('', 'page', 'front', '', false, false); $this->fields['page_template']['writeParms'] = $this->templates;