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

📄 sendjobfax.php

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

include_once( "inc/auth.php" );
include_once( "inc/utility_file.php" );
include_once( "inc/utility_fax.php" );
echo "<html>\r\n<head>\r\n<title>群发传真</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<script src=\"/inc/js/attach.js\"></script>\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n";
$DEL_COUNT = 0;
$query = "SELECT count(*) from EFAX_SEND_BOX where SYS_ID='".$batchNo."'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$DEL_COUNT = $ROW[0];
}
$query = "SELECT * from EFAX_SEND_BOX where SYS_ID='".$batchNo."' order by ID";
$cursor = exequery( $connection, $query );
echo $query;
echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/sentbox.gif\" WIDTH=\"20\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\"> 已发送传真</span></td>\r\n    <td valign=\"bottom\" class=\"small1\">共<span class=\"big4\">&nbsp;";
echo $DEL_COUNT;
echo "</span>&nbsp;件</td>  \r\n </tr>\r\n</table>\r\n";
if ( $DEL_COUNT == 0 )
{
	echo "<br>\r\n<br>\r\n";
	message( "提示", "无已发送传真" );
	exit( );
}
echo "<table class=\"TableList\" width=\"100%\">\r\n  <tr class=\"TableHeader\">\r\n      <td nowrap align=\"center\">收件人号码</td>\r\n      <td nowrap align=\"center\">收件人</td> \r\n      <td nowrap align=\"center\">发送时间</td> \r\n      <td nowrap align=\"center\">传真文件</td>\r\n      <td nowrap align=\"center\">状态</td>\r\n      <td nowrap align=\"center\">详细信息</td>\r\n    </tr>\r\n\r\n";
$DEL_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	++$DEL_COUNT;
	$FAX_ID = $ROW['ID'];
	$FAX_NO = $ROW['FAX_NO'];
	$RECEIVE_NO = $ROW['RECEIVE_NO'];
	$RNAME = $ROW['RNAME'];
	$RCOMPANY = $ROW['RCOMPANY'];
	$SEND_TIME = $ROW['SEND_TIME'];
	$ATTACHMENT_NAME = $ROW['ATTACHMENT_NAME'];
	$ATTACHMENT_ID = $ROW['ATTACHMENT_ID'];
	$STATE = $ROW['STATE'];
	if ( $STATE == "" )
	{
		$STATE_NAME = "<font color=blue>已提交</font>";
	}
	else
	{
		$STATE_NAME = get_fax_state( $STATE );
		if ( $STATE_NAME == "发送成功" || $STATE_NAME == "发送失败" )
		{
			if ( $STATE_NAME == "发送成功" )
			{
				$STATE_NAME = "<font color=green>发送成功</font>";
			}
			if ( $STATE_NAME == "发送失败" )
			{
				$STATE_NAME = "<font color=red>发送失败</font>";
			}
		}
		else
		{
			$STATE_NAME = "<font color=blue>".$STATE_NAME."</font>";
		}
	}
	if ( $DEL_COUNT % 2 == 1 )
	{
		$TableLine = "TableLine1";
	}
	else
	{
		$TableLine = "TableLine2";
	}
	echo "    <tr class=\"";
	echo $TableLine;
	echo "\">\r\n      <td nowrap align=\"center\">";
	echo $RECEIVE_NO;
	echo "</td>\r\n      <td nowrap align=\"center\">";
	echo $RNAME;
	echo "</td>\r\n      <td nowrap align=\"center\">";
	echo $SEND_TIME;
	echo "</td>\r\n      <td nowrap align=\"left\">";
	echo attach_link( $ATTACHMENT_ID, $ATTACHMENT_NAME, 0, 1, 1 );
	echo "</td>\r\n      <td nowrap align=\"center\">";
	echo $STATE_NAME;
	echo "</td>\r\n      <td nowrap align=\"center\"><a  href=\"faxdetail.php?FaxID=";
	echo $FAX_ID;
	echo "\">详情</a></td>\r\n    </tr>\r\n ";
}
echo "</table>\r\n</td>\r\n</tr>\r\n</table>\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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