From 89a3eaecc9c3a996db0f3d1b0f38c42c1ae5b3fc Mon Sep 17 00:00:00 2001 From: sunguangming Date: Wed, 7 Aug 2024 03:13:08 +0000 Subject: [PATCH] * [task#124823,doing,0.5h] add sortDoclib. --- module/doc/control.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/module/doc/control.php b/module/doc/control.php index e5fa1ca05b..cd7652dab0 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -1014,6 +1014,24 @@ class doc extends control $this->display(); } + /** + * 文档库排序 + * Doclib sorting. + * + * @access public + * @return void + */ + public function sortDoclib() + { + if($_POST) + { + foreach($_POST['orders'] as $id => $order) $this->doc->updateDocLibOrder($id, (int)$order); + + if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); + return $this->send(array('result' => 'success')); + } + } + /** * 目录排序 * Catalog sorting.