Location: PHPKode > projects > MyMarket > mymarket-1.72/admin/templates/category_list.php
<p class="normal">
<a href="<?=$ME?>?mode=add">[+C] Add Category</a>
</p>

<table border="1" cellpadding="3">
<tr>
	<th>Action</th>
	<th>Category</th>
	<th>Parent</th>
	<th>Description</th>
</tr>

<? while ($r = db_fetch_object($qid)) { ?>
<tr>
	<td class="normal">
		[ <a title="Add a subcategory under <? pv($r->name) ?>" href="<?=$ME?>?mode=add&id=<? pv($r->id) ?>">+C</a>
		| <a title="Add a product under <? pv($r->name) ?>" href="products.php?mode=add&category_id=<? pv($r->id) ?>">+P</a>
		| <a title="Delete <? pv($r->name) ?>" href="<?=$ME?>?mode=del&id=<? pv($r->id) ?>" onClick="return confirm('Delete <?=jstring($r->name) ?>?')">X</a>
		]
	</td>
	<td class="normal"><a title="Edit this category" href="<?=$ME?>?mode=edit&id=<? pv($r->id) ?>"><? pv($r->name) ?></a></td>
	<td class="normal"><? pv($r->parent) ?></td>
	<td class="normal"><? pv($r->description) ?></td>
</tr>
<? } ?>

</table>
Return current item: MyMarket