From 9998920f079ae14cb546d9ef56d3f66cd772cd98 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sun, 7 Dec 2003 10:47:09 +0000 Subject: [PATCH] Category interface improvements. git-svn-id: http://svn.automattic.com/wordpress/trunk@581 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 dcc003905..31e8a1f9d 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