-
Notifications
You must be signed in to change notification settings - Fork 0
/
emailmgr.php
31 lines (30 loc) · 1.03 KB
/
emailmgr.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
include("includes/emailManager.php");
include("includes/conn.php");
if(isset($_GET['file_exec_id'])) {
$emails_query = Emailer::get_emails_by_file_exec_id_query($CDB, $_GET['file_exec_id']);
} else if(isset($_GET['email_id'])) {
$emails_query = Emailer::get_emails_by_email_id_query($CDB, $_GET['email_id']);
}
?>
<?php include("includes/page-header.php"); ?>
<a href='fileexecmgr.php'>Return to File Exec Manager</a>
<table>
<tbody>
<tr>
<th>To</th>
<th>Subject</th>
<th>Message</th>
<th>View</thl>
</tr>
<?php while($email = mysql_fetch_array($emails_query)) : ?>
<tr>
<td><?php echo htmlentities($email['mail_to']); ?></td>
<td><?php echo htmlentities($email['subject']); ?></td>
<!--<td><?php echo htmlentities(substr($email['message'], 0, 256)); if(strlen($email['message']) > 256) { echo "..."; } ?></td>-->
<td><a href='emailview.php?email_id=<?php echo $email['email_id'] ?>'>view</a></td>
</tr>
<?php endwhile; ?>
</tbody>
</table>
<?php include("includes/page-footer.php"); ?>