<?php include 'en/admin/_adminheader.php'; ?>
<h2>Prayer Requests Page: Missionary Moments</h2>
<p>
	Below is a list of the missionary moments that you have on the Prayer Requests 
	and on the Mission and Travel page.
	You can add, edit or delete missionary moments.
</p>
<p>
	<a href='/admin/prayerrequests.php?what=missionarymoments&do=add' title='Add a Missionary Moment' class='action'>Add a missionary moment</a>
</p>
<table>
	<thead>
		<tr>
			<td>Title</td>
			<td>Date</td>
			<td>Summary</td>
			<td>File</td>
			<td class='actions'>Actions</td>
		</tr>
	</thead>
	<tbody>
<?php $count = 0; foreach($this->data['moments'] as $moment): ?>
		<tr <?php if($count % 2 == 1): echo "class='alt_row'"; endif; $count++; ?>>
			<td><?php echo $moment->title ?></td>
			<td><?php echo $moment->date ?></td>
			<td><?php echo $moment->summary ?></td>
			<td><?php echo $moment->file ?></td>
			<td>
				<a href='/admin/prayerrequests.php?what=missionarymoments&do=edit&which=<?php echo $moment['id'] ?>' title='Edit' class='action'>Edit</a>
				<a href='/admin/prayerrequests.php?what=missionarymoments&do=delete&which=<?php echo $moment['id'] ?>' title='Delete' class='action'>Delete</a>
			</td>
		</tr>
<?php endforeach; ?>
	</tbody>
</table>
	