Refactor views wegen öffnendem body tag im header und schließenden tag im footer

This commit is contained in:
Karsten Tlotzek 2025-06-30 10:50:08 +02:00
parent 31a381bba4
commit 8583012c5b
17 changed files with 76 additions and 100 deletions

View File

@ -1,12 +1,10 @@
<?php <?php
include dirname(__DIR__).'/header.phtml'; include dirname(__DIR__).'/header.phtml';
?> ?>
<div class="msg"> <div class="msg">
<p>Ihre Anfrage wurde erfolgreich versendet.</p> <p>Ihre Anfrage wurde erfolgreich versendet.</p>
<a href="?controller=Welcome&do=showWelcome">Weiter</a> <a href="?controller=Welcome&do=showWelcome">Weiter</a>
</div> </div>
<?php
include dirname(__DIR__).'/footer.phtml';
?>
<?php include dirname(__DIR__).'/footer.phtml'; ?>

View File

@ -1,8 +1,6 @@
<?php <?php
include dirname(__DIR__).'/header.phtml'; include dirname(__DIR__).'/header.phtml';
?> ?>
<h2>Ihre Anfrage an uns</h2> <h2>Ihre Anfrage an uns</h2>
<form method="post"> <form method="post">

View File

@ -7,6 +7,6 @@ include dirname(__DIR__).'/header.phtml';
<a href="?controller=Event&do=showEvents">Weiter</a> <a href="?controller=Event&do=showEvents">Weiter</a>
</div> </div>
<?php
include dirname(__DIR__).'/footer.phtml';
<?php include dirname(__DIR__).'/footer.phtml'; ?> ?>

View File

@ -7,6 +7,6 @@ include dirname(__DIR__).'/header.phtml';
<a href="?controller=Event&do=showEvents">Weiter</a> <a href="?controller=Event&do=showEvents">Weiter</a>
</div> </div>
<?php
include dirname(__DIR__).'/footer.phtml';
<?php include dirname(__DIR__).'/footer.phtml'; ?> ?>

View File

@ -1,7 +1,7 @@
<?php include dirname(__DIR__) . '/header.phtml'; ?> <?php
include dirname(__DIR__).'/header.phtml';
<h2>Alle Ausstellungen</h2> ?>
<h2>Alle Ausstellungen</h2>
<?php if (!empty($events)): ?> <?php if (!empty($events)): ?>
<table> <table>
<thead> <thead>
@ -28,5 +28,6 @@
<?php else: ?> <?php else: ?>
<p>Derzeit sind keine Ausstellungen verfügbar.</p> <p>Derzeit sind keine Ausstellungen verfügbar.</p>
<?php endif; ?> <?php endif; ?>
<?php
<?php include dirname(__DIR__) . '/footer.phtml'; ?> include dirname(__DIR__).'/footer.phtml';
?>

View File

@ -7,6 +7,6 @@ include dirname(__DIR__).'/header.phtml';
<a href="?controller=Event&do=showEvents">Weiter</a> <a href="?controller=Event&do=showEvents">Weiter</a>
</div> </div>
<?php
include dirname(__DIR__).'/footer.phtml';
<?php include dirname(__DIR__).'/footer.phtml'; ?> ?>

View File

@ -1 +1,7 @@
echo "create gutschein" <?php
include dirname(__DIR__).'/header.phtml';
?>
<!-- Gutschein-Erstellungsformular oder Inhalt hier einfügen -->
<?php
include dirname(__DIR__).'/footer.phtml';
?>

View File

