📄 img_pie.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_pie.inc.php" );
$array = getbararray( $_REQUEST['reportstr'] );
$charhead = $_REQUEST['charhead'] != "" ? $_REQUEST['charhead'] : " ";
$subhead = $_REQUEST['subhead'] != "" ? $_REQUEST['subhead'] : " ";
$bottomnote = $_REQUEST['bottomnote'] != "" ? $_REQUEST['bottomnote'] : " ";
$width = $_REQUEST['rwidth'] ? $_REQUEST['rwidth'] : 500;
$height = $_REQUEST['rheight'] ? $_REQUEST['rheight'] : 300;
$ishaveshadow = isset( $_REQUEST['ishaveshadow'] ) ? $_REQUEST['ishaveshadow'] : 1;
$radiiln = $_REQUEST['radiiln'] != "" ? $_REQUEST['radiiln'] : 100;
$radiiscale = $_REQUEST['radiiscale'] != "" ? $_REQUEST['radiiscale'] : 0.6;
$xtotal = count( $array );
$relp = new reportpieimg( );
$relp->definepic( "png", $width, $height );
$relp->definepictinct( "gray02", "gray00", "gray01", "black" );
$relp->definecdpar( $xtotal, 1, "", 80, 10, "数值" );
$relp->definelppar( true, $ishaveshadow, $radiiscale, $radiiln );
$relp->decorateimg( $charhead = $charhead, $subhead = $subhead, $bottomnote = $bottomnote, $leftnote = "", $picname = "" );
$relp->drawbasiccoordinate( $array );
$relp->drawreportpie( $array );
$relp->outimg( );
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -