From ffcf578d4addb20e39e95a3c8da14f563e4e1b17 Mon Sep 17 00:00:00 2001 From: bazooka07 Date: Wed, 6 Dec 2017 17:33:24 +0100 Subject: [PATCH] Tri avec la souris des rangees des tableaux de statiques, categories et plugins actifs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Testé sous Firefox, Chrome, Vuvaldi. --- core/admin/categories.php | 12 +-- core/admin/foot.php | 4 +- core/admin/parametres_plugins.php | 4 +- core/admin/statiques.php | 24 ++--- core/admin/theme/images/homepage-32.png | Bin 0 -> 429 bytes core/admin/theme/theme.css | 18 ++++ core/lib/drag-and-drop.js | 113 ++++++++++++++++++++++++ 7 files changed, 154 insertions(+), 21 deletions(-) create mode 100644 core/admin/theme/images/homepage-32.png create mode 100644 core/lib/drag-and-drop.js diff --git a/core/admin/categories.php b/core/admin/categories.php index 668d94d6f..7210b5387 100644 --- a/core/admin/categories.php +++ b/core/admin/categories.php @@ -53,7 +53,7 @@ plxPlugins->callHook('AdminCategoriesTop')) # Hook Plugins ?>
- +
@@ -71,13 +71,12 @@ aCats) { foreach($plxAdmin->aCats as $k=>$v) { # Pour chaque catégorie - $ordre = ++$num; - echo ''; - echo ''; + echo ''; + echo ''; echo ''; echo ''; echo ''; + $ordre++; } # On récupère le dernier identifiant $a = array_keys($plxAdmin->aCats); @@ -120,7 +120,7 @@ echo '
'.$k.''; plxUtils::printInput($k.'_name', plxUtils::strCheck($v['name']), 'text', '-50'); echo ''; @@ -95,6 +94,7 @@ echo ''.L_OPTIONS.'
'; plxUtils::printInput($new_catid.'_bypage', $plxAdmin->aConf['bypage'], 'text', '-3'); echo ''; - plxUtils::printInput($new_catid.'_ordre', ++$num, 'text', '-3'); + plxUtils::printInput($new_catid.'_ordre', $ordre, 'text', '-3'); echo ''; plxUtils::printSelect($new_catid.'_menu', array('oui'=>L_DISPLAY,'non'=>L_HIDE), '1'); echo ' '; diff --git a/core/admin/foot.php b/core/admin/foot.php index f85947e98..55dc04be0 100644 --- a/core/admin/foot.php +++ b/core/admin/foot.php @@ -5,7 +5,7 @@ plxPlugins->callHook('AdminFootEndBody')) ?> - +