⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 export_bat.php

📁 通达网络办公 - Office Anywhere 2008 增强版100%源码(3.4.081216) 内含 通达OA2008增強版接近完美破解补丁20081216集 及 最新通达OA2008ADV(
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "inc/check_type.php" );
include_once( "inc/utility_all.php" );
ob_end_clean( );
header( "Cache-control: private" );
header( "Content-type: application/vnd.ms-excel" );
header( "Content-Disposition: attachment; filename= 内部邮件.xls" );
echo "\r\n<html xmlns:o=\"urn:schemas-microsoft-com:office:office\"\r\nxmlns:x=\"urn:schemas-microsoft-com:office:excel\"\r\nxmlns=\"http://www.w3.org/TR/REC-html40\">\r\n<head>\r\n<title></title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n<body topmargin=\"5\">\r\n <table border=\"1\" cellspacing=\"1\" width=\"95%\" class=\"small\" cellpadding=\"3\">\r\n    <tr style=\"BACKGROUND: #D3E5FA; color: #000000; font-weight: bold;\">\r\n      <td align=\"center\">发件人</td>\r\n      <td align=\"center\">收件人</td>\r\n      <td align=\"center\">主题</td>\r\n      <td align=\"center\">时间</td>\r\n      <td align=\"center\">内容</td>\r\n      <td align=\"center\">附件名称</td>\r\n    </tr>\r\n";
$query = "SELECT * from EMAIL_BODY where FROM_ID='".$LOGIN_USER_ID."' and find_in_set(BODY_ID,'{$DELETE_STR}')";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	$FROM_WEBMAIL = $ROW['FROM_WEBMAIL'];
	$TO_WEBMAIL = $ROW['TO_WEBMAIL'];
	$SUBJECT = $ROW['SUBJECT'];
	$CONTENT = $ROW['CONTENT'];
	$SEND_TIME = $ROW['SEND_TIME'];
	$ATTACHMENT_NAME = $ROW['ATTACHMENT_NAME'];
	if ( substr( $TO_WEBMAIL, -1 ) == "," )
	{
		$TO_WEBMAIL = substr( $TO_WEBMAIL, 0, -1 );
	}
	$SUBJECT = htmlspecialchars( $SUBJECT );
	$CONTENT = str_replace( "  ", "&nbsp;&nbsp;", $CONTENT );
	$CONTENT = str_replace( "\n", "<br>", $CONTENT );
	echo "    <tr>\r\n      <td nowrap align=\"center\">";
	echo $FROM_WEBMAIL;
	echo "</td>\r\n      <td nowrap align=\"center\">";
	echo $TO_WEBMAIL;
	echo "</td>\r\n      <td nowrap>";
	echo $SUBJECT;
	echo "</td>\r\n      <td nowrap align=\"center\" x:str=\"'";
	echo $SEND_TIME;
	echo "\">";
	echo $SEND_TIME;
	echo "</td>\r\n      <td>";
	echo $CONTENT;
	echo "</td>\r\n      <td>";
	echo str_replace( "*", "<br>", $ATTACHMENT_NAME );
	echo "</td>\r\n    </tr>\r\n";
}
echo "</table>";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -