<table width="100%" cellpadding="0" cellspacing="0" border="0">
	<tr><td class="nav"><a href="index.php?section=home">Home</a>&nbsp;&gt;&nbsp;<a href="index.php?section=modules&theme=<?php echo $data["theme"]; ?>">Modules</a></td></tr>
	<tr><td><table cellpadding="0" cellspacing="0" border="0" width="100%">
		<tr><td height="10" width="20"><img src="../administrator/gfx/spacer.gif" width="20" height="1" border="0"></td>
		<td rowspan="3"><?php admin_output_image("modules/".$data["module"].".gif"); ?></td>		
		<td height="10" width="100%" colspan="3"><?php admin_output_image("spacer.gif"); ?></td>
		</tr>
		<tr><td class="module_start" height="20" width="20"><?php admin_output_image("spacer.gif"); ?></td>
		<td class="module_middle" height="20" width="20"><img src="../administrator/gfx/spacer.gif" width="20" height="1" border="0"></td>
		<td class="module_middle" height="20" width="100%"><?php echo $data["modules"][$data["module"]]; ?> Module :: Edit Categories</td>
		<td class="module_end" height="20"><?php admin_output_image("spacer.gif"); ?></td></tr>
		<tr><td height="10" width="20"><?php admin_output_image("spacer.gif"); ?></td>
		<td height="10" colspan="3"><?php admin_output_image("spacer.gif"); ?></td>
		</tr>
	</table></td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr><td>
		<table cellpadding="0" cellspacing="5" border="0" align="center">
			<tr><td class="form_cell">
				<table cellpadding="0" cellspacing="3" border="0">
				<form action="index.php" method="post" name="cls_categories" onsubmit="return false;">
				<input type="hidden" name="section" value="modules">
				<input type="hidden" name="action" value="save_categories">
				<input type="hidden" name="res_categories" value="">
				<input type="hidden" name="res_subcategories" value="">
				<input type="hidden" name="theme" value="<?php echo $data["theme"]; ?>">
				<input type="hidden" name="module" value="<?php echo $data["module"]; ?>">
					<tr><td class="body" align="center" colspan="4">Categories/Subcategories</td></tr>
					<tr><td class="highlight" align="center" colspan="4">Please note, that each category <b>MUST</b> have at least one subcategory.</td></tr>
					<tr><td colspan="2" class="highlight" align="center">Categories</td>
					<td colspan="2" class="highlight" align="center">Subcategories</td>
					</tr>
					<tr>
						<td colspan="2" align="center"><?php
						admin_form_element( array ("type" => "input", "name" => "new_category", "size" => 25) );
						echo "&nbsp;";
						admin_form_element( array ("type" => "button", "file" => "but_add_p.gif", "onclick" => "HS_AddCategory()") );
						?></td>
						<td colspan="2" align="center"><?php
						admin_form_element( array ("type" => "input", "name" => "new_subcategory", "size" => 25) );
						echo "&nbsp;";
						admin_form_element( array ("type" => "button", "file" => "but_add_p.gif", "onclick" => "HS_AddSubCategory()") );
						?></td>
					</tr>
					<tr>
						<td colspan="2"><?php
						admin_form_element( array ("type" => "select", "name" => "categories", "size" => 10, "options" => $data["categories"], "width" => 230, "javascript" => "onchange='HS_PopulateSubCategories()'") );
						?></td>
						<td colspan="2"><?php
						admin_form_element( array ("type" => "select", "name" => "subcategories", "size" => 10, "options" => array(), "width" => 230, "javascript" => "onchange='HS_EditSubCategory()'") );
						?></td>
					</tr>
					<tr>
						<td><?php
						admin_form_element( array ("type" => "input", "name" => "edit_category", "size" => 25) );
						?></td>
						<td><?php
						admin_form_element( array ("type" => "button", "file" => "but_edit_p.gif", "onclick" => "HS_UpdateCategory()") );
						echo "&nbsp;";
						admin_form_element( array ("type" => "button", "file" => "but_delete_p.gif", "onclick" => "HS_DeleteCategory()") );
						?>
						</td>
						<td><?php
						admin_form_element( array ("type" => "input", "name" => "edit_subcategory", "size" => 25) );
						?></td>
						<td><?php
						admin_form_element( array ("type" => "button", "file" => "but_edit_p.gif", "onclick" => "HS_UpdateSubCategory()") );
						echo "&nbsp;";
						admin_form_element( array ("type" => "button", "file" => "but_delete_p.gif", "onclick" => "HS_DeleteSubCategory()") );
						?>
						</td>
					</tr>
					<tr><td colspan="4" align="center"><?php
					admin_form_element( array ("type" => "button", "value" => "Back", "link" => $data["link"]) );
					admin_form_element( array ("type" => "button", "value" => "Update", "onclick" => "HS_UpdateData();") );
					?></td></tr>
				</form>
				</table>
			</td></tr>
		</table>
	</td></tr>
</table>