mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 21:32:09 +02:00
Re-order step Admin UI control added
This commit is contained in:
@@ -2224,10 +2224,15 @@ class e_admin_controller_ui extends e_admin_controller
|
|||||||
protected $listOrder = null;
|
protected $listOrder = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string SQL order, false to disable order, null is default order
|
* @var field containing the order number
|
||||||
*/
|
*/
|
||||||
protected $sortField = null;
|
protected $sortField = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var reorder step
|
||||||
|
*/
|
||||||
|
protected $orderStep = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Structure same as TreeModel parameters used for building the load() SQL
|
* Structure same as TreeModel parameters used for building the load() SQL
|
||||||
* @var additional SQL to be applied when auto-building the list query
|
* @var additional SQL to be applied when auto-building the list query
|
||||||
@@ -4198,6 +4203,7 @@ class e_admin_ui extends e_admin_controller_ui
|
|||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
$c = ($_GET['from']) ? intval($_GET['from']) : 0;
|
$c = ($_GET['from']) ? intval($_GET['from']) : 0;
|
||||||
$updated = array();
|
$updated = array();
|
||||||
|
$step = $this->orderStep ? intval($this->orderStep) : 1;
|
||||||
|
|
||||||
foreach($_POST['all'] as $row)
|
foreach($_POST['all'] as $row)
|
||||||
{
|
{
|
||||||
@@ -4210,7 +4216,7 @@ class e_admin_ui extends e_admin_controller_ui
|
|||||||
$updated[] = $id;
|
$updated[] = $id;
|
||||||
}
|
}
|
||||||
// echo($sql->getLastQuery()."\n");
|
// echo($sql->getLastQuery()."\n");
|
||||||
$c++;
|
$c += $step;
|
||||||
}
|
}
|
||||||
//echo "Updated ".implode(",",$updated);
|
//echo "Updated ".implode(",",$updated);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user