-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
38 lines (33 loc) · 966 Bytes
/
index.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
<?php
// Create the database connection at the start
include('database_connection.php');
// Include the Header for correct HTML Output
$title = 'Mediendatenbank';
include('html_header.php');
// include the functions used in the script below
include('functions.php');
// include all the root data
include('media_data.php');
?>
<div class="container">
<!-- In case there is some Request data - display it here -->
<!-- Stop display these things. It's getting annoing -->
<?php if($_POST){
// print '<div><pre>' . print_r($_POST, true) . '</pre></div>';
} ?>
<!-- Display all Medias stored -->
<div class="row">
<?php
foreach($categories as $category_key => $category_name){
echo getCategory($category_key, $category_name);
}
?>
</div>
<?php
include('media_item_mask.php');
?>
</div>
<?php
// Include the Footer, incl. bootstrap javascript
include('html_footer.php');
?>