403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/www/myschool/triamudom/check/webadmin/S_Graph/jpgraph/Examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/myschool/triamudom/check/webadmin/S_Graph/jpgraph/Examples/odotutex06.php
<?php
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_odo.php');

// Create a new odometer graph (width=250, height=200 pixels)
$graph = new OdoGraph(570,220);

$nstyle = array(
	NEEDLE_STYLE_SIMPLE, NEEDLE_STYLE_STRAIGHT, NEEDLE_STYLE_ENDARROW,
	NEEDLE_STYLE_SMALL_TRIANGLE,NEEDLE_STYLE_MEDIUM_TRIANGLE,
	NEEDLE_STYLE_LARGE_TRIANGLE
);

$captions = array(
	"NEEDLE_STYLE_SIMPLE","NEEDLE_STYLE_STRAIGHT","NEEDLE_STYLE_ENDARROW",
	"NEEDLE_STYLE_SMALL_TRIANGLE","NEEDLE_STYLE_MEDIUM_TRIANGLE",
	"NEEDLE_STYLE_LARGE_TRIANGLE"
);

$odo = array();

for( $i=0; $i < 6; ++$i ) {
	$odo[$i] = new Odometer();
	$odo[$i]->SetColor("lightyellow");
	$odo[$i]->needle->Set(80);
	$odo[$i]->needle->SetStyle($nstyle[$i]);
	$odo[$i]->caption->Set($captions[$i]);
	$odo[$i]->caption->SetFont(FF_FONT1);
	$odo[$i]->caption->SetMargin(3);
}

// Use the automatic layout engine to positon the plots on the graph
$row1 = new LayoutHor( array($odo[0],$odo[1],$odo[2]) );
$row2 = new LayoutHor( array($odo[3],$odo[4],$odo[5]) );
$col1 = new LayoutVert( array($row1,$row2) );

// Add the odometer to the graph
$graph->Add($col1);

// ... and finally stroke and stream the image back to the browser
$graph->Stroke();

?>

Youez - 2016 - github.com/yon3zu
LinuXploit