| [ PHPXref.com ] | [ Generated: Sun Jul 20 19:47:34 2008 ] | [ phpMyFAQ 1.6.1 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * $Id: category.move.php,v 1.1.2.5.2.1 2006/02/09 13:48:35 thorstenr Exp $ 4 * 5 * Select a category to move 6 * 7 * @author Thorsten Rinne <thorsten@phpmyfaq.de> 8 * @since 2004-04-29 9 * @copyright (c) 2004-2006 phpMyFAQ Team 10 * 11 * The contents of this file are subject to the Mozilla Public License 12 * Version 1.1 (the "License"); you may not use this file except in 13 * compliance with the License. You may obtain a copy of the License at 14 * http://www.mozilla.org/MPL/ 15 * 16 * Software distributed under the License is distributed on an "AS IS" 17 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 18 * License for the specific language governing rights and limitations 19 * under the License. 20 */ 21 22 if (!defined('IS_VALID_PHPMYFAQ_ADMIN')) { 23 header('Location: http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME'])); 24 exit(); 25 } 26 27 if ($permission["editcateg"]) { 28 $id = $_GET['cat']; 29 $parent_id = $_GET['parent_id']; 30 $cat = new category; 31 $categories = $cat->getAllCategories(); 32 unset($cat->categories); 33 $cat->getCategories($parent_id, false); 34 $cat->buildTree($parent_id); 35 print "<h2>".$PMF_LANG["ad_categ_edit_1"]." <em>".$categories[$id]["name"]."</em> ".$PMF_LANG["ad_categ_edit_2"]."</h2>\n"; 36 ?> 37 <form action="<?php print $_SERVER["PHP_SELF"].$linkext; ?>" method="post"> 38 <fieldset> 39 <legend><?php print $PMF_LANG["ad_categ_edit_1"]; ?></legend> 40 <input type="hidden" name="aktion" value="changecategory" /> 41 <input type="hidden" name="cat" value="<?php print $id; ?>" /> 42 43 <label class="left"><strong><?php print $PMF_LANG["ad_categ_change"]; ?>:</label> 44 <select name="change" size="1"> 45 <?php print $cat->printCategoryOptions(); ?> 46 </select><br /> 47 48 <input class="submit" style="margin-left: 190px;" type="submit" name="submit" value="<?php print $PMF_LANG["ad_categ_updatecateg"]; ?>" /> 49 50 </fieldset> 51 </form> 52 <?php 53 } else { 54 print $PMF_LANG["err_NotAuth"]; 55 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |