Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bulent Tezcan  >  Html_graph.php  >  test.php  >  Download  
File: test.php
Role: ???
Content type: text/plain
Description: php file to test the class
Class: Html_graph.php
Author: By
Last change:
Date: 2002-04-06 01:19
Size: 1,691 bytes
 

Contents

Class file image Download
<?
	require_once "HTML_graph.php";


Header("Content-type:  text/html");

$bar = new HTML_graph();

$text = array("Blod Pressure","Body Composition","Fasting Cholesterol","Fasting Glucose","Physical Activity","Alchocol Consumption","Driving","Smoking","Family History","Self Care practicies","Health Screening","Environmentel Factors");
$value = array (100,50,40,50,30,10,75,68,53,89,23,45);

$bar->set($text,$value,1500,10,0,"FFB164","E8E8D0",0);
#set($text,$value,$scale,$size2,$decp=2,$colour="FF0000",$bgcolour="",$border=0)
$bar->SetTitle("Horizontal Bar Plot with one colour and a background colour and image");
$bar->SetBackgroungImage("tile.jpg");
$bar->SetPercentage(false);
$bar->SetTextFontColor("FFFFFF");
$bar->SetNumberFontColor("33FFFF");
$bar->SetBorderColor("6B6B6B");
echo $bar->horizontal();
echo "<HR>";

$colors = array("CC00CC","00CC00","000000");
$bar->Set($text,$value,1500,10,$colors,"",0,"fcfcfc");
$bar->SetTextFontColor("000000");
$bar->SetTextFontSize("xx-small");
$bar->SetNumberFontColor("CC0000");
$bar->SetTitle("Horizontal Bar Plot with three colours");
$bar->SetBorderStyle("inset");
$bar->SetShadow(true);
echo $bar->horizontal();
echo "<HR>";


#$bar->SetTitle("Vertical Bar Plot with three colours");
$colors = array("FFFF00","99CC99","CCCCFF");
$bar->Set($text,$value,1500,10,$colors,"",0,"fcfcfc");
$bar->SetBackgroungImage("tile1.jpg");
$bar->SetNumberFontColor("CCCCCC");
$bar->SetTitle("");
$bar->SetTextFontColor("ffffff");
$bar->SetBgColour("666633");
$bar->SetBorderStyle("outset");
$bar->SetBorderWidth("medium");
$bar->SetBorderColor("62B0FF");
$bar->SetShadow(false);
echo $bar->vertical();

?>