-
Notifications
You must be signed in to change notification settings - Fork 0
/
manpowerPage.php
123 lines (119 loc) · 2.55 KB
/
manpowerPage.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?PHP
require_once("session.php");
if(!checkSession())
{
RedirectTo("http://localhost/xampp/ProjectX/SigninPage.php");
exit;
}
?>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 15px;
}
#leftperformance {
overflow:auto; /* This will add a scroll when required */
width:60%;
float:left;
height: 100%
float:left;
}
#rightperformance {
overflow:auto; /* This will add a scroll when required */
width:40%;
float:left;
height: 100%
}
</style>
<script type="text/javascript" src="js/Chart.min.js"></script>
<div id="performance">
<section id="leftperformance">
<canvas id="canvasleft" height="500" width="650" ></canvas>
</section>
<section id="rightperformance" style="">
<canvas id="canvasright" height="230" width="300"></canvas>
<table style="width:100%,margin-top:2%">
<tr>
<th>Name</th>
<th>Working</th>
<th>Assigned</th>
<th>Not Assigned</th>
<th>Idle</th>
</tr>
<tr>
<td>Kane</td>
<td>Yes</td>
<td>Yes</td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>Smith</td>
<td>Yes</td>
<td>Yes</td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>Jill</td>
<td>-</td>
<td>-</td>
<td>Yes</td>
<td>-</td>
</tr>
<tr>
<td>John</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>Yes</td>
</tr>
</table>
</section>
</div>
<br style="clear:both;"/>
<script>
var LineChart = {
labels : ["January", "February", "March", "April", "May", "June", "July"],
datasets : [
{
fillColor : "#00E676",
strokeColor : "#00C853",
pointColor : "rgba(220,220,220,1)",
pointStrokeColor : "#fff",
pointHighlightFill: "#fff",
pointHighlightStroke: "rgba(220,220,220,1)",
data: [65, 59,46, 40, 56, 55, 40]
},
{
fillColor : "rgba(255,235,59,0.85)",
strokeColor : "rgba(253, 216, 53,.95)",
pointColor : "rgba(173,173,173,1)",
pointStrokeColor : "#fff",
pointHighlightFill: "#fff",
pointHighlightStroke: "rgba(151,187,205,1)",
data: [28, 48, 40, 62, 86, 35, 60]
}
]
}
var DoughnutChart = [{
value: 40,
color: "#F44336",
}, {
value: 42,
color: "#FFEB3B"
},
{
value: 10,
color: "#00C853"
},
{
value: 5,
color: "#795548"
}];
var myLineChart = new Chart(document.getElementById("canvasleft").getContext("2d")).Line(LineChart, {scaleFontSize : 13, scaleFontColor : "#ffa45e"});
var myDoughnutChart = new Chart(document.getElementById("canvasright").getContext("2d")).Doughnut(DoughnutChart);
</script>