-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdisplay_csr_spe.php
51 lines (46 loc) · 1.7 KB
/
display_csr_spe.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
<?php
require 'config.php';
require $config['root_dir'] . 'includes/bootstrap.inc';
$mysqli = connecti();
global $config;
require $config['root_dir'] . 'theme/admin_header.php';
if (isset($_GET['uid'])) {
$experiment_uid = $_GET['uid'];
} else {
die("Error - no experiment found<br>\n");
}
$count = 0;
$sql = "select * from csr_system where system_uid =$experiment_uid";
$res = mysqli_query($mysqli, $sql) or die(mysqli_error($mysqli));
echo "<h2>CSR Spectrometer System</h2>\n";
echo "<table>";
while ($row = mysqli_fetch_assoc($res)) {
$system_name = $row["system_name"];
$instrument = $row["instrument"];
$serial_num = $row["serial_num"];
$serial_num2 = $row["serial_num2"];
$grating = $row["grating"];
$collection = $row["collection_lens"];
$longpass = $row["longpass_filter"];
$slit_aperature = $row["slit_aperture"];
$reference = $row["reference"];
$cable_type = $row["cable_type"];
$wavelengths = $row["wavelengths"];
$bandwidths = $row["bandwidths"];
$comments = $row["comments"];
echo "<tr><td>System Name<td>$system_name";
echo "<tr><td>Instrument<td>$instrument";
echo "<tr><td>Serial number<td>$serial_num";
echo "<tr><td>Second serial number<td>$serail_num2";
echo "<tr><td>Grating number<td>$grating";
echo "<tr><td>Collection lense<td>$collection";
echo "<tr><td>Longpass filter<td>$longpass";
echo "<tr><td>Entrance slit aperture<td>$slit_aperature";
echo "<tr><td>Reference<td>$reference";
echo "<tr><td>Fiber optic cable<td>$cable_type";
echo "<tr><td>Focal wavelength<td>$wavelengths";
echo "<tr><td>Bandwidths<td>$bandwidths";
echo "<tr><td>Comments<td>$comments\n";
$count++;
}
echo "</table>";