Viewing file: category.move.php (2 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* $Id: category.move.php,v 1.1.2.5.2.3 2007/02/18 16:57:17 matteo Exp $
*
* Select a category to move
*
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2004-04-29
* @copyright (c) 2004-2006 phpMyFAQ Team
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
*/
if (!defined('IS_VALID_PHPMYFAQ_ADMIN')) {
header('Location: http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']));
exit();
}
if ($permission["editcateg"]) {
$id = $_GET['cat'];
$parent_id = $_GET['parent_id'];
$cat = new category($LANGCODE);
$categories = $cat->getAllCategories();
unset($cat->categories);
$cat->getCategories($parent_id, false);
$cat->buildTree($parent_id);
print "<h2>".$PMF_LANG["ad_categ_edit_1"]." <em>".$categories[$id]["name"]."</em> ".$PMF_LANG["ad_categ_edit_2"]."</h2>\n";
?>
<form action="<?php print $_SERVER["PHP_SELF"].$linkext; ?>" method="post">
<fieldset>
<legend><?php print $PMF_LANG["ad_categ_edit_1"]; ?></legend>
<input type="hidden" name="aktion" value="changecategory" />
<input type="hidden" name="cat" value="<?php print $id; ?>" />
<label class="left"><?php print $PMF_LANG["ad_categ_change"]; ?>:</label>
<select name="change" size="1">
<?php print $cat->printCategoryOptions(); ?>
</select><br />
<input class="submit" style="margin-left: 190px;" type="submit" name="submit" value="<?php print $PMF_LANG["ad_categ_updatecateg"]; ?>" />
</fieldset>
</form>
<?php
} else {
print $PMF_LANG["err_NotAuth"];
}
|