View::eventFormOutput($event); } } /** * Editing the status of the participants of the event with corresponding ID */ if (isset($_GET['eventID'])) { if (is_numeric($_GET['eventID']) || !empty($_POST)) { $eventID = $_GET['eventID']; $participants = EventDatabaseManager::getParticipantsList($eventID); foreach ($participants as $participant) { $userID = $participant['userID']; if (isset($_POST['status_user' . $userID])) { $status = $_POST['status_user' . $userID]; if ($status == STATUS_SIGN_IN || $status == STATUS_COMPLETED || $status == STATUS_MISSED) { EventDatabaseManager::setParticipantStatus($userID, $eventID, $status); } } } } } /** * Adding, editing or deleting the event */ if (isset($_POST['eventType'])) { daschug_load_user_settings(); /* * Deleting the event */ if (isset($_POST['deleteEvent']) && $_POST['deleteEvent'] == 'yes') { $eventID = mysql_real_escape_string($_GET['eventID']);