<?php $alertEmailAddress = new AlertEmailAddress(); $alertDaysInAdvance = new AlertDaysInAdvance(); $emailAddressArray = $alertEmailAddress->allAsArray(); $daysInAdvanceArray = $alertDaysInAdvance->allAsArray(); echo "<div class='adminRightHeader'>" . _("Alert Settings") . "</div>"; if (count($emailAddressArray) > 0) { ?> <table class='linedDataTable'> <tr> <th style='width:100%;'><?php echo _("Email Address"); ?> </th> <th style='width:20px;'> </th> <th style='width:20px;'> </th> </tr> <?php foreach ($emailAddressArray as $emailAddress) { echo "<tr>"; echo "<td>" . $emailAddress['emailAddress'] . "</td>"; echo "<td><a href='ajax_forms.php?action=getAdminAlertEmailForm&alertEmailAddressID=" . $emailAddress['alertEmailAddressID'] . "&height=128&width=260&modal=true' class='thickbox'><img src='images/edit.gif' alt='" . _("edit") . "' title='" . _("edit") . "'></a></td>"; echo "<td><a href='javascript:deleteAlert(\"AlertEmailAddress\", " . $emailAddress['alertEmailAddressID'] . ");'><img src='images/cross.gif' alt='" . _("remove") . "' title='" . _("remove") . "'></a></td>"; echo "</tr>"; } ?> </table> <?php } else { echo _("(none found)") . "<br />";