<?php include 'en/admin/_adminheader.php'; ?>
<h2>Resources Page: Teaching Outlines</h2>
<p>
	Below is a list of the file that you have on the Resources page
	under "Teaching Outlines".
	You can add or delete any of these files.  To replace a file with an updated
	version, delete the old file and then add the new one.
</p>
<p>
	<a href='/admin/resources.php?what=teachingoutlines&do=add' title='Add a file' class='action'>Add a file</a>
</p>
<table>
	<thead>
		<tr>
			<td>File</td>
			<td>Actions</td>
		</tr>
	</thead>
	<tbody>
<?php $count = 0; foreach($this->data['files'] as $file): ?>
		<tr <?php if($count % 2 == 1): echo "class='alt_row'"; endif; $count++; ?>>
			<td><?php echo $file ?></td>
			<td>
				<a href='/admin/resources.php?what=teachingoutlines&do=delete&which=<?php echo $file['id'] ?>' title='Delete file' class='action'>Delete</a>
			</td>
		</tr>
<?php endforeach; ?>
	</tbody>
</table>
