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

📄 img_bar.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" );
ob_end_clean( );
include_once( "inc/img_count.php" );
include_once( "inc/img_bar.inc.php" );
$array = getbararray( $_REQUEST['reportstr'] );
$charhead = $_REQUEST['charhead'] != "" ? $_REQUEST['charhead'] : " ";
$subhead = $_REQUEST['subhead'] != "" ? $_REQUEST['subhead'] : " ";
$bottomnote = $_REQUEST['bottomnote'] != "" ? $_REQUEST['bottomnote'] : " ";
$wh = getwidthheight( $array );
$width = $_REQUEST['rwidth'] != "" ? $_REQUEST['rwidth'] : $wh['w'];
$height = $_REQUEST['rheight'] != "" ? $_REQUEST['rheight'] : $wh['h'];
$ishavegrid = isset( $_REQUEST['ishavegrid'] ) ? $_REQUEST['ishavegrid'] : 1;
$isynote = isset( $_REQUEST['isynote'] ) ? $_REQUEST['isynote'] : 1;
$barside = isset( $_REQUEST['barside'] ) ? $_REQUEST['barside'] : 1;
$barspace = $_REQUEST['barspace'] != "" ? $_REQUEST['barspace'] : 10;
$morebarspace = $_REQUEST['morebarspace'] != "" ? $_REQUEST['morebarspace'] : 2;
$effect = $_REQUEST['effect'] != "" ? $_REQUEST['effect'] : "alpha";
$xmax = count( $array );
$xnote = "字段名";
$arrayCDScale = getxmaxval( $array );
$coordinateMax = $arrayCDScale[0];
$scale = $arrayCDScale[1];
$xtotal = count( $array );
$relp = new reportbarimg( );
$relp->definepic( "png", $width, $height );
$relp->definepictinct( "gray02", "gray00", "gray01", "black" );
$relp->definecdpar( $xmax, 1, $xnote, $coordinateMax, $scale, "数值" );
$relp->definelppar( $ishavegrid, $ishavegrid, $isynote, $barspace, $morebarspace, $barside, $effect );
$relp->decorateimg( $charhead, $subhead, $bottomnote, $leftnote, $picname );
$relp->drawbasiccoordinate( $array );
$relp->drawreportbar( $array, "blue" );
$relp->outimg( );
?>

⌨️ 快捷键说明

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