-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
84 lines (83 loc) · 2.46 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
$heightimage="75px";
$titleimage="";
$logoimage="/$myreporter/img/normal/output.png";
$runlogos=array(
array(
"logoimage" => "/$myreporter/img/anim/progress1.gif",
"titleimage" => "Caramba"
),
array(
"logoimage" => "/$myreporter/img/anim/progress2.gif",
"titleimage" => "Caramba"
)
);
if(isset($STATUS))
{
switch ($STATUS)
{
case "InProgress":
$rand_index=array_rand($runlogos);
$logoimage=$runlogos[$rand_index]["logoimage"];
$titleimage=$runlogos[$rand_index]["titleimage"];
$heightimage="80px";
break;
case "FAIL":
$logoimage="/$myreporter/img/normal/fail.png";
$titleimage="Eat my shorts";
$heightimage="80px";
break;
case "ERROR":
$logoimage="/$myreporter/img/normal/error.png";
$titleimage="How dare you";
$heightimage="80px";
break;
case "SKIP":
$logoimage="/$myreporter/img/normal/skip.png";
$titleimage="Hm.....";
$heightimage="80px";
break;
case "PASS":
$logoimage="/$myreporter/img/normal/pass.png";
$titleimage="Really?";
$heightimage="80px";
break;
case "blame":
$logoimage="/$myreporter/img/normal/blame.png";
$titleimage="Blame it on you!";
$heightimage="80px";
break;
default:
$logoimage="/$myreporter/img/normal/output.png";
$titleimage="Be cool";
$heightimage="70px";
}
}
else
{
$logoimage="/$myreporter/img/normal/output.png";
$titleimage="Be cool";
$heightimage="70px";
}
if(isset($headertest))
{
$headertest="<a class=\"active\" style=\"color:black;font-weight:bold;cursor:pointer;position: relative;z-index: 5;\" onclick=\"return headertest();\" title=\"Build Stat For Filtered Items\">Build Stat</a>";
}
else
{
$headertest="";
}
echo("<div class=\"header\">
<a href=\"index.php\" class=\"logo\"><img src=\"$logoimage\" style=\"height:$heightimage\" title=\"$titleimage\" alt=\"home\"></a>
<div class=\"logotext\">Fast Automation Reporter
</div>
<div class=\"header-right\">
<!--<a class=\"active\" href=\"#home\">Home</a>
<a style=\"position: relative;z-index: 5;\" href=\"systeminfo.php\">System Info</a>
<a style=\"position: relative;z-index: 5;\" href=\"#about\">About</a>-->
<!--<a href=\"systeminfo.php\"><img src=\"img/icons/Gnome-utilities-system-monitor.svg\" style=\"height:5;\" title=\"System Info\" alt=\"System Info\"></a>-->
<a style=\"position: relative;z-index: 5;\" href=\"systeminfo.php\" title=\"System Info\">System Info</a>
".$headertest."
</div>
</div>");
?>