<?php include 'en/admin/_adminheader.php'; ?>
<h2>Mission and Travel Page: Short Term Opportunities</h2>
<p>
	Below is a list of the short term opportunities that you have on the 
	Mission and Travel page.
	You can add, edit or delete short term opportunities.
</p>
<p>
	<a href='/admin/missionandtravel.php?what=shorttermopportunities&do=add' title='Add a Short Term Opportunity' class='action'>Add a short term opportunity</a>
</p>
<table>
	<thead>
		<tr>
			<td>Title</td>
			<td>Description</td>
			<td class='actions'>Actions</td>
		</tr>
	</thead>
	<tbody>
<?php $count = 0; foreach($this->data['opps'] as $opp): ?>
		<tr <?php if($count % 2 == 1): echo "class='alt_row'"; endif; $count++; ?>>
			<td><?php echo $opp->title ?></td>
			<td><?php echo $opp->description ?></td>
			<td>
				<a href='/admin/missionandtravel.php?what=shorttermopportunities&do=edit&which=<?php echo $opp['id'] ?>' title='Edit' class='action'>Edit</a>
				<a href='/admin/missionandtravel.php?what=shorttermopportunities&do=delete&which=<?php echo $opp['id'] ?>' title='Delete' class='action'>Delete</a>
			</td>
		</tr>
<?php endforeach; ?>
	</tbody>
</table>
	