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

📄 flow_report_img_all.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/img_count.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_ID=".$_REQUEST['FIELD_ID'];
$rs = exequery( $connection, $sql );
$row = mysql_fetch_array( $rs );
$fieldname = $row['FIELD_NAME'];
$randyear = rand( 1996, 2010 );
$n = rand( 0, 2 );
$m = pow( 10, $n );
$i = 1;
for ( ;	$i <= 12;	++$i	)
{
	$min = 5 * $m;
	$xx_i = 5 < $i ? 5 : $i;
	$max = $xx_i * 10 * 2 * $m;
	$array[$i]['x'] = $i."月";
	$array[$i]['y'] = rand( $min, $max );
}
$charhead = $reportname."(".$randyear."年".") - ".$fieldname;
$today = date( "Y-m-d H:i" );
$bottomnote = "报表生成日期时间".$today;
$subhead = $flowname." -- ".rand( 1, 15000 )." 条数据";
$cx = rand( 1, 2 );
$arrayCDScale = getxmaxval( $array );
$coordinateMax = $arrayCDScale[0];
$scale = $arrayCDScale[1];
$xtotal = count( $array );
$relp = new reportbarimg( );
$relp->definepic( "png", 700, 300 );
$relp->definepictinct( "gray02", "gray00", "gray01", "black" );
$relp->definecdpar( $coordinateMax, $scale * $cx, "数值", $xtotal, 1, "字段" );
$relp->definecdpar( $xtotal, 1, "数值", $coordinateMax, $scale * $cx, "字段" );
$relp->definelppar( false, true, true, 5, 10, true, "alpha" );
$relp->decorateimg( $charhead, $subhead, $bottomnote, $leftnote, $picname = "" );
$relp->drawbasiccoordinate( $array );
$relp->drawreportbar( $array, "blue", "same" );
$relp->outimg( );
?>

⌨️ 快捷键说明

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