<?php include 'en/admin/_adminheader.php'; ?>
<h2>Mission and Travel Page: Travel Info</h2>
<p>
	Below is a list of the travel information that you have on the 
	Mission and Travel page.
	You can add, edit or delete travel info.
</p>
<p>
	<a href='/admin/missionandtravel.php?what=travelinfo&do=add' title='Add a travel info' class='action'>Add travel info</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['infos'] as $info): ?>
		<tr <?php if($count % 2 == 1): echo "class='alt_row'"; endif; $count++; ?>>
			<td><?php echo $info->title ?></td>
			<td><?php echo $info->description ?></td>
			<td>
				<a href='/admin/missionandtravel.php?what=travelinfo&do=edit&which=<?php echo $info['id'] ?>' title='Edit' class='action'>Edit</a>
				<a href='/admin/missionandtravel.php?what=travelinfo&do=delete&which=<?php echo $info['id'] ?>' title='Delete' class='action'>Delete</a>
			</td>
		</tr>
<?php endforeach; ?>
	</tbody>
</table>
	