function show_edit_category_form($config, $id) { $category = get_category($config, $id); if ($category) { show_category_form("edit", $category['Id'], $category['Name'], $category['Receipt'], $category['Description']); } else { echo "<p>Error: Can't get category that has id = {$id}</p>"; } }
} else { header("Location: ./login.php"); die; } $user=new User(); $user->username = $login; if(!$user->read()) { echo "error 2"; die; } do_header(_('administración de categorías')); do_navbar(_('administración de categorías')); show_category_form(); do_footer(); function show_category_form() { global $user; change_categories(); echo '<div id="genericform-contents"><div id="genericform"><fieldset><legend>'; echo '<span class="sign">'._('administración de categorías').'</span></legend>'; echo '<div class="column-list">'."\n"; echo '<div class="categorylist">'."\n"; echo '<form action="categories.php" method="post" id="thisform">' . "\n";