<?php include 'en/admin/_adminheader.php'; ?>
<h2>Photos and Videos Page: Videos</h2>
<p>
	Below is a list of the videos that you have on the Photos and Videos page.
	You can add, edit or delete videos.
</p>
<p>
	<a href='/admin/photosandvideos.php?what=videos&do=add' title='Add a video' class='action'>Add a video</a>
</p>
<table>
	<thead>
		<tr>
			<td>Name</td>
			<td>File</td>
			<td>Image</td>
			<td>Actions</td>
		</tr>
	</thead>
	<tbody>
<?php $count = 0; foreach($this->data['videos'] as $video): ?>
		<tr <?php if($count % 2 == 1): echo "class='alt_row'"; endif; $count++; ?>>
			<td><?php echo $video->name ?></td>
			<td><?php echo $video->file ?></td>
			<td><?php echo $video->image ?>
			<td>
				<a href='/admin/photosandvideos.php?what=videos&do=edit&which=<?php echo $video['id'] ?>' title='Edit' class='action'>Edit</a>
				<a href='/admin/photosandvideos.php?what=videos&do=delete&which=<?php echo $video['id'] ?>' title='Delete' class='action'>Delete</a>
			</td>
		</tr>
<?php endforeach; ?>
	</tbody>
</table>
	