-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmachines.php
82 lines (67 loc) · 2.71 KB
/
machines.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
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link href='https://fonts.googleapis.com/css?family=Comfortaa' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="assets/css/table.css">
</head>
<body>
<?php
include('db_connect.php');
?>
<div class="table-title">
<h3>Data Table</h3>
</div>
<table id="hor-minimalist-a">
<tr>
<th>Status</th>
<th>Machine Name</th>
<th>Owner name</th>
<th>Machine IP</th>
<th>Mac Address</th>
<th>Number of GPUs</th>
<th>GPUs Connected</th>
<th>Driver</th>
<th>Number of Displays</th>
<th>Displays Connected</th>
<th>OS Name</th>
<th>OS Version</th>
<th>OS Platform</th>
<th>System Manufacturer</th>
<th>System Model Name</th>
<th>Email</th>
</tr>
<?php
$result = mysql_query('select * from machine');
while ($row = mysql_fetch_object($result)) {
echo '<tr>';
echo "<td><a href='select_test_plan.php?ip=$row->machine_ip'>" . $row->status . "</a></td>";
echo '<td>' . $row->machine_name . '</td>';
echo '<td>' . $row->owner_name . '</td>';
echo '<td>' . $row->machine_ip . '</td>';
echo '<td>' . $row->mac_address . '</td>';
echo '<td>' . $row->no_of_gpus . '</td>';
echo '<td>' . $row->gpus_connected . '</td>';
echo '<td>' . $row->driver . '</td>';
echo '<td>' . $row->no_of_displays . '</td>';
echo '<td>' . $row->displays_conected . '</td>';
echo '<td>' . $row->os_name . '</td>';
echo '<td>' . $row->os_version . '</td>';
echo '<td>' . $row->os_platform . '</td>';
echo '<td>' . $row->system_manufacturer . '</td>';
echo '<td>' . $row->system_model_name . '</td>';
echo '<td>' . $row->email . '</td>';
echo '</tr>';
}
?>
</table>
<a href="machines.php"><button value="Refresh">Refresh</button></a>
<br>Click <a href="add_machine.php">here</a> to Add Machine
</body>
</html>