cvs: pearweb /public_html category-manager.php
| From: | Martin Jansen | Date: | Fri, 28 Dec 2001 17:56:59 +0000 |
| Subject: | cvs: pearweb /public_html category-manager.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1729@lists.php.net to get a copy of this message | ||
mj Fri Dec 28 12:56:59 2001 EDT
Modified files:
/pearweb/public_html category-manager.php
Log:
* Add link in category manager to display packages from current
category
* Never show delete link in toplevel category
Index: pearweb/public_html/category-manager.php
diff -u pearweb/public_html/category-manager.php:1.5 pearweb/public_html/category-manager.php:1.6
--- pearweb/public_html/category-manager.php:1.5 Wed Dec 26 14:29:26 2001
+++ pearweb/public_html/category-manager.php Fri Dec 28 12:56:59 2001
@@ -30,7 +30,7 @@
<form action="<?php echo $GLOBALS['PHP_SELF'] .
"?catid=$catid&insert=1"; ?>" method="post">
<table border="0" cellpadding="2" cellspacing="1"
width="100%">
<tr>
- <td rowspan="3" width="30%"><?php print
get_categories_menu('tree');?></td>
+ <td rowspan="4" width="30%"><?php print
get_categories_menu('tree');?></td>
<td><h3>You are browsing category:</h3><br><?php print
get_categories_menu('urhere');?>
</td>
</tr>
@@ -53,11 +53,17 @@
</td>
</tr>
+<?php if (isset($catid)) { ?>
</tr>
<td><b>Delete category: <?php print $name;?></b><br>
- <font color="red">(warning it will delete all subcategories and all
packages!)</font>
+ <font color="red">(Warning: This will delete <b>all</b>
subcategories and <b>all</b> packages!)</font>
</td>
</tr>
+</tr>
+ <td><b><?php print_link("/packages.php?catpid=" . $catid .
"&catname=" . $name, "List"); ?>
+ all packages from this category.</b></td>
+</tr>
+<?php } ?>
</table>
</form>
<?php