Location: PHPKode > projects > lcdata > lcdata-0.0.1/frontend-web/frmnewmail.php3
<?
$frm_color='d0d0d0';

include 'includes/funktions.php';

//error_reporting(1);
$conn = connectdb();
getuserdaten();
require 'includes/labels.php';
$frm_color_row=$frm_color_high;
$text_height=$row_height*3;


if ($delete==true){
  $result = SQL_exec ($conn, "DELETE FROM mail WHERE ml_to=$usrd->us_userid AND ml_gid=$ml_gid");
  print "<script language=\"JavaScript\">\n";
  print "<!--\n";
  print "javascript:close()\n";
  print "//-->\n";
  print "</script>\n";
}
if ($close==true){
  SQL_exec ($conn, "UPDATE mail set ml_flag='o' WHERE ml_to=$usrd->us_userid AND ml_gid=$ml_gid");
  print "<script language=\"JavaScript\">\n";
  print "<!--\n";
  print "javascript:close()\n";
  print "//-->\n";
  print "</script>\n";
}

print "<html><head>";
print "<title>new mail popup</title>\n";
print "</head>\n";
print "<body BGCOLOR=\"#FFFFFF\" onLoad=\"window.focus();\">";
print "<div ALIGN=\"CENTER\">";

print "<h2>$lb_mail_msg</h2>";



$result = SQL_exec ($conn, "SELECT * FROM mail, known_users WHERE ml_gid=$ml_gid AND ml_from=ku_userid");
if (pg_numrows( $result )>0){

  $data = pg_fetch_object ($result, $row);
  print "<table>";
  print "<tr><th height=$row_height bgcolor=\"#$frm_color_head\" width=100>$lb_from</th><td bgcolor=\"#$frm_color_row\" width=300>$data->ku_name</td></tr>\n";
print "<tr><th height=$row_height bgcolor=\"#$frm_color_head\" width=100>$lb_recived</th><td bgcolor=\"#$frm_color_row\" width=300>$data->ml_lasttime</td></tr>\n";
  print "<tr><th height=$row_height bgcolor=\"#$frm_color_head\">$lb_subject</th><td bgcolor=\"#$frm_color_row\">$data->ml_subject&#160;</td></tr>\n";
  print "<tr><th height=$text_height bgcolor=\"#$frm_color_head\">$lb_text</th><td bgcolor=\"#$frm_color_row\">$data->ml_text&#160;</td></tr>\n";
  print "</table>";
}

print "<br>";
print "<TABLE WIDTH=\"376\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\"><tr>";
print "<td align=right><a href=\"frmnewmail.php3?delete=true&ml_gid=$data->ml_gid\"><img src=\"gfx/$lan/delete.gif\" border=0></a>";
print "<a href=\"frmnewmail.php3?close=true&ml_gid=$data->ml_gid\"><img src=\"gfx/$lan/close.gif\" border=0></a></td>";
print "</tr></TABLE>";
print "</div></body></html>";

?>

Return current item: lcdata