|
|
| ◎ 发送日期
<?php
$Conn = do_connect();
$SQL="SELECT * FROM T_Mail WHERE ( C_Index = '$F_Index') ORDER BY C_Index DESC";
Test_print(__FILE__,__LINE__,$SQL);
$res = do_sql( $SQL,$Conn );
if( mysql_errno() ) { do_error( mysql_error() ); }
$rows = do_fetch_row( $res );
echo (" | $rows[11] | ");
?>
书写回信 全体回信 转达信件
<?php
$mailaddr=htmlspecialchars($rows[4]);
$mailaddr = str_replace(" ", "", $mailaddr);
?>
| | ◎ 发送人 |
<?
echo $mailaddr
?>
<?
echo (" 添加到地址簿\n");
?>
| | ◎ 收信人 |
<?
$rows[6] = str_replace("\\","",$rows[6]);
$rows[6] = str_replace("\"\"","\"",$rows[6]);
echo htmlspecialchars($rows[6]);
?>
| | ◎ 参照 |
<?php
if(strcmp($rows[7],"")==0)
echo (" \n");
else {
$rows[7] = str_replace("\\","",$rows[7]);
$rows[7] = str_replace("\"\"","\"",$rows[7]);
$rows[7] = htmlspecialchars($rows[7]);
echo ("$rows[7]\n");
}
?>
| | ◎ 标题 | <? echo $rows[8] ?> | 重要程度:
<? $result=GetPriority($rows[3]); ?>
| | ◎ 内容 |
<?
/* if($rows[18] == 0) {
$contents = str_replace("\n", " \n", $rows[9]);
$contents = str_replace(" ", " ", $contents);
$contents = str_replace("\t", " ", $contents);
echo("<iframe>");
echo $contents;
echo("</iframe>");
}
else {
echo $rows[9];
}
do_free_result($res);
*/
?>
| |
<iframe src="mail_html_content.php3?F_Index=<?echo $F_Index?>" width=600 height=300 border=0></iframe>
<?
$SQL= "SELECT * FROM T_File WHERE C_MIndex = '$F_Index' AND C_Type = 'A'";
Test_print(__FILE__,__LINE__,$SQL);
$res = do_sql( $SQL,$Conn );
if( mysql_errno() ) { do_error( mysql_error() ); }
$numrows=do_num_rows($res);
if(intVal($numrows)==0) {
echo " ";
}
else {
echo ("\n\n");
while($file = do_fetch_object( $res )) {
echo "";
GetExtImg( $file->C_File,1 );
echo " \n";
echo "ddC_File"."\">$file->C_File (" . Get_Byte($file->C_Size) . ") | \n";
}//// while(1).
echo (" \n");
}
do_free_result($res);
$SQL="UPDATE T_Mail SET C_Read = 'Y' WHERE C_Index = $F_Index";
Test_print(__FILE__,__LINE__,$SQL);
$res = do_sql( $SQL,$Conn );
if( mysql_errno() ) { do_error( mysql_error() ); }
do_close($Conn);
?>
|
|
| |
|
|