Esempio n. 1
0
?>

<a href="index.php">Return to Index</a>

<h2><?php 
echo $mailbox;
?>
</h2>

<table cellpadding="3" cellspacing="0"><tr><th>Sender</th><th>Subject</th><th>A</th><th>Date</th></tr>

<?php 
while ($resultRow = mysql_fetch_array($result)) {
    $row_color = $row_color != "#ffffff" ? "#ffffff" : "#dddddd";
    extract($resultRow);
    $subject = substr($subject, 0, 60);
    $fromaddress = substr(str_replace("<", "&lt;", $fromaddress), 0, 40);
    $date = str_replace(" ", "&nbsp;", $date);
    if ($subject == "") {
        $subject = "<i>No Subject</i>";
    }
    $attachments = hasAttachments($email_id) ? "A" : "&nbsp;";
    echo "<tr><td bgcolor='{$row_color}'> {$fromaddress}</td><td bgcolor='{$row_color}'><a href='email.php?email_id={$email_id}'>{$subject}</a></td><td bgcolor='{$row_color}'>{$attachments}</td><td bgcolor='{$row_color}'>{$date}</td>";
}
?>

</table>

</body>
</html>
Esempio n. 2
0
?>
</td></tr>
	<tr><td><b>CC:</b></td><td><?php 
echo $ccaddress;
?>
</td></tr>
	<tr><td><b>Date:</b></td><td><?php 
echo $date;
?>
</td></tr>
	<tr><td><b>Subject:</b></td><td><?php 
echo $subject;
?>
</td></tr>
	<?php 
if (hasAttachments($email_id)) {
    echo "<tr><td valign='top'><b>Attachments:</b></td><td>";
    $result = mysql_query("SELECT * FROM winamp_email_bodies WHERE email_id = {$email_id} AND type != 'text' AND type != 'multipart' AND filename != ''") or die(mysql_error());
    while ($resultRow = mysql_fetch_array($result)) {
        extract($resultRow);
        echo "<a href='attachment.php?email_id={$email_id}&part_number={$part_number}'>{$filename}</a><br>";
    }
    echo "</td></tr>";
}
?>
</table>
	
	<?php 
$result = mysql_query("SELECT * FROM winamp_email_bodies WHERE email_id = {$email_id} AND type = 'text'") or die(mysql_error());
while ($resultRow = mysql_fetch_array($result)) {
    extract($resultRow);