<table width="100%" cellpadding="5" cellspacing="0" border="0">
	<tr><td class="nav"><a href="index.php?section=home">Home</a>&nbsp;&gt;&nbsp;<a href="index.php?section=holidays&theme=<?php echo $data["theme"] ?>">Holidays</a></td></tr>
	<tr><td>
	<table cellpadding="0" cellspacing=3" border="0" align="center">
		<form action='index.php' method='post'>
		<input type='hidden' name='section' value='holidays'>
			<tr>
				<td class="body">Select Theme:</td>
				<td><?php
				$options = $data["themes"];
				admin_form_element( array ("type" => "select", "name" => "theme", "options" => $options, "value" => $data["theme"]) );
				?></td>
			<td align="center" colspan="2"><?php
			admin_form_element( array ("type" => "button", "value" => "Load") );
			?></td></tr>
		</form>	
	</table>
	</td></tr>
	<tr><td><table cellpadding="2" cellspacing="2" border="0" align="center" width="500">
		<form action="index.php" method="post">
		<input type="hidden" name="section" value="holidays">
		<input type="hidden" name="action" value="delete">
		<input type="hidden" name="theme" value="<?php echo $data["theme"]; ?>">
		<tr><td class="form_cell" colspan="5" align="center"><?php
		admin_form_element( array ("type" => "button", "value" => "Add New Holiday", "link" => "index.php?section=holidays&action=edit&theme=".$data["theme"]) );
		?></td></tr>
		<tr>
			<td class="list_header" align="center">
			<input type="checkbox" onclick="HS_TickAll('hld_id[]',this.form)" name="tick_tracker">
			</td>
			<td class="list_header" align="center">Holiday Name</td>
			<td class="list_header" align="center">Date</td>
			<td class="list_header" align="center">Type</td>
			<td class="list_header" align="center">Action</td>
		</tr>
		<?php
		
			foreach($data["holidays"] as $holiday){
				?><tr>
					<td class="list_cell"><?php
					admin_form_element(array ("type" => "checkbox", "name" => "hld_id[]", "ovalue" => $holiday["hld_id"], "value" => -1));
					?></td>
					<td class="list_cell"><?php echo $holiday["name"]; ?></td>
					<td class="list_cell"><?php echo $holiday["date"]; ?></td>
					<td class="list_cell"><?php echo $holiday["type"]; ?></td>
					<td class="list_cell" align="center"><?php
					admin_output_image("buttons/but_edit_small.gif",$holiday["edit"],0,"edit");
					admin_output_image("buttons/but_delete_small.gif",$holiday["delete"],0,"delete");
					?></td>
				</tr><?php
			}//foreach
		
		?>
		<tr><td colspan="5" align="center"><?php
		admin_form_element( array ("type" => "button", "value" => "Delete") );
		?></td></tr>
		</form>
	</table></td></tr>
</table>