@ -1,7 +1,8 @@
<?php include dirname(__DIR__) . '/header.phtml'; ?> <?php
include dirname(__DIR__).'/header.phtml';
<h2>Alle Gutscheine</h2> ?>
<a href="?controller=Gutschein&do=createGutscheinForm">Neuen Gutschein anlegen</a> <h2>Alle Gutscheine</h2>
<a href="?controller=Gutschein&do=createGutscheinForm">Neuen Gutschein anlegen</a>
<?php if (!empty($gutscheine)): ?> <?php if (!empty($gutscheine)): ?>
<table border="1" cellpadding="8" cellspacing="0"> <table border="1" cellpadding="8" cellspacing="0">
<thead> <thead>
@ -31,5 +32,6 @@
<?php else: ?> <?php else: ?>
<p>Keine Gutscheine vorhanden.</p> <p>Keine Gutscheine vorhanden.</p>
<?php endif; ?> <?php endif; ?>
<?php
<?php include dirname(__DIR__) . '/footer.phtml'; ?> include dirname(__DIR__).'/footer.phtml';
?>

View File

@ -1,12 +1,3 @@
<!DOCTYPE html>
<html lang="HTML-5">
<head>
<title>VR Contact</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../../CSS/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php <?php
include dirname(__DIR__) . '/header.phtml'; include dirname(__DIR__) . '/header.phtml';
?> ?>
@ -26,12 +17,9 @@ include dirname(__DIR__) . '/header.phtml';
<button class="button-loggin">Login</button> <button class="button-loggin">Login</button>
<a class="link-passwort-vergessen">Passwort vergessen?</a> <a class="link-passwort-vergessen">Passwort vergessen?</a>
<a class="link-konto-erstellen">Konto erstellen</a> <a class="link-konto-erstellen">Konto erstellen</a>
</div> </div>
</div> </div>
<?php <?php
include dirname(__DIR__) . '/footer.phtml'; include dirname(__DIR__) . '/footer.phtml';
?> ?>
<body>
</html>

View File

@ -1,7 +1,7 @@
<?php include dirname(__DIR__) . '/header.phtml'; ?> <?php
include dirname(__DIR__).'/header.phtml';
<h2>Alle News</h2> ?>
<h2>Alle News</h2>
<?php if (!empty($news)): ?> <?php if (!empty($news)): ?>
<table> <table>
<thead> <thead>
@ -24,5 +24,6 @@
<?php else: ?> <?php else: ?>
<p>Derzeit sind keine News verfügbar.</p> <p>Derzeit sind keine News verfügbar.</p>
<?php endif; ?> <?php endif; ?>
<?php
<?php include dirname(__DIR__) . '/footer.phtml'; ?> include dirname(__DIR__).'/footer.phtml';
?>

View File

@ -1,12 +1,3 @@
<!DOCTYPE html>
<html lang="HTML-5">
<head>
<title>VR Contact</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../../CSS/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php <?php
include dirname(__DIR__) . '/header.phtml'; include dirname(__DIR__) . '/header.phtml';
?> ?>
@ -70,12 +61,9 @@ include dirname(__DIR__) . '/header.phtml';
</form> </form>
<button class="button-register">Registrieren</button> <button class="button-register">Registrieren</button>
<a class="link-konto-erstellen">Login</a> <a class="link-konto-erstellen">Login</a>
</div> </div>
</div> </div>
<?php <?php
include dirname(__DIR__) . '/footer.phtml'; include dirname(__DIR__) . '/footer.phtml';
?> ?>
<body>
</html>

View File

@ -1,7 +1,7 @@
<?php include dirname(__DIR__) . '/header.phtml'; ?> <?php
include dirname(__DIR__).'/header.phtml';
<h2>Unsere Standorte</h2> ?>
<h2>Unsere Standorte</h2>
<?php if (!empty($standorte)): ?> <?php if (!empty($standorte)): ?>
<table border="1" cellpadding="8" cellspacing="0"> <table border="1" cellpadding="8" cellspacing="0">
<thead> <thead>
@ -32,5 +32,6 @@
<?php else: ?> <?php else: ?>
<p>Keine Standorte gefunden.</p> <p>Keine Standorte gefunden.</p>
<?php endif; ?> <?php endif; ?>
<?php
<?php include dirname(__DIR__) . '/footer.phtml'; ?> include dirname(__DIR__).'/footer.phtml';
?>

View File

