Skip to content
Snippets Groups Projects
Commit e4732301 authored by Brett Bieber's avatar Brett Bieber
Browse files

Allow sending confirmation emails again.

parent bc667bca
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,10 @@ class UNL_UCARE_Reminder ...@@ -20,6 +20,10 @@ class UNL_UCARE_Reminder
if (!$this->application) { if (!$this->application) {
throw new Exception('Could not find that application!'); throw new Exception('Could not find that application!');
} }
if (isset($options['confirmation'])) {
$this->application->emailApplicant();
} else {
$this->application->emailSponsor(); $this->application->emailSponsor();
} }
} }
}
\ No newline at end of file
...@@ -13,14 +13,19 @@ ...@@ -13,14 +13,19 @@
?> ?>
<tr> <tr>
<td><?php echo $id; ?> <td><?php echo $id; ?>
<td><?php echo $app->first_name.' '.$app->last_name; ?></td> <td>
<?php echo $app->first_name.' '.$app->last_name; ?><br />
<a style="font-size:smaller" href="?view=reminder&amp;year=<?php echo $year; ?>&amp;id=<?php echo $app->id; ?>&amp;confirmation=1">Send Confirmation</a>
</td>
<td><?php echo $app->title; ?></td> <td><?php echo $app->title; ?></td>
<td><?php echo date('Y-m-d', strtotime($app->datesubmitted)); ?></td> <td><?php echo date('Y-m-d', strtotime($app->datesubmitted)); ?></td>
<td><a href="http://peoplefinder.unl.edu/?uid=<?php echo $app->sponsor_uid; ?>"><?php echo $app->sponsor_uid; ?></a></td> <td><a href="http://directory.unl.edu/?uid=<?php echo $app->sponsor_uid; ?>"><?php echo $app->sponsor_uid; ?></a></td>
<?php if ($app->getEndorsement()) : ?> <?php if ($app->getEndorsement()) : ?>
<td class="complete">Endorsement complete</td> <td class="complete">Endorsement complete</td>
<?php else : ?> <?php else : ?>
<td><a href="?view=reminder&amp;year=<?php echo $year; ?>&amp;id=<?php echo $app->id; ?>">Send Reminder</a></td> <td>
<a href="?view=reminder&amp;year=<?php echo $year; ?>&amp;id=<?php echo $app->id; ?>">Send Reminder</a>
</td>
<?php endif; ?> <?php endif; ?>
<td><a href="?view=admin&amp;delete<?php echo $year; ?>=<?php echo $app->id; ?>" onclick="return confirm('Are you sure?');">Delete</a></td> <td><a href="?view=admin&amp;delete<?php echo $year; ?>=<?php echo $app->id; ?>" onclick="return confirm('Are you sure?');">Delete</a></td>
</tr> </tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment