-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
31 lines (31 loc) · 1.35 KB
/
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
<?php
include("easyportfolio.php");
$blog = new EasyPortfolio();
//$blog->createTable();
//$blog->delAllEnt();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300,100|Oswald:400' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/global.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<title>Showcase</title>
</head>
<body>
<div id="header">Mein Showcase</div>
<?php
//$posts = $blog->setNewEnt("First Image", "Thats my first image ever!!!", "img/portfolio.png");
//$posts = $blog->setNewEnt("New Image", "It's just a simple image :D", "img/portfolio.png");
$posts = $blog->getAllEnt();
foreach ($posts as &$ent) {
echo "<div class=\"eintrag ".$ent->getId()."\" tabindex=\"1\"><img src=\"".$ent->getImage()."\"/>
<div class=\"desc\"><h1>".$ent->getSubject()."</h1><br/><p>".$ent->getBody()."</p></div>
</div>";
}
$posts = $blog->closeDB();
?>
</body>
</html>