| 64 | | ?> |
|---|
| 65 | | |
|---|
| 66 | | <div class="wrap"> |
|---|
| 67 | | <h2><?php _e('Edit Category') ?></h2> |
|---|
| 68 | | <form name="editcat" action="categories.php" method="post"> |
|---|
| 69 | | <?php wp_nonce_field('update-category' . $category->cat_ID); ?> |
|---|
| 70 | | <table class="editform" width="100%" cellspacing="2" cellpadding="5"> |
|---|
| 71 | | <tr> |
|---|
| 72 | | <th width="33%" scope="row" valign="top"><label for="cat_name"><?php _e('Category name:') ?></label></th> |
|---|
| 73 | | <td width="67%"><input name="cat_name" id="cat_name" type="text" value="<?php echo wp_specialchars($category->cat_name); ?>" size="40" /> <input type="hidden" name="action" value="editedcat" /> |
|---|
| 74 | | <input type="hidden" name="cat_ID" value="<?php echo $category->cat_ID ?>" /></td> |
|---|
| 75 | | </tr> |
|---|
| 76 | | <tr> |
|---|
| 77 | | <th scope="row" valign="top"><label for="category_nicename"><?php _e('Category slug:') ?></label></th> |
|---|
| 78 | | <td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo wp_specialchars($category->category_nicename); ?>" size="40" /></td> |
|---|
| 79 | | </tr> |
|---|
| 80 | | <tr> |
|---|
| 81 | | <th scope="row" valign="top"><label for="category_parent"><?php _e('Category parent:') ?></label></th> |
|---|
| 82 | | <td> |
|---|
| 83 | | <select name='category_parent' id='category_parent'> |
|---|
| 84 | | <option value='0' <?php if (!$category->category_parent) echo " selected='selected'"; ?>><?php _e('None') ?></option> |
|---|
| 85 | | <?php wp_dropdown_cats($category->cat_ID, $category->category_parent); ?> |
|---|
| 86 | | </select></td> |
|---|
| 87 | | </tr> |
|---|
| 88 | | <tr> |
|---|
| 89 | | <th scope="row" valign="top"><label for="category_description"><?php _e('Description:') ?></label></th> |
|---|
| 90 | | <td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars($category->category_description, 1); ?></textarea></td> |
|---|
| 91 | | </tr> |
|---|
| 92 | | </table> |
|---|
| 93 | | <p class="submit"><input type="submit" name="submit" value="<?php _e('Edit category »') ?>" /></p> |
|---|
| 94 | | </form> |
|---|
| 95 | | <p><a href="categories.php"><?php _e('« Return to category list'); ?></a></p> |
|---|
| 96 | | </div> |
|---|
| 97 | | <?php |
|---|
| | 64 | include('edit-category-form.php'); |
|---|
| 158 | | <div class="wrap"> |
|---|
| 159 | | <h2><?php _e('Add New Category') ?></h2> |
|---|
| 160 | | <form name="addcat" id="addcat" action="categories.php" method="post"> |
|---|
| 161 | | <?php wp_nonce_field('add-category'); ?> |
|---|
| 162 | | <div class="alignleft"><?php _e('Name:') ?><br /> |
|---|
| 163 | | <input type="text" name="cat_name" id="cat_name" value="" /></p> |
|---|
| 164 | | <p><?php _e('Category parent:') ?><br /> |
|---|
| 165 | | <select name='category_parent' id='category_parent' class='postform'> |
|---|
| 166 | | <option value='0'><?php _e('None') ?></option> |
|---|
| 167 | | <?php wp_dropdown_cats(0); ?> |
|---|
| 168 | | </select> |
|---|
| 169 | | </div> |
|---|
| 170 | | <div id="ajax-response" class="alignleft"></div> |
|---|
| 171 | | <br class="clear" /> |
|---|
| 172 | | <p><?php _e('Description: (optional)') ?> <br /> |
|---|
| 173 | | <textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"></textarea></p> |
|---|
| 174 | | <p class="submit"><input type="hidden" name="action" value="addcat" /><input type="submit" name="submit" value="<?php _e('Add Category »') ?>" /></p> |
|---|
| 175 | | </form> |
|---|
| 176 | | </div> |
|---|
| | 125 | <?php include('edit-category-form.php'); ?> |
|---|