<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=themes">Themes Manager</a></td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr><td><table cellpadding="2" cellspacing="2" border="0" align="center" width="400">
	<form action="index.php" method="post">
	<input type="hidden" name="section" value="themes">
	<input type="hidden" name="action" value="switch">
		<tr><td colspan="3" class="lined blue_bcg white_body padded" align="center">Themes</td></tr>
		<tr>
			<td class="list_header" align="center">&nbsp;</td>
			<td class="list_header" align="center">Theme Name</td>
			<td class="list_header" align="center">Action</td>
		</tr>
		<?php
		
			while(list($key,$val) = each($data["themes"])){
				?><tr>
					<td class="list_cell" align="center"><?php
					admin_form_element( array ("type" => "radio", "name" => "theme", "ovalue" => $key, "value" => $data["theme"]) );
					?></td>
					<td class="list_cell"><?php echo $val; ?> <?php echo ($key == $data["theme"]) ? "(current theme)" : ""; ?></td>
					<td class="list_cell" align="center"><?php
					if($key == $data["theme"])
						admin_output_image("buttons/but_delete_small_disabled.gif",0,0,"delete theme");
					else
						admin_output_image("buttons/but_delete_small.gif","index.php?section=themes&action=delete&theme=".$key,0,"delete theme");
					admin_output_image("buttons/but_resend.gif","index.php?section=themes&action=clean&theme=".$key,0,"clean cache");
					?></td>
				</tr><?php
			}//while
		
		?>
		<tr><td colspan="3" align="center"><?php
		admin_form_element( array ("type" => "button", "value" => "Switch Theme") );
		?></td></tr>
	</form>
	</table></td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr><td><table cellpadding="2" cellspacing="2" border="0" align="center" width="400">
	<form action="index.php" method="post">
	<input type="hidden" name="section" value="themes">
	<input type="hidden" name="action" value="create">
		<tr><td colspan="3" class="lined blue_bcg white_body padded" align="center">Create New Theme</td></tr>
		<tr><td class="form_cell"><table cellpadding="0" cellspacing="3" border="0" align="center">
			<tr><td class="body">Theme Name</td><td class="highlight"><?php
			admin_form_element( array ("type" => "input", "size" => 30, "name" => "name") );
			?></td></tr>
			<tr><td colspan="2" align="center"><?php
			admin_form_element( array ("type" => "button" ,"value" => "Create") );
			?></td></tr>
		</table></td></tr>
	</form>
	</table>
	</td></tr>
</table>