From fc0c99ac621252b1f4f7556e6ff1ba66dd9e51b4 Mon Sep 17 00:00:00 2001 From: Arslan Hassan Date: Wed, 8 Aug 2012 19:01:47 +0000 Subject: [PATCH] Fixed : Admin block orders update --- upload/admin_area/ajax/main.php | 3 +- .../styles/cbv3/layout/blocks/home/stats.html | 116 +++++++++--------- upload/includes/admin_config.php | 2 +- 3 files changed, 64 insertions(+), 57 deletions(-) diff --git a/upload/admin_area/ajax/main.php b/upload/admin_area/ajax/main.php index 426f6a99..9e20393a 100644 --- a/upload/admin_area/ajax/main.php +++ b/upload/admin_area/ajax/main.php @@ -48,10 +48,11 @@ switch($mode) $order = 1; $orders = array(); - rsort($_POST['block_order']); + // rsort($_POST['block_order']); foreach($_POST['block_order'] as $block_order) { + $orders[$block_order] = $order; $order++; } diff --git a/upload/admin_area/styles/cbv3/layout/blocks/home/stats.html b/upload/admin_area/styles/cbv3/layout/blocks/home/stats.html index 1a6a32f7..ae6c1ca5 100644 --- a/upload/admin_area/styles/cbv3/layout/blocks/home/stats.html +++ b/upload/admin_area/styles/cbv3/layout/blocks/home/stats.html @@ -1,79 +1,85 @@ diff --git a/upload/includes/admin_config.php b/upload/includes/admin_config.php index 03b999bc..54e3c483 100644 --- a/upload/includes/admin_config.php +++ b/upload/includes/admin_config.php @@ -83,7 +83,7 @@ if ($Cbucket->template_details['php_file']) register_admin_block(array('title' => 'Status Overview', 'function' => 'admin_home_overview')); -//register_admin_block(array('title'=>'Summary of Stats','function'=>'admin_home_stats')); +register_admin_block(array('title'=>'Summary of Stats','function'=>'admin_home_stats')); register_admin_block(array('title' => 'Recent Activity', 'function' => 'admin_home_activity')); register_admin_block(array('title' => 'Personal Notes', 'function' => 'admin_home_notes')); register_admin_block(array('title' => 'Personal Notes 2', 'function' => 'admin_home_notes'));