| 1 |
<?php |
<?php |
| 2 |
/** |
/** |
| 3 |
* @package Mambo Open Source |
* @package Mambo |
| 4 |
* @subpackage Categories |
* @subpackage Categories |
| 5 |
* @copyright (C) 2005 - 2006 Mambo Foundation Inc. |
* @author Mambo Foundation Inc see README.php |
| 6 |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
* @copyright Mambo Foundation Inc. |
| 7 |
* |
* See COPYRIGHT.php for copyright notices and details. |
| 8 |
* Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure |
* @license GNU/GPL Version 2, see LICENSE.php |
| 9 |
* that Mambo remained free Open Source software owned and managed by the community. |
* Mambo is free software; you can redistribute it and/or |
| 10 |
* Mambo is Free Software |
* modify it under the terms of the GNU General Public License |
| 11 |
|
* as published by the Free Software Foundation; version 2 of the License. |
| 12 |
*/ |
*/ |
| 13 |
|
|
| 14 |
/** ensure this file is being included by a parent file */ |
/** ensure this file is being included by a parent file */ |
| 20 |
// get parameters from the URL or submitted form |
// get parameters from the URL or submitted form |
| 21 |
$section = mosGetParam( $_REQUEST, 'section', 'content' ); |
$section = mosGetParam( $_REQUEST, 'section', 'content' ); |
| 22 |
$cid = mosGetParam( $_REQUEST, 'cid', array(0) ); |
$cid = mosGetParam( $_REQUEST, 'cid', array(0) ); |
| 23 |
if (!is_array( $cid )) { |
if (!$cid) $id = mosGetParam( $_REQUEST, 'id', 0 ); |
|
$cid = array(0); |
|
|
} |
|
| 24 |
|
|
| 25 |
switch ($task) { |
switch ($task) { |
| 26 |
case 'new': |
case 'new': |
| 856 |
} |
} |
| 857 |
} |
} |
| 858 |
// execute updateOrder for each group |
// execute updateOrder for each group |
| 859 |
foreach ($sections as $section=>$rowid) { |
foreach ($sections as $sectionid=>$rowid) { |
| 860 |
$row->updateOrder("section='$section'"); |
$row->updateOrder("section='$sectionid'"); |
| 861 |
} // foreach |
} // foreach |
| 862 |
$msg = T_('New ordering saved'); |
$msg = T_('New ordering saved'); |
| 863 |
mosRedirect( 'index2.php?option=com_categories§ion='. $section, $msg ); |
mosRedirect( 'index2.php?option=com_categories§ion='. $section, $msg ); |