-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.php
42 lines (36 loc) · 961 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
39
40
41
42
<!DOCTYPE html>
<html lang="de">
<head>
<link href ="styles/style_index.css" rel ="stylesheet" type ="text/css">
<meta charset="UTF-8">
<title> Index Page </title>
</head>
<body>
<header>
<a href="admin.php">
<img id="redseaLogo" alt="Logo RedSea" src="bilder/redsea_logo.png" height="100">
</a>
</header>
<main>
<div id="pageHeadline">
<h1> Images: </h1>
</div>
<?php
include("filedata.php");
include("helper.php");
$images = getCmsImages($fileData);
sort($images);
foreach($images as $image){
$fileNamePartsArray = explode(".", $image);
echo("<table> <tr>");
echo('<td> <img id="uploadedImages" src="'.$image.'" > </td>');
echo("<td><h4>");
echo("<div id='imageContent'>");
echo(file_get_contents($fileNamePartsArray[0] . ".txt"));
echo("</h4> </td> </div>");
echo("</tr> </table>");
}
?>
</main>
</body>
</html>