check(5); include dirname(__FILE__).'/inc/connexion.php'; $err = ''; # Reord if (!empty($_GET['reord'])) { if ($blog->reordCats(false,true) === false) { $err = $blog->error(1); } else { header('Location: cat_list.php'); exit; } } # Classic ord if (isset($_POST['catOrd']) && is_array($_POST['catOrd'])) { if ($blog->ordCats($_POST['catOrd']) === false) { $err = $blog->error(1); } else { header('Location: cat_list.php'); exit; } } # DragNdrop if (!empty($_POST['dndSort'])) { $catOrd = array(); foreach (explode(';',$_POST['dndSort']) as $k => $v) { $catOrd[substr($v,3)] = $k; } if ($blog->ordCats($catOrd) === false) { $err = $blog->error(1); } else { header('Location: cat_list.php'); exit; } } $mySubMenu->addItem(''.__('New category').'','categorie.php','images/ico_new.png',false); openPage(__('Categories list'), ' '. ' '. ' '); ?>
'.__('Error(s)').' :
'. $err.''; } $rsCat = $blog->getCat('','cat_ord'); if ($rsCat->isEmpty()) { echo ''.__('No category yet').'
'; } else { echo ''.__('Drag items to change their positions.').'
'; echo ''; echo ''; } ?>