<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=ads&theme=<?php echo $data["theme"] ?>">Advertisements</a>&nbsp;&gt;&nbsp;<a href="<?php echo $data["link"]; ?>"><?php echo $data["campaign"][name]; ?></a>&nbsp;&gt;&nbsp;<a href="<?php echo $data["link2"]; ?>">Add/Edit Banner</a>&nbsp;&gt;&nbsp;Edit Subcategories Settings - <?php echo ucfirst($data["type"]); ?></td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr><td><table cellpadding="2" cellspacing="2" border="0" width="500" align="center">
	<form action="index.php" method="post">
	<input type="hidden" name="section" value="ads">
	<input type="hidden" name="action" value="save_banner_subcategories">
	<input type="hidden" name="pro" value="<?php echo $data["type"]; ?>">
	<input type="hidden" name="theme" value="<?php echo $data["theme"]; ?>">
	<input type="hidden" name="cmp_id" value="<?php echo $data["cmp_id"]; ?>">
	<input type="hidden" name="ban_id" value="<?php echo $data["ban_id"]; ?>">
	<input type="hidden" name="category" value="<?php echo $data["category"]; ?>">
	<input type="hidden" name="ret_link" value="<?php echo $data["link"]; ?>">
		<tr><td class="form_cell"><table cellpadding="0" cellspacing="3" border="0" align="center">
		<?php
		
			while(list($key,$val) = each($data["subcategories"])){
				?><tr><td><?php
				admin_form_element( array ("type" => "checkbox", "name" => "subcategories[".$key."]", "ovalue" => "1", "value" => $data["values"]["subcategories"][$key]) );
				?></td><td class="highlight"><?php echo $val; ?></td></tr><?php
			}//while
		
		?>
		<tr><td colspan="2" align="left"><?php
		admin_form_element( array ("type" => "button", "value" => "Back", "link" => $data["link2"]) );
		echo "&nbsp;";
		admin_form_element( array ("type" => "button", "value" => "Save") );
		?></td></tr>
		</table></td></tr>
	</form>
	</table></td></tr>
</table>