Put event viewing into table output

This commit is contained in:
Russ 2015-03-31 20:52:42 -04:00
parent 4fe4ed568a
commit 96a427d164

View File

@ -36,26 +36,31 @@ $eventid=$_GET['eventid'];
if ($result1->num_rows >0){ if ($result1->num_rows >0){
while ($row1 = $result1->fetch_assoc()) { while ($row1 = $result1->fetch_assoc()) {
echo "<br />"; echo "<br />";
// echo "Datacenter: "; echo "<table align='center'><tr><td>";
// $row1['dc_name'];
echo "Unit: "; echo "Unit: ";
echo "</td><td>";
print_r($row1['unit_name']); print_r($row1['unit_name']);
echo "<br />"; echo "</td></tr><tr><td>";
echo "Alert: "; echo "Alert: ";
echo "</td><td>";
print_r($row1['alert_name']); print_r($row1['alert_name']);
echo "<br />"; echo "</td></tr><tr><td>";
echo "Start Date and Time: "; echo "Start Date and Time: ";
echo "</td><td>";
print_r($row1['date_time_start']); print_r($row1['date_time_start']);
echo "<br />"; echo "</td></tr><tr><td>";
echo "Currently Ongoing? "; echo "Currently Ongoing? ";
echo "</td><td>";
if($row1['is_ongoing'] ==1) { if($row1['is_ongoing'] ==1) {
echo "Yes"; echo "Yes";
} else { } else {
echo "No"; echo "No";
} }
echo "<br />"; echo "</td></tr><tr><td>";
echo "End Date and Time: "; echo "End Date and Time: ";
echo "</td><td>";
print_r($row1['date_time_end']); print_r($row1['date_time_end']);
echo "</td></tr></table>";
} }
} else { } else {
echo "<h4>ERROR Event ID Not Found</h4>"; echo "<h4>ERROR Event ID Not Found</h4>";