diff --git a/public_html/pages/front.php b/public_html/pages/front.php
index 5fb6015..01a0cab 100644
--- a/public_html/pages/front.php
+++ b/public_html/pages/front.php
@@ -64,63 +64,24 @@ try {
exit();
}
-// display the result
-echo "";
-echo "
time period: $from_time - $until_time
"; -} - -//// filters - time selection and sorting dropdowns -//include 'templates/results-filter.php'; - -// results table -echo "" . htmlspecialchars($header) . " | \n"; - } - echo "\t\t\t||
---|---|---|
" . htmlspecialchars($column ?? '') . " | \n"; - } elseif ($key === 'conference name') { - echo "\t\t\t\t" . htmlspecialchars($column ?? '') . " | \n"; - } else { - echo "\t\t\t\t" . htmlspecialchars($column ?? '') . " | \n"; - } - } - echo "\t\t\t
time period: $from_time - $until_time
"; } else { - echo 'No matching conferences found.
'; + $widget['time_period'] = ''; +} +if (!empty($conferences['records'])) { + $widget['full'] = true; + $widget['table_headers'] = array_keys($conferences['records'][0]); + $widget['table_records'] = $conferences['records']; +} else { + $widget['full'] = false; } -echo "\n" . htmlspecialchars($header) . " | \n"; - } - echo "\t\t\t||
---|---|---|
" . htmlspecialchars($column ?? '') . " | \n"; - } elseif ($key === 'conference name') { - echo "\t\t\t\t" . htmlspecialchars($column ?? '') . " | \n"; - } else { - echo "\t\t\t\t" . htmlspecialchars($column ?? '') . " | \n"; - } - } - echo "\t\t\t
time period: $from_time - $until_time
"; } else { - echo 'No matching conferences found.
'; + $widget['time_period'] = ''; +} +if (!empty($conferences['records'])) { + $widget['full'] = true; + $widget['table_headers'] = array_keys($conferences['records'][0]); + $widget['table_records'] = $conferences['records']; +} else { + $widget['full'] = false; } -echo "\n= htmlspecialchars($header) ?> | - +||||
---|---|---|---|---|
= htmlspecialchars($column ?? '') ?> | - -"">"= htmlspecialchars($column ?? '') ?>" | - + $column) { + if ($key === 'conference ID') { ?> += htmlspecialchars($column ?? '') ?> | + += htmlspecialchars($column ?? '') ?> | + += htmlspecialchars($column ?? '') ?> | +
No matching records found.
+