<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=profile_sections&theme=<?php echo $data["theme"]; ?>">Profile Sections</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='profile_sections'>
			<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 align="center" cellpadding="2" cellspacing="2" border="0" width="400">
		<tr><td colspan="2" class="form_cell"><table cellpadding="0" cellspacing="3" border="0" align="center">
		<form action="index.php" method="post">
		<input type="hidden" name="section" value="profile_sections">
		<input type="hidden" name="action" value="create">
		<input type="hidden" name="theme" value="<?php echo $data["theme"]; ?>">
			<tr><td class="body">Section Name</td><td class="highlight"><?php
			admin_form_element( array ("type" => "input", "name" => "section_name", "value" => $data["values"][section_name]) );
			?></td></tr>
			<tr><td class="body">Account Page Name</td><td class="highlight"><?php
			admin_form_element( array ("type" => "input", "name" => "account_page", "value" => $data["values"][account_page]) );
			?></td></tr>
			<tr><td class="body">Profile Page Name</td><td class="highlight"><?php
			admin_form_element( array ("type" => "input", "name" => "profile_page", "value" => $data["values"][profile_page]) );
			?></td></tr>
			<tr><td colspan="2" align="center"><?php
			admin_form_element( array ("type" => "button", "value" => "Create New Profile Section") );
			?></td></tr>
		</form>
		</table></td></tr>
		<tr>
			<td class="list_header" align="center">Profile Section</td>
			<td class="list_header" align="center">Action</td>
		</tr>
		<?php
		
			foreach($data["profiles"] as $profile){
			?>
			<tr>
				<td class="list_cell"><?php echo $profile["name"]; ?></td>
				<td class="list_cell" align="center"><?php
				admin_output_image("buttons/but_edit_small.gif",$profile["edit"],0,"edit");
				admin_output_image("buttons/but_resend.gif",$profile["copy"],0,"copy");
				if(count($data["profiles"]) > 1)
				admin_output_image("buttons/but_delete_small.gif",$profile["delete"],0,"delete");
				else
				admin_output_image("buttons/but_delete_small_disabled.gif",0,0,"delete");
				?></td>
			</tr>
			<?php
			}//foreach
					
		?>
		</table>
	</td></tr>
</table>