Show category ID.

git-svn-id: https://develop.svn.wordpress.org/trunk@1143 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-04-24 19:32:31 +00:00
parent 81bc3fe0c9
commit 522437bd7b
3 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ function cat_rows($parent = 0, $level = 0, $categories = 0) {
$pad = str_repeat('— ', $level);
$bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';
echo "<tr style='background-color: $bgcolor'><td>$pad $category->cat_name</td>
echo "<tr style='background-color: $bgcolor'><th scope='row'>$category->cat_ID</th><td>$pad $category->cat_name</td>
<td>$category->category_description</td>
<td>$count</td>
<td><a href='categories.php?action=edit&amp;cat_ID=$category->cat_ID' class='edit'>" . __('Edit') . "</a></td><td><a href='categories.php?action=Delete&amp;cat_ID=$category->cat_ID' onclick=\"return confirm('". sprintf(__("You are about to delete the category \'%s\'. All of its posts will go to the default category.\\n \'OK\' to delete, \'Cancel\' to stop."), addslashes($category->cat_name)) . "')\" class='delete'>" . __('Delete') . "</a></td>

View File

@ -146,6 +146,7 @@ default:
<h2><?php printf(__('Current Categories (<a href="%s">add new</a>)'), '#addcat') ?> </h2>
<table width="100%" cellpadding="3" cellspacing="3">
<tr>
<th scope="col"><?php _e('ID') ?></th>
<th scope="col"><?php _e('Name') ?></th>
<th scope="col"><?php _e('Description') ?></th>
<th scope="col"><?php _e('# Posts') ?></th>

View File

@ -185,7 +185,7 @@ textarea, input, select {
.wrap {
border: 1px solid #ccc;
margin: 15px 5%;
padding: 0 1em;
padding: .5em 1em;
}
.wrap h2 {
@ -341,8 +341,7 @@ textarea, input, select {
width: 100%;
}
#postcustom td,th {
background-color: #fff;
#postcustom td, #postcustom th {
color: #000;
margin: 1px;
padding: 0.2em;