diff --git a/public_html/pages/conferences.php b/public_html/pages/conferences.php
index b5243c9..ca6a376 100644
--- a/public_html/pages/conferences.php
+++ b/public_html/pages/conferences.php
@@ -77,43 +77,46 @@ if (isset($conference_id)) {
}
// display the result
+ echo "
\n";
echo "Conferences with ID matching \"
$conference_id\"";
if ($time_range_specified) {
echo " for the time period
$from_time - $until_time";
}
+ echo "\n\n";
if (!empty($conferences['records'])) {
- echo "\t
";
- echo "\t\t";
+ echo "\t\n";
+ echo "\t\t\n";
// table headers
foreach (array_keys($conferences['records'][0]) as $header) {
- echo "\t\t\t" . htmlspecialchars($header) . " | ";
+ echo "\t\t\t" . htmlspecialchars($header) . " | \n";
}
- echo "\t\t
";
+ echo "\t\t\n";
//table rows
foreach ($conferences['records'] as $row) {
- echo "\t\t";
+ echo "\t\t
\n";
// sometimes $column is empty, we make it '' then
foreach ($row as $key => $column) {
if ($key === 'conference ID' && $column === $conference_id) {
- echo "\t\t\t" . htmlspecialchars($column ?? '') . " | ";
+ echo "\t\t\t" . htmlspecialchars($column ?? '') . " | \n";
} elseif ($key === 'conference name') {
- echo "\t\t\t" . htmlspecialchars($column ?? '') . " | ";
+ echo "\t\t\t" . htmlspecialchars($column ?? '') . " | \n";
} else {
- echo "\t\t\t" . htmlspecialchars($column ?? '') . " | ";
+ echo "\t\t\t" . htmlspecialchars($column ?? '') . " | \n";
}
}
- echo "\t\t
";
+ echo "\t\t\n";
}
- echo "\t
";
+ echo "\t
\n";
} else {
echo '
No matching conferences found.
';
}
+ echo "\n
\n";
// search and list specific conference ID
@@ -154,43 +157,46 @@ if (isset($conference_id)) {
}
// display the result
+ echo "\n";
echo "Conferences with name matching \"
$conference_name\"";
if ($time_range_specified) {
echo " for the time period
$from_time - $until_time";
}
+ echo "\n\n";
if (!empty($conferences['records'])) {
- echo "\t
";
- echo "\t\t";
+ echo "\t\n";
+ echo "\t\t\n";
// table headers
foreach (array_keys($conferences['records'][0]) as $header) {
- echo "\t\t\t" . htmlspecialchars($header) . " | ";
+ echo "\t\t\t" . htmlspecialchars($header) . " | \n";
}
- echo "\t\t
";
+ echo "\t\t\n";
//table rows
foreach ($conferences['records'] as $row) {
- echo "\t\t";
+ echo "\t\t
\n";
// sometimes $column is empty, we make it '' then
foreach ($row as $key => $column) {
if ($key === 'conference name' && $column === $conference_name) {
- echo "\t\t\t" . htmlspecialchars($column ?? '') . " | ";
+ echo "\t\t\t" . htmlspecialchars($column ?? '') . " | \n";
} elseif ($key === 'conference ID') {
- echo "\t\t\t" . htmlspecialchars($column ?? '') . " | ";
+ echo "\t\t\t" . htmlspecialchars($column ?? '') . " | \n";
} else {
- echo "\t\t\t" . htmlspecialchars($column ?? '') . " | ";
+ echo "\t\t\t" . htmlspecialchars($column ?? '') . " | \n";
}
}
- echo "\t\t
";
+ echo "\t\t\n";
}
- echo "\t
";
+ echo "\t
\n";
} else {
echo '
No matching conferences found.
';
}
+ echo "\n
\n";
// list of all conferences (default)
@@ -230,40 +236,46 @@ if (isset($conference_id)) {
}
// display the result
- echo "Conferences for the time period $from_time - $until_time";
+ echo "\n";
+ echo "All conferences";
+ if ($time_range_specified) {
+ echo " for the time period
$from_time - $until_time";
+ }
+ echo "\n\n";
if (!empty($conferences['records'])) {
- echo "\t
";
- echo "\t\t";
+ echo "\t\n";
+ echo "\t\t\n";
// table headers
foreach (array_keys($conferences['records'][0]) as $header) {
- echo "\t\t\t" . htmlspecialchars($header) . " | ";
+ echo "\t\t\t" . htmlspecialchars($header) . " | \n";
}
- echo "\t\t
";
+ echo "\t\t\n";
//table rows
foreach ($conferences['records'] as $row) {
- echo "\t\t";
+ echo "\t\t
\n";
// sometimes $column is empty, we make it '' then
foreach ($row as $key => $column) {
if ($key === 'conference ID') {
- echo "\t\t\t" . htmlspecialchars($column ?? '') . " | ";
+ echo "\t\t\t" . htmlspecialchars($column ?? '') . " | \n";
} elseif ($key === 'conference name') {
- echo "\t\t\t" . htmlspecialchars($column ?? '') . " | ";
+ echo "\t\t\t" . htmlspecialchars($column ?? '') . " | \n";
} else {
- echo "\t\t\t" . htmlspecialchars($column ?? '') . " | ";
+ echo "\t\t\t" . htmlspecialchars($column ?? '') . " | \n";
}
}
- echo "\t\t
";
+ echo "\t\t\n";
}
- echo "\t
";
+ echo "\t
\n";
} else {
echo '
No matching conferences found.
';
}
+ echo "\n
\n";
}
diff --git a/public_html/static/all.css b/public_html/static/all.css
index 6975988..0123570 100644
--- a/public_html/static/all.css
+++ b/public_html/static/all.css
@@ -78,19 +78,22 @@
color: white;
}
-#results table {
+.results {
+ padding-bottom: 30px;
+}
+
+.results table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
- padding-bottom: 30px;
}
-#results table, th, td {
+.results table, th, td {
border: 1px solid #ddd;
}
-#results th, td {
+.results th, td {
padding: 8px;
text-align: left;
}
-#results th {
+.results th {
background-color: #f2f2f2;
}