-
Notifications
You must be signed in to change notification settings - Fork 3
/
all_render.php
53 lines (45 loc) · 1.37 KB
/
all_render.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
session_start();
require_once ('FileMaker.php');
require_once('utilities.php');
require_once('DatabaseSearch.php');
require_once('partials/widgets.php');
require_once('credentials_controller.php');
// list databases
// $databases = ['algae', 'avian', 'bryophytes', 'entomology', 'fish',
// 'fossil', 'fungi', 'herpetology', 'lichen', 'mammal', 'mi',
// 'miw', 'vwsp'];
$databases = ['avian', 'entomology', 'fish',
'fossil', 'herpetology', 'mammal', 'mi',
'miw'];
$searchDatabases = [];
# create a DatabaseSearch obj for each db used
foreach ($databases as $db) {
$databaseSearch = DatabaseSearch::fromDatabaseName($db);
if (!$databaseSearch) {
continue;
} else {
array_push($searchDatabases, $databaseSearch);
}
}
// exit;
?>
<link rel="stylesheet" href="css/render.css">
<!DOCTYPE html>
<html>
<head>
<?php HeaderWidget(); ?>
</head>
<body class="container-fluid">
<?php
Navbar();
// generate results from FileMaker query
foreach ($searchDatabases as $sd) {
// determine search and results layouts for given database
generateTable($sd, 20);
}
?>
<?php FooterWidget('images/beatyLogo.png'); ?>
<script src="js/process.js"> </script>
</body>
</html>