summaryrefslogtreecommitdiffstats
path: root/notFinishedCode
diff options
context:
space:
mode:
authorRefik Hadzialic2011-08-10 19:01:01 +0200
committerRefik Hadzialic2011-08-10 19:01:01 +0200
commitccf09a72fbb820621b4deee3e0a07adeb6ba1328 (patch)
treeec44f7c8196ba41cb0c82b58d3dba620802c57b3 /notFinishedCode
parentLibraries and start code for the output results image (diff)
downloadgsm-selftest-ccf09a72fbb820621b4deee3e0a07adeb6ba1328.tar.gz
gsm-selftest-ccf09a72fbb820621b4deee3e0a07adeb6ba1328.tar.xz
gsm-selftest-ccf09a72fbb820621b4deee3e0a07adeb6ba1328.zip
Added new icons for the output result image generation. Changed the not complete output image
Diffstat (limited to 'notFinishedCode')
-rw-r--r--notFinishedCode/pChart2.1.2/examples/example.writeBounds.php65
-rw-r--r--notFinishedCode/pChart2.1.2/examples/newIcons/BTSIDK3.pngbin0 -> 8236 bytes
-rw-r--r--notFinishedCode/pChart2.1.2/examples/newIcons/BTSNOK3.pngbin0 -> 7787 bytes
-rw-r--r--notFinishedCode/pChart2.1.2/examples/newIcons/BTSOK3.pngbin0 -> 8273 bytes
-rw-r--r--notFinishedCode/pChart2.1.2/examples/newIcons/NOK.pngbin0 -> 5750 bytes
-rw-r--r--notFinishedCode/pChart2.1.2/examples/newIcons/OK.pngbin0 -> 5824 bytes
-rw-r--r--notFinishedCode/pChart2.1.2/examples/newIcons/externalCells.pngbin0 -> 15161 bytes
-rw-r--r--notFinishedCode/pChart2.1.2/examples/newIcons/landline.pngbin0 -> 8778 bytes
8 files changed, 50 insertions, 15 deletions
diff --git a/notFinishedCode/pChart2.1.2/examples/example.writeBounds.php b/notFinishedCode/pChart2.1.2/examples/example.writeBounds.php
index 5e831a0..7e0af80 100644
--- a/notFinishedCode/pChart2.1.2/examples/example.writeBounds.php
+++ b/notFinishedCode/pChart2.1.2/examples/example.writeBounds.php
@@ -18,49 +18,84 @@
$myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>11));
$myPicture->drawText(30,400,"Network test results - UNIVERSITY OF FREIBURG",array("R"=>255,"G"=>255,"B"=>255,"FontSize"=>20,"Angle"=>90,"Align"=>TEXT_ALIGN_BOTTOMMIDDLE));
- // add some picture somewhere :)
- /* Draw a PNG object */
- // x1, y1, x2, y2
- //line to landline
- $myPicture->drawLine(430, 390,430,560,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1));
- $myPicture->drawFromPNG(400,550,"telephone.png");
+ //Our university GSM system outlining!
+ $RectangleSettings = array("R"=>137,"G"=>202,"B"=>230,"Alpha"=>20);
+ $myPicture->drawFilledRectangle(63,10,245,590,$RectangleSettings);
+ // x1, y1, x2, y2
+
//BTS1
- $myPicture->drawLine(180, 70,420,330,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1));
- $myPicture->drawFromPNG(160,60,"BTSCont.png");
+ $myPicture->drawLine(220, 90,420,330,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1));
+ $myPicture->drawFromPNG(180,60,"BTSCont.png");
+ $myPicture->drawFromPNG(60,12,"newIcons/BTSOK3.png");
$myPicture->setFontProperties(array("FontName"=>"../fonts/verdana.ttf","FontSize"=>6));
- $TextSettings = array("DrawBox"=>TRUE,"R"=>255,"G"=>255,"B"=>255,"Angle"=>0,"FontSize"=>10);
+ $TextSettings = array("DrawBox"=>FALSE,"R"=>255,"G"=>255,"B"=>255,"Angle"=>0,"FontSize"=>10);
$myPicture->drawText(70,140,"BTS1 STATUS: OK",$TextSettings);
//BTS2
- $myPicture->drawLine(190, 320, 420,350,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1));
- $myPicture->drawFromPNG(160,280,"BTSCont.png");
- $myPicture->drawFromPNG(110,300,"newIcons/BTSNOK1.png");
+ $myPicture->drawLine(220, 320, 420,350,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1));
+ $myPicture->drawFromPNG(180,280,"BTSCont.png");
+ $myPicture->drawFromPNG(60,230,"newIcons/BTSNOK3.png");
$myPicture->setFontProperties(array("FontName"=>"../fonts/verdana.ttf","FontSize"=>6));
- $TextSettings = array("DrawBox"=>TRUE,"R"=>255,"G"=>0,"B"=>0,"Angle"=>0,"FontSize"=>10);
+ $TextSettings = array("DrawBox"=>FALSE,"R"=>255,"G"=>0,"B"=>0,"Angle"=>0,"FontSize"=>10);
$myPicture->drawText(70,360,"BTS2 STATUS: NOT OK",$TextSettings);
//BTS3
$myPicture->drawLine(200, 550,420,380,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1));
- $myPicture->drawFromPNG(160,500,"BTSCont.png");
+ $myPicture->drawFromPNG(180,500,"BTSCont.png");
+ $myPicture->drawFromPNG(60,450,"newIcons/BTSOK3.png");
$myPicture->setFontProperties(array("FontName"=>"../fonts/verdana.ttf","FontSize"=>6));
- $TextSettings = array("DrawBox"=>TRUE,"R"=>255,"G"=>255,"B"=>255,"Angle"=>0,"FontSize"=>10);
+ $TextSettings = array("DrawBox"=>FALSE,"R"=>255,"G"=>255,"B"=>255,"Angle"=>0,"FontSize"=>10);
$myPicture->drawText(70,580,"BTS3 STATUS: OK",$TextSettings);
+
+ //landline system outlining!
+ $RectangleSettings = array("R"=>238,"G"=>243,"B"=>90,"Alpha"=>20);
+ $myPicture->drawFilledRectangle(340,480,530,615,$RectangleSettings);
+ //line to landline
+ $myPicture->drawLine(430, 390,430,520,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1));
+ $myPicture->drawFromPNG(370,480,"newIcons/landline.png");
+
+ $myPicture->setFontProperties(array("FontName"=>"../fonts/verdana.ttf","FontSize"=>6));
+ $TextSettings = array("DrawBox"=>FALSE,"R"=>255,"G"=>255,"B"=>255,"Angle"=>0,"FontSize"=>10);
+ $myPicture->drawText(340,611,"LANDLINE STATUS: OK",$TextSettings);
+
+
+
+
+ //external system outlining!
+ $RectangleSettings = array("R"=>124,"G"=>229,"B"=>129,"Alpha"=>20);
+ $myPicture->drawFilledRectangle(320,10,540,160,$RectangleSettings);
+ //external cell network
+ $myPicture->drawLine(430, 60,430,300,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1));
+ $myPicture->drawFromPNG(390,30,"newIcons/externalCells.png");
+
+ $myPicture->setFontProperties(array("FontName"=>"../fonts/verdana.ttf","FontSize"=>6));
+ $TextSettings = array("DrawBox"=>FALSE,"R"=>255,"G"=>255,"B"=>255,"Angle"=>0,"FontSize"=>10);
+ $myPicture->drawText(324,40,"GSM EXTERNAL NETWORK: OK",$TextSettings);
$myPicture->drawFromPNG(380,280,"server.png");
//$myPicture->writeLabel("Testing",0);
+ //are the subsystems completely OK
+ //GSM External modem
+ $myPicture->drawFromPNG(513,135,"newIcons/OK.png");
+ //landline system
+ $myPicture->drawFromPNG(505,580,"newIcons/OK.png");
+ //GSM Local network
+ $myPicture->drawFromPNG(220,560,"newIcons/NOK.png");
+
+
/* Render the picture (choose the best way) */
$myPicture->autoOutput("pictures/example.writeBounds.png");
diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/BTSIDK3.png b/notFinishedCode/pChart2.1.2/examples/newIcons/BTSIDK3.png
new file mode 100644
index 0000000..61e72af
--- /dev/null
+++ b/notFinishedCode/pChart2.1.2/examples/newIcons/BTSIDK3.png
Binary files differ
diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/BTSNOK3.png b/notFinishedCode/pChart2.1.2/examples/newIcons/BTSNOK3.png
new file mode 100644
index 0000000..4dc38eb
--- /dev/null
+++ b/notFinishedCode/pChart2.1.2/examples/newIcons/BTSNOK3.png
Binary files differ
diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/BTSOK3.png b/notFinishedCode/pChart2.1.2/examples/newIcons/BTSOK3.png
new file mode 100644
index 0000000..65c9e63
--- /dev/null
+++ b/notFinishedCode/pChart2.1.2/examples/newIcons/BTSOK3.png
Binary files differ
diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/NOK.png b/notFinishedCode/pChart2.1.2/examples/newIcons/NOK.png
new file mode 100644
index 0000000..f48d491
--- /dev/null
+++ b/notFinishedCode/pChart2.1.2/examples/newIcons/NOK.png
Binary files differ
diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/OK.png b/notFinishedCode/pChart2.1.2/examples/newIcons/OK.png
new file mode 100644
index 0000000..b83bd75
--- /dev/null
+++ b/notFinishedCode/pChart2.1.2/examples/newIcons/OK.png
Binary files differ
diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/externalCells.png b/notFinishedCode/pChart2.1.2/examples/newIcons/externalCells.png
new file mode 100644
index 0000000..b1235cf
--- /dev/null
+++ b/notFinishedCode/pChart2.1.2/examples/newIcons/externalCells.png
Binary files differ
diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/landline.png b/notFinishedCode/pChart2.1.2/examples/newIcons/landline.png
new file mode 100644
index 0000000..1bc593c
--- /dev/null
+++ b/notFinishedCode/pChart2.1.2/examples/newIcons/landline.png
Binary files differ