diff --git a/editevent.php b/editevent.php index 3809c9c..d42bf20 100644 --- a/editevent.php +++ b/editevent.php @@ -135,7 +135,15 @@ if( $_SESSION['access'] != 1 ) { Issue Description:
Event ID | Unit | Alert | Start Date and Time | Description | End Date and Time | User | Edit | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
".$row1["event_id"]." | ".$row1["unit_name"]." | ".$row1["alert_name"]." | ".$row1["date_time_start"]." | ".$row1["description"]." | ".$row1["date_time_end"]." | ".$row1["user"]." | Edit |
Event ID | Unit | Alert | Start Date and Time | Description | End Date and Time | User | Updates | Edit | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
"; + echo "".$currently_ongoing_row["event_id"].""; + echo " | "; + print_r($currently_ongoing_row["unit_name"]); + echo " | "; + print_r($currently_ongoing_row["alert_name"]); + echo " | "; + print_r($currently_ongoing_row["date_time_start"]); + echo " | "; + echo nl2br($currently_ongoing_row["description"]); + echo " | "; + print_r($currently_ongoing_row["date_time_end"]); + echo " | "; + print_r($currently_ongoing_row["user"]); + echo " | ";
+ $update_query = "SELECT update_desc, update_date_time, update_user FROM event_updates WHERE event_updates.event_id=".$currently_ongoing_row["event_id"].";";
+ $update_result = $conn1->query($update_query);
+ if ($update_result->num_rows >0){
+ while ($update_row = $update_result->fetch_assoc()) {
+ echo "
| "; + echo "Edit |
Event ID | Unit | Alert | Start Date and Time | Description | End Date and Time | User | Edit | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
".$row2["event_id"]." | ".$row2["unit_name"]." | ".$row2["alert_name"]." | ".$row2["date_time_start"]." | ".$row2["description"]." | ".$row2["date_time_end"]." | ".$row2["user"]." | Edit |
Event ID | Unit | Alert | Start Date and Time | Description | End Date and Time | User | Updates | Edit | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
"; + echo "".$past_event_row["event_id"].""; + echo " | "; + print_r($past_event_row["unit_name"]); + echo " | "; + print_r($past_event_row["alert_name"]); + echo " | "; + print_r($past_event_row["date_time_start"]); + echo " | "; + echo nl2br($past_event_row["description"]); + echo " | "; + print_r($past_event_row["date_time_end"]); + echo " | "; + print_r($past_event_row["user"]); + echo " | ";
+ $update_query = "SELECT update_desc, update_date_time, update_user FROM event_updates WHERE event_updates.event_id=".$past_event_row["event_id"].";";
+ $update_result = $conn1->query($update_query);
+ if ($update_result->num_rows >0){
+ while ($update_row = $update_result->fetch_assoc()) {
+ echo "
| "; + echo "Edit"; + echo " |