<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_recordings">Approve Recordings</a></td></tr>
	<tr><td>&nbsp;</td></tr>	
	<?php if(count($data["recordings"]) == 0): ?>
	<tr><td align="center" class="body">No recordings awaiting for approval.</td></tr>
	<?php else: ?>
	<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_recordings">
		<input type="hidden" name="ret_link" value="<?php echo $data["link"]; ?>">
		<input type="hidden" name="action" value="">
		<tr>
			<td class="list_header" align="center">
			<input type="checkbox" onclick="HS_TickAll('hash[]',this.form)" name="tick_tracker">
			</td>
			<td class="list_header" align="center">Posted by</td>
			<td class="list_header" align="center">Message Type</td>
			<td class="list_header" align="center">Where</td>
			<td class="list_header" align="center">Listen/View</td>
			<td class="list_header" align="center">Action</td>
		</tr>
		<?php
		
			foreach($data["recordings"] as $recording){
			?>
			<tr>
				<td class="list_cell" align="center">
				<?php admin_form_element( array ("type" => "checkbox", "name" => "hash[]", "ovalue" => $recording["hash"]) ); ?>
				</td>
				<td class="list_cell"><a href="<?php echo $recording["author"]["link"]; ?>" target="_blank"><?php echo $recording["author"]["name"]; ?></a><br>(ID: <?php echo $recording["author"]["mem_id"]; ?>)</td>
				<td class="list_cell"><?=$recording["type"]?></td>
				<td class="list_cell"><?=$recording["msg_type"]?></td>
				<td class="list_cell">
				<?php
				if ($recording["type"] == "Audio"){
					echo '<script type="text/javascript">
								AC_FL_RunContent( "codebase","http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0",
										"width","22",
										"height","21",
										"src","/swf/hsaplayer",
										"quality","high",
										"allowScriptAccess","always",
										"bgcolor","#ffffff",
										"FlashVars","mem_id='.$recording["mem_id"].'&MainURL='.extract_mainurl().'&hash='.$recording["hash"].'",
										"pluginspage","http://www.macromedia.com/go/getflashplayer",
										"movie","/swf/hsaplayer" );
								</script>';
				}
				else{
					admin_output_image("buttons/but_play.gif",$recording["view"],0,"View");
				}
				?></td>
				<td class="list_cell" align="center"><?php
				admin_output_image("buttons/but_verify.gif",$recording["approve"],0,"approve");
				admin_output_image("buttons/but_delete_small.gif",$recording["delete"],0,"delete");
				?></td>
			</tr>
			<?php
			}//foreach
					
		?>
		<tr>			
			<td colspan="6" align="center"><?php
			admin_form_element( array ("type" => "button", "value" => "Approve", "bsubmit" => "this.form.section.value='manage_recordings';this.form.action.value='approve';") );
			echo "&nbsp;";
			admin_form_element( array ("type" => "button", "value" => "Approve All", "bsubmit" => "this.form.section.value='manage_recordings';this.form.action.value='approve_all';") );
			echo "&nbsp;";
			admin_form_element( array ("type" => "button", "value" => "Delete", "bsubmit" => "this.form.section.value='manage_recordings';this.form.action.value='delete';") );
			echo "&nbsp;";
			admin_form_element( array ("type" => "button", "value" => "Delete All", "bsubmit" => "this.form.section.value='manage_recordings';this.form.action.value='delete_all';") );
			?></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; ?>
	<?php endif; ?>
</table>