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

📄 report_view_data_list.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );
include_once( "inc/auth.php" );
echo "<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"\" cellpadding=\"5\">\r\n";
$sql = "SELECT * FROM flow_report_field WHERE REPORT_ID=".$_REQUEST['REPORT_ID']." AND FIELD_VIEW=1";
$rs = exequery( $connection, $sql );
echo "<tr class='tableheader'>";
$cnt = 0;
while ( $row = mysql_fetch_array( $rs ) )
{
	echo "<td>";
	echo $row['FIELD_NAME'];
	echo "</td>";
	++$cnt;
	$arraydata[]['FIELD_COUNT'] = $row['FIELD_COUNT'];
}
echo "</tr>";
$row = rand( 5, 15 );
$n = rand( 1, 5 );
$m = pow( 10, $n );
$i = 0;
for ( ;	$i < $row;	++$i	)
{
	echo "<tr>";
	$j = 0;
	for ( ;	$j < count( $arraydata );	++$j	)
	{
		echo "<td>";
		if ( $arraydata[$j]['FIELD_COUNT'] == 1 )
		{
			$data = rand( 1, 100 ) * $m;
			$araj[$j][] = $data;
		}
		else
		{
			$data = "字符";
		}
		echo $data;
		echo "</td>";
	}
	echo "</tr>";
}
echo "<tr style='font-weight:bold'>";
$j = 0;
for ( ;	$j < count( $arraydata );	++$j	)
{
	echo "<td>";
	if ( $arraydata[$j]['FIELD_COUNT'] == 1 )
	{
		$data = array_sum( $araj[$j] );
	}
	else
	{
		$data = "&nbsp;";
	}
	echo $data;
	echo "</td>";
}
echo "</tr>";
echo "</table>";
?>

⌨️ 快捷键说明

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