cakeimg.php
来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 32 行
PHP
32 行
<?
include ("inc/conn.php");
include ("inc/jpgraph/jpgraph.php");
include ("inc/jpgraph/jpgraph_pie.php");
include ("inc/jpgraph/jpgraph_pie3d.php");
$labLst=explode(",",substr($ARRAY_FIELD1,0,strlen($ARRAY_FIELD1)-1));
$datLst=explode(",",substr($graphValues1,0,strlen($graphValues1)-1));
// Create the Pie Graph.
$graph = new PieGraph(700,500,"auto");
//$graph->SetShadow();
// Set A title for the plot
$graph->title->Set($MODULENAME);
$graph->title->SetFont(FF_SIMSUN,FS_BOLD,18);
$graph->title->SetColor("darkblue");
$graph->legend->SetFont(FF_SIMSUN,FS_NORMAL,10);
//$graph->legend->Pos(0.1,0.2);
// Create pie plot
$p1 = new PiePlot3d($datLst);
$p1->SetTheme("td");
$p1->SetCenter(0.4);
$p1->SetAngle(60);
$p1->SetLabelType(PIE_VALUE_ADJPER);
$p1->value->SetFont(FF_SIMSUN,FS_NORMAL,10);
$p1->SetLegends($labLst);
$graph->Add($p1);
$graph->Stroke();
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?