<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=functions">Functions Manager</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='functions'>
			<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>&nbsp;</td></tr>
	<tr><td><table cellpadding="2" cellspacing="2" border="0" width="400" align="center">
		<tr><td colspan="2" class="form_cell" align="center"><?php
		admin_form_element( array ("type" => "button", "value" => "Add New Function", "link" => "index.php?section=functions&action=edit&theme=".$data["theme"]) );
		?></td></tr>
		<tr><td class="list_header" align="center">Function Name</td><td class="list_header" align="center">Action</td></tr>
		<?php
		
			foreach($data["tasks"] as $task){
				?><tr><td class="list_cell"><?php echo $task["name"]; ?></td>
				<td class="list_cell" align="center"><?php
				admin_output_image("buttons/but_edit_small.gif",$task["edit"],0,"edit");
				admin_output_image("buttons/but_delete_small.gif",$task["delete"],0,"delete");
				?></td></tr><?php
			}//foreach
		
		?>
	</table></td></tr>	
</table>