<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_profiles">Approve Profiles</a></td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr><td>		
		<table align="center" cellpadding="2" cellspacing="2" border="0" width="500">
		<form action="index.php" method="post">
		<input type="hidden" name="section" value="manage_profiles">
		<input type="hidden" name="ret_link" value="<?php echo $data["link"]; ?>">
		<input type="hidden" name="action" value="approve_profile">		
		<tr>
			<td class="list_header" align="center">
			<input type="checkbox" onclick="HS_TickAll('mem_id[]',this.form)" name="tick_tracker">
			</td>
			<td class="list_header" align="center">Member ID</td>
			<td class="list_header" align="center">Name</td>
			<td class="list_header" align="center">E-mail</td>						
			<td class="list_header" align="center">Membership</td>
			<td class="list_header" align="center">Action</td>
		</tr>
		<?php
		
			foreach($data["cards"] as $card){
			?>
			<tr>
				<td class="list_cell"><?php
				admin_form_element(array ("type" => "checkbox", "name" => "mem_id[]", "ovalue" => $card["mem_id"]));
				?></td>
				<td class="list_cell"><?php echo $card["mem_id"]; ?></td>
				<td class="list_cell"><?php echo $card["name"]; ?></td>
				<td class="list_cell"><?php echo $card["email"]; ?></td>				
				<td class="list_cell" align="center"><?php
				if($card["paid"])
					admin_output_image("icons/paid_member.gif",0,0,"Paid Member");
				else
					admin_output_image("icons/free_member.gif",0,0,"Free Member");
				?></td>
				<td class="list_cell"><table cellpadding="0" cellspacing="0" border="0" align="center"><?php
					?><tr>					
					<td><?php admin_output_image("buttons/but_view_small.gif",$card["view"],0,"view",1); ?></td>
					<td><?php admin_output_image("buttons/but_edit_small.gif",$card["edit"],0,"edit"); ?></td>
					<td><?php admin_output_image("buttons/but_verify.gif",$card["approve"],0,"approve",1); ?></td>
					<td><?php (!$card["banned"]) ? admin_output_image("buttons/but_ban_small.gif",$card["ban"],0,"ban") : admin_output_image("buttons/but_unban_small.gif",$card["unban"],0,"unban"); ?></td>
					<td><?php admin_output_image("buttons/but_delete_small.gif",$card["delete"],0,"delete"); ?></td></tr>					
				</table></td>
			</tr>
			<?php
			}//foreach
					
		?>
		<tr>			
			<td colspan="6" align="center"><?php
			admin_form_element( array ("type" => "button", "value" => "Approve", "bsubmit" => "this.form.action.value='approve_profile';") );
			echo "&nbsp;";
			admin_form_element( array ("type" => "button", "value" => "Approve All", "bsubmit" => "this.form.action.value='approve_all';") );
			echo "&nbsp;";
			admin_form_element( array ("type" => "button", "value" => "Delete", "bsubmit" => "this.form.section.value='manage_members';this.form.action.value='delete_member';") );
			echo "&nbsp;";
			admin_form_element( array ("type" => "button", "value" => "Delete All", "bsubmit" => "this.form.action.value='delete_all';") );
			echo "&nbsp;";
			?></td>			
		</tr>		
		</form>
		</table>
	</td></tr>
	<tr><td>&nbsp;</td></tr>
	<?php if(is_array($data["pages"][numbers])): ?>
	<tr>
		<td class="pages_line">
			<table cellpadding="0" cellspacing="0" border="0" align="center" height="20">
				<tr>					
					<td align="center" class="pages_body">
					<?php
						if($data["pages"][prev]){
							?><a href="<?php echo $data["pages"][prev]; ?>">&lt;&lt;</a>&nbsp;<?php
						}//if
						while(list($page,$link) = each($data["pages"][numbers])){
							?><a href="<?php echo $link; ?>"><?php echo ($page == $data["pages"][current]) ? "<b>".$page."</b>" : $page ; ?></a>&nbsp;<?php
						}//while
						if($data["pages"][next]){
							?><a href="<?php echo $data["pages"][next]; ?>">&gt;&gt;</a>&nbsp;<?php
						}//if
					?>
					</td>
			</table>			
		</td>
	</tr>
	<?php endif; ?>
</table>