Put event viewing into table output
This commit is contained in:
parent
4fe4ed568a
commit
96a427d164
@ -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: ";
|
||||||
print_r($row1['alert_name']);
|
echo "</td><td>";
|
||||||
echo "<br />";
|
print_r($row1['alert_name']);
|
||||||
echo "Start Date and Time: ";
|
echo "</td></tr><tr><td>";
|
||||||
print_r($row1['date_time_start']);
|
echo "Start Date and Time: ";
|
||||||
echo "<br />";
|
echo "</td><td>";
|
||||||
echo "Currently Ongoing? ";
|
print_r($row1['date_time_start']);
|
||||||
if($row1['is_ongoing'] ==1) {
|
echo "</td></tr><tr><td>";
|
||||||
echo "Yes";
|
echo "Currently Ongoing? ";
|
||||||
} else {
|
echo "</td><td>";
|
||||||
echo "No";
|
if($row1['is_ongoing'] ==1) {
|
||||||
}
|
echo "Yes";
|
||||||
echo "<br />";
|
} else {
|
||||||
echo "End Date and Time: ";
|
echo "No";
|
||||||
print_r($row1['date_time_end']);
|
}
|
||||||
|
echo "</td></tr><tr><td>";
|
||||||
|
echo "End Date and Time: ";
|
||||||
|
echo "</td><td>";
|
||||||
|
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>";
|
||||||
|
Loading…
Reference in New Issue
Block a user