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

📄 flow_report_img_more.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/img_bar.inc.php" );
include_once( "inc/auth_nohtml.php" );
$sql = "SELECT * FROM flow_report WHERE REPORT_ID=".$_REQUEST['REPORT_ID']."";
$rs = exequery( $connection, $sql );
$row = mysql_fetch_array( $rs );
$reportname = $row['REPORT_NAME'];
$sql = "SELECT ft.FLOW_NAME FROM flow_type ft,flow_report fr WHERE ft.FLOW_ID=fr.FLOW_ID AND fr.REPORT_ID=".$_REQUEST['REPORT_ID'];
$rs = exequery( $connection, $sql );
$row = mysql_fetch_array( $rs );
$flowname = $row['FLOW_NAME'];
$sql = "SELECT * FROM flow_report_field WHERE FIELD_IMG=1 AND REPORT_ID=".$_REQUEST['REPORT_ID'];
$rs = exequery( $connection, $sql );
while ( $row = mysql_fetch_array( $rs ) )
{
	$fdarray[] = $row['FIELD_NAME'];
}
$randyear = rand( 1996, 2010 );
$n = rand( 0, 2 );
$m = pow( 10, $n );
$narra = $fdarray;
$narra2 = array( "07051005", "07051006", "07051007", "07051008", "07051009", "07051010", "07051011", "07051012" );
$i = 1;
for ( ;	$i <= count( $narra2 );	++$i	)
{
	$a1[$i]['x'] = $narra2[$i];
	$j = 1;
	for ( ;	$j <= count( $narra );	++$j	)
	{
		$a1[$i]['y'][$j]['x'] = $narra[$j - 1];
		$min = 5 * $m;
		$xx_i = 5 < $i ? 5 : $i;
		$max = $xx_i * 10 * 2 * $m;
		$a1[$i]['y'][$j]['y'] = rand( $min, $max );
	}
}
$charhead = $reportname."(".$randyear."年".")";
$today = date( "Y-m-d H:i" );
$bottomnote = "报表生成日期时间".$today;
$subhead = $flowname." -- ".rand( 1, 15000 )." 条数据";
$cx = rand( 1, 2 );
$xtotal = count( $a1 );
$relp = new reportbarimg( );
$relp->definepic( "png", 700, 300 );
$relp->definepictinct( "gray02", "gray00", "gray01", "black" );
$relp->definecdpar( $xtotal, 1, "文号", 100 * $m, 10 * $m * $cx, "数值" );
$relp->definelppar( true, true, true, 10, -2 );
$relp->decorateimg( $charhead, $subhead, $bottomnote, $leftnote, $picname );
$relp->drawbasiccoordinate( $a1 );
$relp->drawreportbarmore( $a1 );
$relp->outimg( );
?>

⌨️ 快捷键说明

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