summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/web
diff options
context:
space:
mode:
Diffstat (limited to 'notFinishedCode/web')
-rw-r--r--notFinishedCode/web/example.drawFilledCircle.php45
-rw-r--r--notFinishedCode/web/icons/blackberry_dunno.pngbin0 -> 1922 bytes
-rw-r--r--notFinishedCode/web/icons/blackberry_fail.pngbin0 -> 1954 bytes
-rw-r--r--notFinishedCode/web/icons/blackberry_work.pngbin0 -> 1988 bytes
-rw-r--r--notFinishedCode/web/icons/box_dunno.pngbin0 -> 1255 bytes
-rw-r--r--notFinishedCode/web/icons/box_fail.pngbin0 -> 1407 bytes
-rw-r--r--notFinishedCode/web/icons/box_work.pngbin0 -> 1420 bytes
-rw-r--r--notFinishedCode/web/icons/telephone_dunno.pngbin0 -> 1798 bytes
-rw-r--r--notFinishedCode/web/icons/telephone_fail.pngbin0 -> 1871 bytes
-rw-r--r--notFinishedCode/web/icons/telephone_work.pngbin0 -> 1883 bytes
-rw-r--r--notFinishedCode/web/testCase.php6
11 files changed, 47 insertions, 4 deletions
diff --git a/notFinishedCode/web/example.drawFilledCircle.php b/notFinishedCode/web/example.drawFilledCircle.php
index e3735dc..e8e09a0 100644
--- a/notFinishedCode/web/example.drawFilledCircle.php
+++ b/notFinishedCode/web/example.drawFilledCircle.php
@@ -2,6 +2,8 @@
/* CAT:Drawing */
/* pChart library inclusions */
+ include("class/pData.class.php");
+
include("class/pDraw.class.php");
include("class/pImage.class.php");
@@ -18,8 +20,18 @@
return array($x,$y,$Bx,$By,$Cx,$Cy);
}
+ /* Create and populate the pData object */
+ $MyData = new pData();
+ $MyData->addPoints(array(66,100,50,39,28),"Hits");
+ $MyData->setAxisName(0,"Network operability");
+ $MyData->addPoints(array("GSM University","GSM External","SIP","University SIP","Landline"),"Networks");
+ $MyData->setSerieDescription("Networks","Networks");
+ $MyData->setAbscissa("Networks");
+
+
+
/* Create the pChart object */
- $myPicture = new pImage(700,430);
+ $myPicture = new pImage(700,430,$MyData);
/* Draw the background */
$Settings = array("R"=>170, "G"=>183, "B"=>87, "Dash"=>1, "DashR"=>190, "DashG"=>203, "DashB"=>107);
@@ -176,6 +188,37 @@
//###############################
+ //LANDLINE
+ /* Turn on shadow computing */
+ $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>20));
+ /* Draw a PNG object */
+ $myPicture->drawFromPNG(393,150,$LANDLINECOL);
+ /* Write some text */
+ $myPicture->setFontProperties(array("FontName"=>"fonts/verdana.ttf","FontSize"=>7));
+ $TextSettings = array("DrawBox"=>TRUE,"BoxRounded"=>TRUE,"R"=>0,"G"=>0,"B"=>0,"Angle"=>0,"FontSize"=>7);
+ $myPicture->drawText(238,157,"GSM-Box",$TextSettings);
+ //###############################
+
+
+ //A BIT OF STATISTICS
+ /* Draw the chart scale */
+ $myPicture->setGraphArea(520,50,690,220);
+ $AxisBoundaries = array(0=>array("Min"=>0,"Max"=>100));
+
+ $myPicture->drawScale(array("CycleBackground"=>TRUE,"DrawSubTicks"=>TRUE,"GridR"=>0,"GridG"=>0,"GridB"=>0,"GridAlpha"=>10,"Pos"=>SCALE_POS_TOPBOTTOM,"Mode"=>SCALE_MODE_MANUAL,"ManualScale"=>$AxisBoundaries));
+
+ /* Turn on shadow computing */
+ $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
+
+ /* Create the per bar palette */
+ $Palette = array("0"=>array("R"=>188,"G"=>224,"B"=>46,"Alpha"=>100),
+ "1"=>array("R"=>224,"G"=>100,"B"=>46,"Alpha"=>100),
+ "2"=>array("R"=>224,"G"=>214,"B"=>46,"Alpha"=>100),
+ "3"=>array("R"=>46,"G"=>151,"B"=>224,"Alpha"=>100),
+ "4"=>array("R"=>224,"G"=>176,"B"=>46,"Alpha"=>100));
+
+ /* Draw the chart */
+ $myPicture->drawBarChart(array("DisplayPos"=>LABEL_POS_INSIDE,"DisplayValues"=>TRUE,"Rounded"=>TRUE,"Surrounding"=>30,"OverrideColors"=>$Palette));
/* Render the picture (choose the best way) */
diff --git a/notFinishedCode/web/icons/blackberry_dunno.png b/notFinishedCode/web/icons/blackberry_dunno.png
new file mode 100644
index 0000000..4ee9ee0
--- /dev/null
+++ b/notFinishedCode/web/icons/blackberry_dunno.png
Binary files differ
diff --git a/notFinishedCode/web/icons/blackberry_fail.png b/notFinishedCode/web/icons/blackberry_fail.png
new file mode 100644
index 0000000..650d942
--- /dev/null
+++ b/notFinishedCode/web/icons/blackberry_fail.png
Binary files differ
diff --git a/notFinishedCode/web/icons/blackberry_work.png b/notFinishedCode/web/icons/blackberry_work.png
new file mode 100644
index 0000000..3fe1d09
--- /dev/null
+++ b/notFinishedCode/web/icons/blackberry_work.png
Binary files differ
diff --git a/notFinishedCode/web/icons/box_dunno.png b/notFinishedCode/web/icons/box_dunno.png
new file mode 100644
index 0000000..744ec7a
--- /dev/null
+++ b/notFinishedCode/web/icons/box_dunno.png
Binary files differ
diff --git a/notFinishedCode/web/icons/box_fail.png b/notFinishedCode/web/icons/box_fail.png
new file mode 100644
index 0000000..3398e05
--- /dev/null
+++ b/notFinishedCode/web/icons/box_fail.png
Binary files differ
diff --git a/notFinishedCode/web/icons/box_work.png b/notFinishedCode/web/icons/box_work.png
new file mode 100644
index 0000000..666fced
--- /dev/null
+++ b/notFinishedCode/web/icons/box_work.png
Binary files differ
diff --git a/notFinishedCode/web/icons/telephone_dunno.png b/notFinishedCode/web/icons/telephone_dunno.png
new file mode 100644
index 0000000..2ac9dd6
--- /dev/null
+++ b/notFinishedCode/web/icons/telephone_dunno.png
Binary files differ
diff --git a/notFinishedCode/web/icons/telephone_fail.png b/notFinishedCode/web/icons/telephone_fail.png
new file mode 100644
index 0000000..222050d
--- /dev/null
+++ b/notFinishedCode/web/icons/telephone_fail.png
Binary files differ
diff --git a/notFinishedCode/web/icons/telephone_work.png b/notFinishedCode/web/icons/telephone_work.png
new file mode 100644
index 0000000..5086dd2
--- /dev/null
+++ b/notFinishedCode/web/icons/telephone_work.png
Binary files differ
diff --git a/notFinishedCode/web/testCase.php b/notFinishedCode/web/testCase.php
index 7b8f513..8f75796 100644
--- a/notFinishedCode/web/testCase.php
+++ b/notFinishedCode/web/testCase.php
@@ -24,7 +24,7 @@ $LSFKSCOL = "icons/server_dunno.png";
$SIPCOL = $colorDunno;
$UNISIPCOL = $colorDunno;
-$LANDLINECOL = $colorDunno;
+$LANDLINECOL = 'icons/telephone_dunno.png';
$BTS1COL = $colorDunno;
$BTS2COL = $colorDunno;
@@ -59,11 +59,11 @@ elseif($GSMRZ1 < 0 || $GSMRZ2 < 0 || $GSMRZ3 < 0)
if($LANDLINE>0)
{
- $LANDLINECOL = $colorWork;
+ $LANDLINECOL = 'icons/telephone_work.png';
}
elseif($LANDLINE<0)
{
- $LANDLINECOL = $colorFail;
+ $LANDLINECOL = 'icons/telephone_fail.png';
}
if($SIP>0)