getMessage(); include 'templates/message.php'; exit(); } // // Conference listings // // search and list specific conference ID if (isset($conference_id)) { try { $conference = new Conference($db); // prepare the result $search = $conference->conferenceById($conference_id, $from_time, $until_time); if (!empty($search)) { $conferences = array(); $conferences['records'] = array(); foreach ($search as $item) { extract($item); $conference_record = array( // assign title to the field in the array record 'time' => $time, 'conference ID' => $conference_id, 'conference name' => $conference_name, 'conference host' => $conference_host, 'loglevel' => $loglevel, 'participant ID' => $participant_id, 'event' => $event_type, 'parameter' => $event_param ); // populate the result array array_push($conferences['records'], $conference_record); } } } catch (Exception $e) { $error = 'Error: ' . $e->getMessage(); include 'templates/message.php'; exit(); } // display the result echo "Conferences with ID matching \"$conference_id\""; if ($time_range_specified) { echo " for the time period $from_time - $until_time"; } if (!empty($conferences['records'])) { echo "\t
" . htmlspecialchars($header) . " | "; } echo "\t\t||
---|---|---|
" . htmlspecialchars($column ?? '') . " | "; } elseif ($key === 'conference name') { echo "\t\t\t" . htmlspecialchars($column ?? '') . " | "; } else { echo "\t\t\t" . htmlspecialchars($column ?? '') . " | "; } } echo "\t\t
No matching conferences found.
'; } // search and list specific conference ID } elseif (isset($conference_name)) { try { $conference = new Conference($db); // prepare the result $search = $conference->conferenceByName($conference_name, $from_time, $until_time); if (!empty($search)) { $conferences = array(); $conferences['records'] = array(); foreach ($search as $item) { extract($item); $conference_record = array( // assign title to the field in the array record 'time' => $time, 'conference ID' => $conference_id, 'conference name' => $conference_name, 'conference host' => $conference_host, 'loglevel' => $loglevel, 'participant ID' => $participant_id, 'event' => $event_type, 'parameter' => $event_param ); // populate the result array array_push($conferences['records'], $conference_record); } } } catch (Exception $e) { $error = 'Error: ' . $e->getMessage(); include 'templates/message.php'; exit(); } // display the result echo "Conferences with name matching \"$conference_name\""; if ($time_range_specified) { echo " for the time period $from_time - $until_time"; } if (!empty($conferences['records'])) { echo "\t" . htmlspecialchars($header) . " | "; } echo "\t\t||
---|---|---|
" . htmlspecialchars($column ?? '') . " | "; } elseif ($key === 'conference ID') { echo "\t\t\t" . htmlspecialchars($column ?? '') . " | "; } else { echo "\t\t\t" . htmlspecialchars($column ?? '') . " | "; } } echo "\t\t
No matching conferences found.
'; } // list of all conferences (default) } else { try { $conference = new Conference($db); // prepare the result $search = $conference->conferencesAllFormatted($from_time, $until_time); if (!empty($search)) { $conferences = array(); $conferences['records'] = array(); foreach ($search as $item) { extract($item); $conference_record = array( // assign title to the field in the array record 'component' => $jitsi_component, 'start' => $start, 'end' => $end, 'conference ID' => $conference_id, 'conference name' => $conference_name, 'participants' => $participants, 'name count' => $name_count, 'conference host' => $conference_host ); // populate the result array array_push($conferences['records'], $conference_record); } } } catch (Exception $e) { $error = 'Error: ' . $e->getMessage(); include 'templates/message.php'; exit(); } // display the result echo "Conferences for the time period $from_time - $until_time"; if (!empty($conferences['records'])) { echo "\t" . htmlspecialchars($header) . " | "; } echo "\t\t||
---|---|---|
" . htmlspecialchars($column ?? '') . " | "; } elseif ($key === 'conference name') { echo "\t\t\t" . htmlspecialchars($column ?? '') . " | "; } else { echo "\t\t\t" . htmlspecialchars($column ?? '') . " | "; } } echo "\t\t
No matching conferences found.
'; } } ?>