<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=manage_club">Manage Clubs</a>&nbsp;&gt;&nbsp;Edit Club</td></tr>
	<tr><td height="2"><?php admin_output_image("spacer.gif"); ?></td></tr>
	<tr><td class="lined blue_bcg white_body padded" align="center">General Info</td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr><td>
		<table cellpadding="0" cellspacing="3" border="0" width="450" align="center">
		<form action="index.php" method="post" name="clubs_edit">
		<input type="hidden" name="section" value="manage_clubs">
		<input type="hidden" name="action" value="save_club">
		<input type="hidden" name="clb_id" value="<?php echo $data["clb_id"]; ?>">
		<input type="hidden" name="ret_link" value="<?php echo $data["link"]; ?>">
		<?php
		foreach($GLOBALS["forms"] as $form){
			while(list($key,$val) = each($form["labels"])){
				if($form["names"][$key] != "folder" && $form["names"][$key] != "membership" && $form["names"][$key] != "name"  && $form["names"][$key] != "brief"  && $form["names"][$key] != "description"){
				?><tr><td class="body" width="50%" align="right"><?php echo $val; ?></td><?php
				?><td class="highlight" valign="top"><?php echo $form["elements"][$key]; ?></td></tr><?php
				}//if
				else{
				?><tr><td class="body" colspan="2" align="center"><?php echo $val; ?></td></tr><?php
				?><tr><td colspan="2" class="highlight" align="center"><?php echo $form["elements"][$key]; ?></td></tr><?php
				}//else
			}//while
			?><tr><td colspan="2" bgcolor="#CCCCCC"><?php
			admin_output_image("spacer.gif");
			?></td></tr><?php
		}//foreach
		?>
		<tr><td colspan="2" align="center"><?php
		admin_form_element( array ("type" => "button", "value" => "Back", "link" => $data["link"]) );
		echo "&nbsp;";
		admin_form_element( array ("type" => "button", "value" => "Update") );
		?></td></tr>
		</form>
		</table>
	</td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr><td class="lined blue_bcg white_body padded" align="center">Manage Members</td></tr>	
	<tr><td>&nbsp;</td></tr>
	<?php if(count($data["cards"])){ ?>
	<tr><td>
		<table align="center" cellpadding="2" cellspacing="2" border="0">
		<tr>
			<td class="list_header" align="center">Member ID</td>
			<td class="list_header" align="center">Name</td>
			<td class="list_header" align="center">Action</td>
		</tr>
		<?php
		
			foreach($data["cards"] as $card){
			?>
			<tr>
				<td class="list_cell"><?php echo $card["mem_id"]; ?></td>
				<td class="list_cell"><?php echo $card["name"]; ?></td>
				<td class="list_cell" align="center"><?php
					admin_output_image("buttons/but_delete_small.gif",$card["delete"],0,"remove");
				?></td>
			</tr>
			<?php
			}//foreach
					
		?>
		</table>
	</td></tr>
	<tr><td>&nbsp;</td></tr>
	<?php } ?>
	<tr><td class="lined blue_bcg white_body padded" align="center">Manage Photos</td></tr>
	<?php if(count($data["photos"]) > 0): ?>
	<tr><td>		
		<table align="center" cellpadding="2" cellspacing="2" border="0" width="400">
		<tr>
			<td class="list_header" align="center">Photo</td>
			<td class="list_header" align="center" width="100%">Caption</td>
			<td class="list_header" align="center">Action</td>
		</tr>
		<?php
		
			foreach($data["photos"] as $photo){
			?>
			<tr>
				<td class="list_cell"><?php admin_output_image($photo["photo"],$photo["edit"],"photos"); ?></td>
				<td class="list_cell"><?php echo $photo["caption"]; ?></td>
				<td class="list_cell"><?php
					admin_output_image("buttons/but_edit_small.gif",$photo["edit"],0,"edit");
					admin_output_image("buttons/but_delete_small.gif",$photo["delete"],0,"delete");
				?></td>
			</tr>
			<?php
			}//foreach
					
		?>
		</table>
	</td></tr>
	<?php endif; ?>
</table>