@ -7,6 +7,6 @@ include dirname(__DIR__).'/header.phtml';
<a href="?controller=Welcome&do=showWelcome">Weiter</a> <a href="?controller=Welcome&do=showWelcome">Weiter</a>
</div> </div>
<?php
include dirname(__DIR__).'/footer.phtml';
<?php include dirname(__DIR__).'/footer.phtml'; ?> ?>

View File

@ -1,11 +1,9 @@
<?php <?php
include dirname(__DIR__).'/header.phtml'; include dirname(__DIR__).'/header.phtml';
?> ?>
<article> <article>
<h2>Virtuelles Museum</h2> <h2>Virtuelles Museum</h2>
<span class="articleInfo">John Doe | 12.08.2018 um 10:18 Uhr</span> <span class="articleInfo">John Doe | 12.08.2018 um 10:18 Uhr</span>
<p> <p>
<img class="articleImg" src="images/museum.jpg" alt="my Oculus Rift"> <img class="articleImg" src="images/museum.jpg" alt="my Oculus Rift">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Curabitur pretium tincidunt lacus. Nulla gravida orci a odio.
@ -18,4 +16,6 @@ include dirname(__DIR__).'/header.phtml';
Praesent ut quam. Praesent ut quam.
</p> </p>
</article> </article>
<?php include dirname(__DIR__).'/footer.phtml'; ?> <?php
include dirname(__DIR__).'/footer.phtml';
?>

View File

@ -1,11 +1,9 @@
<?php <?php
include dirname(__DIR__).'/header.phtml'; include dirname(__DIR__).'/header.phtml';
?> ?>
<article> <article>
<h2>Implement Controller</h2> <h2>Implement Controller</h2>
<span class="articleInfo">John Doe | 18.07.2018 um 18:43 Uhr</span> <span class="articleInfo">John Doe | 18.07.2018 um 18:43 Uhr</span>
<p> <p>
<img class="articleImg" src="images/controller.jpg" alt="my Oculus Rift"> <img class="articleImg" src="images/controller.jpg" alt="my Oculus Rift">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Curabitur pretium tincidunt lacus. Nulla gravida orci a odio.
@ -18,4 +16,6 @@ include dirname(__DIR__).'/header.phtml';
Praesent ut quam. Praesent ut quam.
</p> </p>
</article> </article>
<?php include dirname(__DIR__).'/footer.phtml'; ?> <?php
include dirname(__DIR__).'/footer.phtml';
?>

View File

@ -1,19 +1,13 @@
<head> <div id="footer">
<title>VR Contact</title> <div class="container-zahlungsmittel">
<meta charset="UTF-8" /> <h2 class="header-zahlungsarten">Mögliche Zahlungsarten</h2>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <div class="zahlungsmittel-img"></div>
<link href="CSS/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="footer">
<div class="container-zahlungsmittel">
<h2 class="header-zahlungsarten">Mögliche Zahlungsarten</h2>
<div class="zahlungsmittel-img"></div>
</div>
<div class="line"></div>
<a class="link-impressum">Impressum</a>
<a class="link-datenschutz">Datenschutz</a>
<a class="link-nutzungsbedingungen">Nutzungsbedingungen</a>
<span class="text-bib">© bib arts GmbH</span>
</div> </div>
</body> <div class="line"></div>
<a class="link-impressum">Impressum</a>
<a class="link-datenschutz">Datenschutz</a>
<a class="link-nutzungsbedingungen">Nutzungsbedingungen</a>
<span class="text-bib">© bib arts GmbH</span>
</div>
</body>
</html>

View File

@ -1,10 +1,10 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="HTML-5"> <html lang="de">
<head> <head>
<title>VR Contact</title> <title>VR Contact</title>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="CSS/style.css" rel="stylesheet" type="text/css" /> <link href="/bibarts/CSS/style.css" rel="stylesheet" type="text/css" />
</head> </head>
<body> <body>
<div id="wrapper"> <div id="wrapper">
@ -17,5 +17,4 @@
<div id="profile-picture"></div> <div id="profile-picture"></div>
</div> </div>
</nav> </nav>
</body> </div>
</html>