Location: PHPKode > projects > Mozart > Mozart-0.0.4/showmail.php
<?
// called from: gmail.php
// description: displays email text from database gmail
//
include("connect.inc");
include("reqlogin.inc");
include("userprefs.inc");
?>
<html>
<title>Mozart: Gmail Email</title>
<body bgcolor=<? echo $bgcolor ?> text=<? echo $txtcolor ?>>
<? include("links.inc"); ?>
<center>
<? echo $Message ?>
</center>
<form action="emailxref.php" method="post">
<? 
include("getemailxproj.inc"); 
include("getemailxcont.inc");
include("getallprojs.inc"); 
?>
<br>
<?  include("getallcontacts.inc"); ?>
<input type="submit" name=Submit value="Associate">
<input type="hidden" name=emailno value=<? echo $emailno ?>>
</form>
<?
mysql_close($db);
include("connect-gmail.inc");

$EmailSQL = "SELECT message, tofield, ccfield, subject, fromfield FROM details, display WHERE details.id = '$emailno' and details.id = display.id";
$Email    = mysql_query($EmailSQL);
$email    = mysql_fetch_array($Email);
?>
<br>
<pre>
To: <? echo $email["tofield"] ?><br>
CC: <? echo $email["ccfield"] ?><br>
Fr: <? echo $email["fromfield"] ?><br>
Re: <? echo $email["subject"] ?><br>
<br>
<? echo $email["message"] ?>
</pre>
<br>
<?
include("links.inc");
?>
</body>
</html>
Return current item: Mozart