From 7648f35e5b6ce3a8868a175b7d8975c71a3450d0 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sun, 7 Dec 2003 10:47:09 +0000 Subject: [PATCH] Category interface improvements. git-svn-id: https://develop.svn.wordpress.org/trunk@581 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/categories.php | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/wp-admin/categories.php b/wp-admin/categories.php index dcc0039052..31e8a1f9db 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -127,26 +127,41 @@ default: die("You have no right to edit the categories for this blog.
Ask for a promotion to your blog admin. :)"); } ?> - +

Current Categories

- - - - - + + + + get_results("SELECT * FROM $tablecategories ORDER BY cat_name"); foreach ($categories as $category) { $count = $wpdb->get_var("SELECT COUNT(post_id) FROM $tablepost2cat WHERE category_id = $category->cat_ID"); - $bgcolor = ('#eeeeee' == $bgcolor) ? '' : '#eeeeee'; - echo " + $bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee'; + echo " - + "; } ?> @@ -157,7 +172,7 @@ default:

Add New Category

-

Category name:
+

Name:

Description:

Category NameDescription# PostsEditDeleteNameDescription# PostsAction
$category->cat_name
$category->cat_name $category->category_description $countEditcat_name\' and all its posts will go to the default category.\\n \'OK\' to delete, \'Cancel\' to stop.')\">DeleteEditcat_name\' and all its posts will go to the default category.\\n \'OK\' to delete, \'Cancel\' to stop.')\" class='delete'>Delete