Initial commit from online.
This commit is contained in:
4
admin/.htaccess
Normal file
4
admin/.htaccess
Normal file
@@ -0,0 +1,4 @@
|
||||
AuthName "AdminBereich"
|
||||
AuthType Basic
|
||||
AuthUserFile /var/www/vhosts/h136629.server60.campusspeicher.de/httpdocs/admin/.htpasswd
|
||||
require valid-user
|
||||
1
admin/.htpasswd
Normal file
1
admin/.htpasswd
Normal file
@@ -0,0 +1 @@
|
||||
Silvi:$1$XEEw1XE6$EbcawJfkcboZ6tJwIgKxb0
|
||||
47
admin/angebote.php
Normal file
47
admin/angebote.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<h1>Angebot</h1>
|
||||
<?php
|
||||
if ((!isset($_POST['new'])) AND (!isset($_POST['edit'])) AND (!isset($_POST['del']))) {
|
||||
$sql1 = 'SELECT * FROM Angebot';
|
||||
$result1 = $db->query($sql1);
|
||||
?>
|
||||
<fieldset>
|
||||
<form action="index.php?section=angebote" method="post">
|
||||
<fieldset>
|
||||
<legend>neues Angebot erstellen</legend>
|
||||
<input type="submit" name="new" value="Erstellen" />
|
||||
<br />
|
||||
</fieldset>
|
||||
<br />
|
||||
<select name="Titel">
|
||||
<?php
|
||||
while ($nt1 = $result1->fetch_assoc()) {
|
||||
echo '<option value="'.$nt1['ID'].'">'.$nt1['ID'].' '.$nt1['head1'].'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend>Angebot ändern</legend>
|
||||
<input type="submit" name="edit" value="Bearbeiten" />
|
||||
<br />
|
||||
</fieldset>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend>Angebot löschen</legend>
|
||||
<input type="submit" name="del" value="Löschen" />
|
||||
<br />
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
|
||||
<?php
|
||||
} else {
|
||||
if (isset($_POST['new'])) {
|
||||
include "inhalte/angebote/new.php";
|
||||
} elseif (isset($_POST['edit'])) {
|
||||
include "inhalte/angebote/edit.php";
|
||||
} elseif (isset($_POST['del'])) {
|
||||
include "inhalte/angebote/del.php";
|
||||
} else {
|
||||
echo "Fehler";
|
||||
}
|
||||
}
|
||||
110
admin/css/page.css
Normal file
110
admin/css/page.css
Normal file
@@ -0,0 +1,110 @@
|
||||
html {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
body {
|
||||
width: 960px;
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
label {
|
||||
width: 150px;
|
||||
display: block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 250px;
|
||||
display: block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
form br {
|
||||
clear: left;
|
||||
}
|
||||
|
||||
#preise input {
|
||||
width: 50px;
|
||||
text-align: right;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#root {
|
||||
position: absolute;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
#header {
|
||||
height: 40px;
|
||||
width: 960px;
|
||||
background-color: #ccc;
|
||||
}
|
||||
|
||||
#header ul {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
list-style-type: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#header li {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#header li a {
|
||||
height: 38px;
|
||||
line-height: 38px;
|
||||
width: 158px;
|
||||
display: block;
|
||||
border: 1px solid #000;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
color: #00f;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#links {
|
||||
position: relative;
|
||||
width: 160px;
|
||||
height: 600px;
|
||||
left: 0px;
|
||||
float: left;
|
||||
background-color: #ccc;
|
||||
}
|
||||
|
||||
#links ul {
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
margin: 20px 0px;
|
||||
padding: 0px;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#links ul li ul li{
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
#links ul li ul {
|
||||
border: 1px solid #000;
|
||||
}
|
||||
|
||||
#links li a {
|
||||
width: 158px;
|
||||
display: block;
|
||||
border-top: 1px solid #000;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
color: #00f;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#inhalt {
|
||||
position: relative;
|
||||
width: 780px;
|
||||
right: 10px;
|
||||
top: 10px;
|
||||
height: 580px;
|
||||
float: right;
|
||||
}
|
||||
22
admin/fotos.php
Normal file
22
admin/fotos.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<h1>Fotos</h1>
|
||||
|
||||
<?php
|
||||
if (!isset($_GET['t'])) {
|
||||
include "inhalte/fotos/standard.php";
|
||||
}
|
||||
else {
|
||||
if (('will' == $_GET['t']) OR ('haus' == $_GET['t']) OR ('lage' == $_GET['t']) OR ('geschichte' == $_GET['t']) OR ('gaby' == $_GET['t']) OR ('amelie' == $_GET['t'])){
|
||||
include "inhalte/fotos/10er.php";
|
||||
}
|
||||
elseif ('wohn' == $_GET['t']) {
|
||||
include "inhalte/fotos/wohn.php";
|
||||
}
|
||||
elseif ('bilder' == $_GET['t']) {
|
||||
include "inhalte/fotos/bilder.php";
|
||||
}
|
||||
else {
|
||||
include "inhalte/fotos/standard.php";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
47
admin/gb.php
Normal file
47
admin/gb.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<h1>Gästebuch</h1>
|
||||
<?php
|
||||
if ((!isset($_POST['new'])) AND (!isset($_POST['edit'])) AND (!isset($_POST['del']))) {
|
||||
$sql1 = 'SELECT * FROM gb';
|
||||
$result1 = $db->query($sql1);
|
||||
?>
|
||||
<fieldset>
|
||||
<form action="index.php?section=gb" method="post">
|
||||
<fieldset>
|
||||
<legend>neuen Gästebucheintrag hochladen</legend>
|
||||
<input type="submit" name="new" value="Hochladen" />
|
||||
<br />
|
||||
</fieldset>
|
||||
<br />
|
||||
<select name="Titel">
|
||||
<?php
|
||||
while ($nt1 = $result1->fetch_assoc()) {
|
||||
echo '<option value="'.$nt1['ID'].'">'.$nt1['ID'].' '.$nt1['Autor'].'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend>Gästebucheintrag ändern</legend>
|
||||
<input type="submit" name="edit" value="Bearbeiten" />
|
||||
<br />
|
||||
</fieldset>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend>Gästebucheintrag löschen</legend>
|
||||
<input type="submit" name="del" value="L<>schen" />
|
||||
<br />
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
|
||||
<?php
|
||||
} else {
|
||||
if (isset($_POST['new'])) {
|
||||
include "inhalte/gb/new.php";
|
||||
} elseif (isset($_POST['edit'])) {
|
||||
include "inhalte/gb/edit.php";
|
||||
} elseif (isset($_POST['del'])) {
|
||||
include "inhalte/gb/del.php";
|
||||
} else {
|
||||
echo "Fehler";
|
||||
}
|
||||
}
|
||||
7
admin/header.php
Normal file
7
admin/header.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<ul>
|
||||
<li><a href="index.php?section=fotos">Fotos</a></li>
|
||||
<li><a href="index.php?section=angebote">Datenschutzerklärung</a></li>
|
||||
<li><a href="index.php?section=gb">Gästebuch</a></li>
|
||||
<li><a href="index.php?section=kal">Kalender</a></li>
|
||||
<li><a href="index.php?section=preise">Preise</a></li>
|
||||
</ul>
|
||||
5
admin/inc/config.php
Normal file
5
admin/inc/config.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
include "funktionen.php";
|
||||
include "variablen.php";
|
||||
include "konstanten.php";
|
||||
?>
|
||||
6
admin/inc/funktionen.php
Normal file
6
admin/inc/funktionen.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
// Die Datei inc/funktionen.php
|
||||
|
||||
?>
|
||||
|
||||
7
admin/inc/konstanten.php
Normal file
7
admin/inc/konstanten.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
// konstanten.php
|
||||
define('MYSQL_HOST', 'localhost');
|
||||
define('MYSQL_USER', 'web104');
|
||||
define('MYSQL_PASS', 'lmaa,dw.');
|
||||
define('MYSQL_DATABASE', 'usr_web104_1');
|
||||
?>
|
||||
19
admin/inc/variablen.php
Normal file
19
admin/inc/variablen.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
// Die Leeren Arrays erzeugen
|
||||
$dateien = array();
|
||||
$links = array();
|
||||
|
||||
// Das Array für die Inhaltsseite mit den entsprechenden Dateien füllen
|
||||
$dateien['fotos'] = "fotos.php";
|
||||
$dateien['angebote'] = "angebote.php";
|
||||
$dateien['gb'] = "gb.php";
|
||||
$dateien['kal'] = "kal.php";
|
||||
$dateien['preise'] = "preise.php";
|
||||
$dateien['will'] = "will.php";
|
||||
|
||||
// Das Array für die linke Navigation mit den entsprechenden Dateien füllen
|
||||
$links['fotos'] = "links/fotos.php";
|
||||
$links['kal'] = "links/kal.php";
|
||||
$links['preise'] = "links/preise.php";
|
||||
|
||||
?>
|
||||
34
admin/index.php
Normal file
34
admin/index.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
include "inc/config.php"; // die Konfigurationsdateien lesen
|
||||
|
||||
// Verbindung zu MySQL Aufbauen
|
||||
$db = @new MySQLi(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DATABASE);
|
||||
if (mysqli_connect_errno()) {
|
||||
die('Konnte keine Verbindung zu Datenbank aufbauen, MySQL meldete: '.mysqli_connect_error());
|
||||
}
|
||||
|
||||
|
||||
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n";
|
||||
echo " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
|
||||
echo "<html>\n";
|
||||
echo " <head>\n";
|
||||
echo " <title>Administrationsbereich Ferienhaus - Wille</title>\n";
|
||||
echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"css/page.css\" />\n";
|
||||
echo " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />\n";
|
||||
echo " </head>\n";
|
||||
echo " <body>\n";
|
||||
echo " <div id=\"root\">\n";
|
||||
echo " <div id=\"header\">\n"; // Oben der Header
|
||||
include "header.php";
|
||||
echo " </div>\n";
|
||||
echo " <div id=\"links\">\n"; // Navigation links
|
||||
include "links.php";
|
||||
echo " </div>\n";
|
||||
echo " <div id=\"inhalt\">\n"; // In der Mitte der Inhalt
|
||||
include "inhalt.php";
|
||||
echo " </div>\n";
|
||||
echo " </div>\n";
|
||||
echo " </body>\n";
|
||||
echo "</html>\n";
|
||||
?>
|
||||
7
admin/inhalt.php
Normal file
7
admin/inhalt.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
if(isset($_GET['section']) AND isset($dateien[$_GET['section']])) {
|
||||
include $dateien[$_GET['section']];
|
||||
} else {
|
||||
include $dateien['will'];
|
||||
}
|
||||
?>
|
||||
21
admin/inhalte/angebote/del.php
Normal file
21
admin/inhalte/angebote/del.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
$file = "../img/angebot/".$_POST['Titel'].".jpg";
|
||||
$sql2 = 'DELETE FROM Angebot WHERE ID = "'.$_POST['Titel'].'"';
|
||||
|
||||
$result2 = $db->query($sql2);
|
||||
if ($result2) {
|
||||
echo "<p>Datenbankeintrag gelöscht</p>\n";
|
||||
if (unlink($file)) {
|
||||
echo "<p>Bild wurde gelöscht</p>\n";
|
||||
}
|
||||
else {
|
||||
echo "<p>Fehler beim Löschen des Bildes</p>\n";
|
||||
}
|
||||
} else {
|
||||
echo "Fehler beim Löschen";
|
||||
}
|
||||
echo '<a href="index.php?section=angebote">Zurück zur Übersicht</a>';
|
||||
|
||||
|
||||
?>
|
||||
84
admin/inhalte/angebote/edit.php
Normal file
84
admin/inhalte/angebote/edit.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<h3>Angebot <EFBFBD>ndern</h3>
|
||||
|
||||
<?php
|
||||
if (!isset($_POST['Speichern'])) {
|
||||
echo "<img src=\"../img/angebot/".$_POST['Titel'].".jpg\" /><br />";
|
||||
$sql1 = 'SELECT * FROM Angebot WHERE ID = "'.$_POST['Titel'].'"';
|
||||
$result1 = $db->query($sql1);
|
||||
$nt1 = $result1->fetch_assoc();
|
||||
|
||||
?>
|
||||
|
||||
<form action="index.php?section=angebote" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="edit" value="speichern" />
|
||||
<input type="hidden" name="id" value="<?php echo $_POST['Titel']; ?>" />
|
||||
<label><3E>berschrift 1</label>
|
||||
<input type="text" name="head1" value="<?php echo $nt1['head1']; ?>" />
|
||||
<br />
|
||||
<label><3E>berschrift 2</label>
|
||||
<input type="text" name="head2" value="<?php echo $nt1['head2']; ?>" />
|
||||
<br />
|
||||
<label>Text</label>
|
||||
<br />
|
||||
<textarea name="text" cols="90" rows="10"><?php echo $nt1['text']; ?></textarea>
|
||||
<br />
|
||||
<p>Gültig für die Wohnungen:</p>
|
||||
<label>Amelie</label>
|
||||
<input type="checkbox" name="amelie" <?php if('1' == $nt1['amelie']){ echo "checked=\"checked\" "; }?> />
|
||||
<br />
|
||||
<label>Gaby</label>
|
||||
<input type="checkbox" name="gaby" <?php if('1' == $nt1['gaby']){ echo "checked=\"checked\" "; }?> />
|
||||
<br />
|
||||
<label>Preis Wohnung Amelie</label>
|
||||
<input type="text" name="preisA" value="<?php echo $nt1['preisA']; ?>" />
|
||||
<br />
|
||||
<label>Preis Wohnung Gaby</label>
|
||||
<input type="text" name="preisG" value="<?php echo $nt1['preisG']; ?>" />
|
||||
<br />
|
||||
<label>Anzahl Personen</label>
|
||||
<input type="text" name="Personen" value="<?php echo $nt1['Personen']; ?>" />
|
||||
<br />
|
||||
<label>Leistungen (durch Enter von einander trennen)</label>
|
||||
<br />
|
||||
<textarea name="Leistungen" cols="90" rows="10"><?php echo $nt1['Leistungen']; ?></textarea>
|
||||
<br />
|
||||
<label>Gültigkeit</label>
|
||||
<input type="text" name="Valid" value="<?php echo $nt1['Valid']; ?>" />
|
||||
<br />
|
||||
<input type="submit" name="Speichern" value="Speichern" />
|
||||
</form>
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
$head1 = $_POST['head1'];
|
||||
$head2 = $_POST['head2'];
|
||||
$text = $_POST['text'];
|
||||
if ("on" == $_POST['amelie']) {
|
||||
$amelie = 1;
|
||||
} else {
|
||||
$amelie = 0;
|
||||
}
|
||||
if ("on" == $_POST['gaby']) {
|
||||
$gaby = 1;
|
||||
} else {
|
||||
$gaby = 0;
|
||||
}
|
||||
$preisA = $_POST['preisA'];
|
||||
$preisG = $_POST['preisG'];
|
||||
$Personen = $_POST['Personen'];
|
||||
$Leistungen = $_POST['Leistungen'];
|
||||
$Valid = $_POST['Valid'];
|
||||
$sql2 = 'UPDATE Angebot SET head1 = "'.$head1.'", head2 = "'.$head2.'", text = "'.$text.'", amelie = "'.$amelie.'", gaby = "'.$gaby.'", preisA = "'.$preisA.'", preisG = "'.$preisG.'", Personen = "'.$Personen.'", Leistungen = "'.$Leistungen.'", Valid = "'.$Valid.'" WHERE ID = "'.$_POST['id'].'";';
|
||||
$stmt2 = $db->prepare($sql2);
|
||||
if (!$stmt2) {
|
||||
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
|
||||
}
|
||||
if (!$stmt2->execute()) {
|
||||
die ('Query konnte nicht ausgef<65>hrt werden: '.$stmt->error);
|
||||
}
|
||||
echo "Der Eintrag wurde ge<67>ndert<br />";
|
||||
echo '<a href="index.php?section=angebote">Zur<75>ck zur <20>bersicht</a>';
|
||||
}
|
||||
?>
|
||||
107
admin/inhalte/angebote/new.php
Normal file
107
admin/inhalte/angebote/new.php
Normal file
@@ -0,0 +1,107 @@
|
||||
<h3>neues Angebot anlegen</h3>
|
||||
|
||||
<?php
|
||||
if (!isset($_POST['Speichern'])) {
|
||||
?>
|
||||
|
||||
<form action="index.php?section=angebote" method="post" enctype="multipart/form-data">
|
||||
<label>Foto auswählen</label>
|
||||
<input type="hidden" name="new" value="speichern" />
|
||||
<input type="file" name="Foto" />
|
||||
<br />
|
||||
<label>Überschrift 1</label>
|
||||
<input type="text" name="head1" />
|
||||
<br />
|
||||
<label>Überschrift 2</label>
|
||||
<input type="text" name="head2" />
|
||||
<br />
|
||||
<label>Text</label>
|
||||
<br />
|
||||
<textarea name="text" cols="90" rows="10"></textarea>
|
||||
<br />
|
||||
<p>Gültig für die Wohnungen:</p>
|
||||
<label>Amelie</label>
|
||||
<input type="checkbox" name="amelie" />
|
||||
<br />
|
||||
<label>Gaby</label>
|
||||
<input type="checkbox" name="gaby" />
|
||||
<br />
|
||||
<label>Preis Wohnung Amelie</label>
|
||||
<input type="text" name="preisA" />
|
||||
<br />
|
||||
<label>Preis Wohnung Gaby</label>
|
||||
<input type="text" name="preisG" />
|
||||
<br />
|
||||
<label>Anzahl Personen</label>
|
||||
<input type="text" name="Personen" />
|
||||
<br />
|
||||
<label>Leistungen (durch Enter von einander trennen)</label>
|
||||
<br />
|
||||
<textarea name="Leistungen" cols="90" rows="10"></textarea>
|
||||
<br />
|
||||
<label>G<>ltigkeit</label>
|
||||
<input type="text" name="Valid" />
|
||||
<br />
|
||||
<input type="submit" name="Speichern" value="Speichern" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
if ('' != $_FILES['Foto']['name']) {
|
||||
$head1 = $_POST['head1'];
|
||||
$head2 = $_POST['head2'];
|
||||
$text = $_POST['text'];
|
||||
if ("on" == $_POST['amelie']) {
|
||||
$amelie = 1;
|
||||
} else {
|
||||
$amelie = 0;
|
||||
}
|
||||
if ("on" == $_POST['gaby']) {
|
||||
$gaby = 1;
|
||||
} else {
|
||||
$gaby = 0;
|
||||
}
|
||||
$preisA = $_POST['preisA'];
|
||||
$preisG = $_POST['preisG'];
|
||||
$Personen = $_POST['Personen'];
|
||||
$Leistungen = $_POST['Leistungen'];
|
||||
$Valid = $_POST['Valid'];
|
||||
$sql1 = 'INSERT INTO Angebot (ID, head1, head2, text, amelie, gaby, preisA, preisG, Personen, Leistungen, Valid) VALUES (NULL, "'.$head1.'", "'.$head2.'", "'.$text.'", "'.$amelie.'", "'.$gaby.'", "'.$preisA.'", "'.$preisG.'", "'.$Personen.'", "'.$Leistungen.'", "'.$Valid.'");';
|
||||
$stmt1 = $db->prepare($sql1);
|
||||
if (!$stmt1) {
|
||||
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
|
||||
}
|
||||
if (!$stmt1->execute()) {
|
||||
die ('Query konnte nicht ausgef<65>hrt werden: '.$stmt1->error);
|
||||
}
|
||||
|
||||
$sql2 = 'SELECT last_insert_id()';
|
||||
$result2 = $db->query($sql2);
|
||||
$last = $result2->fetch_assoc();
|
||||
$id = $last['last_insert_id()'];
|
||||
|
||||
$uploaddir = '../img/angebot/';
|
||||
$uploadfile = $uploaddir. $_FILES['Foto']['name'];
|
||||
move_uploaded_file($_FILES['Foto']['tmp_name'], $uploadfile);
|
||||
$src = imagecreatefromjpeg($uploadfile);
|
||||
list($width,$height)=getimagesize($uploadfile);
|
||||
if ($height > $width) {
|
||||
$newheight=280;
|
||||
$newwidth=($width/$height)*280;
|
||||
} else {
|
||||
$newwidth=280;
|
||||
$newheight=($height/$width)*280;
|
||||
}
|
||||
$tmp=imagecreatetruecolor($newwidth,$newheight);
|
||||
imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);
|
||||
$filename = $uploaddir . $id . ".jpg";
|
||||
imagejpeg($tmp,$filename,80);
|
||||
imagedestroy($src);
|
||||
imagedestroy($tmp);
|
||||
unlink($uploaddir. $_FILES['Foto']['name']);
|
||||
}
|
||||
echo '<a href="index.php?section=angebote">Zur<75>ck zur <20>bersicht</a>';
|
||||
|
||||
}
|
||||
?>
|
||||
89
admin/inhalte/fotos/10er.php
Normal file
89
admin/inhalte/fotos/10er.php
Normal file
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
if ('will' == $_GET['t']) {
|
||||
$path = "../img/will/";
|
||||
echo "<h2>Fotos auf der Seite Willkommen</h2>\n";
|
||||
} elseif ('haus' == $_GET['t']) {
|
||||
$path = "../img/haus/";
|
||||
echo "<h2>Fotos auf der Seite Unser Haus</h2>\n";
|
||||
} elseif ('lage' == $_GET['t']) {
|
||||
$path = "../img/haus/lage/";
|
||||
echo "<h2>Fotos auf der Seite Unser Haus - Lage</h2>\n";
|
||||
} elseif ('geschichte' == $_GET['t']) {
|
||||
$path = "../img/haus/geschichte/";
|
||||
echo "<h2>Fotos auf der Seite Unser Haus - Geschichte</h2>\n";
|
||||
} elseif ('gaby' == $_GET['t']) {
|
||||
$path = "../img/gaby/";
|
||||
echo "<h2>Fotos auf der Seite Wohnung Gaby</h2>\n";
|
||||
} elseif ('amelie' == $_GET['t']) {
|
||||
$path = "../img/amelie/";
|
||||
echo "<h2>Fotos auf der Seite Wohnung Amelie</h2>\n";
|
||||
}
|
||||
|
||||
$ref = "index.php?section=fotos&t=".$_GET['t'];
|
||||
|
||||
if (!isset($_GET['action'])) {
|
||||
echo "<p>Auf ein vorhandenes Bild klicken um es zu löschen<br />";
|
||||
echo "Auf einen Platzhalter klicken um ein neues Bild hochzuladen</p>";
|
||||
for ($i=0; $i<10; $i++) {
|
||||
$pic = $path.$i.".jpg";
|
||||
if (file_exists($pic)) {
|
||||
$link = $ref."&action=del&pic=".$i;
|
||||
echo "<a href=\"$link\">";
|
||||
echo "<img style=\"margin: 20px 20px 20px 20px; border: 2px solid red;\" src=\"$pic\" width=\"100px\" height=\"100px\"/>";
|
||||
echo "</a>\n";
|
||||
}
|
||||
else {
|
||||
$link = $ref."&action=add&pic=".$i;
|
||||
echo "<a href=\"$link\">";
|
||||
echo "<img style=\"margin: 20px 20px 20px 20px; border: 2px solid red;\" src=\"../img/no.jpg\" />";
|
||||
echo "</a>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ('del' == $_GET['action']) {
|
||||
$delfile = $path . $_GET['pic'] . ".jpg";
|
||||
if (unlink($delfile)) {
|
||||
echo "<p>Bild gelöscht</p>";
|
||||
}
|
||||
else {
|
||||
echo "<p>Fehler beim Löschen</p>";
|
||||
}
|
||||
echo "<a href=\"index.php?section=fotos&t=$_GET[t]\">Zurück zur Übersicht</a>\n";
|
||||
}
|
||||
elseif ('add' == $_GET['action']) {
|
||||
$ref .= "&action=speichern&pic=".$_GET['pic']
|
||||
?>
|
||||
<form action="<?php echo $ref; ?>" method="post" enctype="multipart/form-data">
|
||||
<label>Foto auswählen</label>
|
||||
<input type="file" name="Foto" />
|
||||
<br />
|
||||
<input type="submit" name="Speichern" value="Speichern" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
elseif ('speichern' == $_GET['action']) {
|
||||
$uploadfile = $path. $_FILES['Foto']['name'];
|
||||
move_uploaded_file($_FILES['Foto']['tmp_name'], $uploadfile);
|
||||
$src = imagecreatefromjpeg($uploadfile);
|
||||
list($width,$height)=getimagesize($uploadfile);
|
||||
if ($height > $width) {
|
||||
$newheight=480;
|
||||
$newwidth=($width/$height)*480;
|
||||
} else {
|
||||
$newwidth=480;
|
||||
$newheight=($height/$width)*480;
|
||||
}
|
||||
$tmp=imagecreatetruecolor($newwidth,$newheight);
|
||||
imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);
|
||||
$filename = $path . $_GET['pic'] . ".jpg";
|
||||
imagejpeg($tmp,$filename,80);
|
||||
imagedestroy($src);
|
||||
imagedestroy($tmp);
|
||||
unlink($path. $_FILES['Foto']['name']);
|
||||
echo "<p>Bild hochgeladen</p>";
|
||||
echo "<a href=\"index.php?section=fotos&t=".$_GET['t']."\">Zurück zur Übersicht</a>\n";
|
||||
}
|
||||
}
|
||||
17
admin/inhalte/fotos/bilder.php
Normal file
17
admin/inhalte/fotos/bilder.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<h2>Fotos der Bildergalerie</h2>
|
||||
|
||||
<?php
|
||||
|
||||
if (isset($_POST['add'])) {
|
||||
include "inhalte/fotos/bilder/add.php";
|
||||
}
|
||||
elseif (isset($_POST['edit'])) {
|
||||
include "inhalte/fotos/bilder/edit.php";
|
||||
}
|
||||
elseif (isset($_POST['del'])) {
|
||||
include "inhalte/fotos/bilder/del.php";
|
||||
}
|
||||
else {
|
||||
include "inhalte/fotos/bilder/standard.php";
|
||||
}
|
||||
?>
|
||||
59
admin/inhalte/fotos/bilder/add.php
Normal file
59
admin/inhalte/fotos/bilder/add.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<h3>Neues Bild hinzufügen</h3>
|
||||
|
||||
<?php
|
||||
if (!isset($_POST['Speichern'])) {
|
||||
?>
|
||||
|
||||
<form action="index.php?section=fotos&t=bilder" method="post" enctype="multipart/form-data">
|
||||
<label>Foto auswählen</label>
|
||||
<input type="hidden" name="add" value="speichern" />
|
||||
<input type="file" name="Foto" />
|
||||
<br />
|
||||
<label>Bildüberschrift</label>
|
||||
<input type="text" name="Text" />
|
||||
<br />
|
||||
<input type="submit" name="Speichern" value="Speichern" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
if ('' != $_FILES['Foto']['name']) {
|
||||
$Text = $_POST['Text'];
|
||||
$sql1 = 'INSERT INTO bilder (ID, Head) VALUES (NULL, "'.$Text.'");';
|
||||
$stmt1 = $db->prepare($sql1);
|
||||
if (!$stmt1) {
|
||||
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
|
||||
}
|
||||
if (!$stmt1->execute()) {
|
||||
die ('Query konnte nicht ausgeführt werden: '.$stmt1->error);
|
||||
}
|
||||
|
||||
$sql2 = 'SELECT last_insert_id()';
|
||||
$result2 = $db->query($sql2);
|
||||
$last = $result2->fetch_assoc();
|
||||
$id = $last['last_insert_id()'];
|
||||
|
||||
$uploaddir = '../img/umgebung/bilder/';
|
||||
$uploadfile = $uploaddir. $_FILES['Foto']['name'];
|
||||
move_uploaded_file($_FILES['Foto']['tmp_name'], $uploadfile);
|
||||
$src = imagecreatefromjpeg($uploadfile);
|
||||
list($width,$height)=getimagesize($uploadfile);
|
||||
if ($height > $width) {
|
||||
$newheight=460;
|
||||
$newwidth=($width/$height)*460;
|
||||
} else {
|
||||
$newwidth=460;
|
||||
$newheight=($height/$width)*460;
|
||||
}
|
||||
$tmp=imagecreatetruecolor($newwidth,$newheight);
|
||||
imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);
|
||||
$filename = $uploaddir . $id . ".jpg";
|
||||
imagejpeg($tmp,$filename,80);
|
||||
imagedestroy($src);
|
||||
imagedestroy($tmp);
|
||||
unlink($uploaddir. $_FILES['Foto']['name']);
|
||||
}
|
||||
echo '<a href="index.php?section=fotos&t=bilder">Zurück zur Übersicht</a>';
|
||||
}
|
||||
?>
|
||||
39
admin/inhalte/fotos/bilder/del.php
Normal file
39
admin/inhalte/fotos/bilder/del.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
if (!isset($_POST['Speichern'])) {
|
||||
echo "<p>Dieses Bild löschen?</p>\n";
|
||||
$file = "../img/umgebung/bilder/".$_POST['Titel'].".jpg";
|
||||
echo "<img src=\"$file\"><br />\n";
|
||||
$sql1 = 'SELECT * FROM bilder WHERE ID = "'.$_POST['Titel'].'"';
|
||||
$result1 = $db->query($sql1);
|
||||
$nt1 = $result1->fetch_assoc();
|
||||
echo "<h3>$nt1[Head]</h3>";
|
||||
?>
|
||||
<form action="index.php?section=fotos&t=bilder" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="del" value="speichern" />
|
||||
<input type="hidden" name="id" value="<?php echo $_POST['Titel']; ?>" />
|
||||
<input type="hidden" name="file" value="<?php echo $file; ?>" />
|
||||
<br />
|
||||
<input type="submit" name="Speichern" value="L<>schen" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
$sql2 = 'DELETE FROM bilder WHERE ID = "'.$_POST['id'].'"';
|
||||
$result2 = $db->query($sql2);
|
||||
if ($result2) {
|
||||
echo "<p>Datenbankeintrag gelöscht</p>\n";
|
||||
if (unlink($_POST['file'])) {
|
||||
echo "<p>Bild wurde gelöscht</p>\n";
|
||||
}
|
||||
else {
|
||||
echo "<p>Fehler beim Löschen des Bildes</p>\n";
|
||||
}
|
||||
} else {
|
||||
echo "Fehler beim L<>schen";
|
||||
}
|
||||
echo '<a href="index.php?section=fotos&t=bilder">Zur<75>ck zur <20>bersicht</a>';
|
||||
}
|
||||
|
||||
?>
|
||||
38
admin/inhalte/fotos/bilder/edit.php
Normal file
38
admin/inhalte/fotos/bilder/edit.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<h3>Bildüberschrift ändern</h3>
|
||||
|
||||
<?php
|
||||
|
||||
if (!isset($_POST['Speichern'])) {
|
||||
echo "<img src=\"../img/umgebung/bilder/".$_POST['Titel'].".jpg\" /><br />";
|
||||
$sql1 = 'SELECT Head FROM bilder WHERE ID = "'.$_POST['Titel'].'"';
|
||||
$result1 = $db->query($sql1);
|
||||
$nt1 = $result1->fetch_assoc();
|
||||
echo $nt1['Head'];
|
||||
|
||||
?>
|
||||
|
||||
<form action="index.php?section=fotos&t=bilder" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="edit" value="speichern" />
|
||||
<input type="hidden" name="id" value="<?php echo $_POST['Titel']; ?>" />
|
||||
<label>Bildüberschrift</label>
|
||||
<input type="text" name="Text" value="<?php echo $nt1['Head']; ?>" />
|
||||
<br />
|
||||
<input type="submit" name="Speichern" value="Speichern" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
$Text = $_POST['Text'];
|
||||
$sql2 = 'UPDATE bilder SET Head = "'.$Text.'" WHERE ID = "'.$_POST['id'].'";';
|
||||
$stmt2 = $db->prepare($sql2);
|
||||
if (!$stmt2) {
|
||||
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
|
||||
}
|
||||
if (!$stmt2->execute()) {
|
||||
die ('Query konnte nicht ausgef<65>hrt werden: '.$stmt->error);
|
||||
}
|
||||
echo "Die <20>berschrift wurde gespeichert<br />";
|
||||
echo '<a href="index.php?section=fotos&t=bilder">Zur<75>ck zur <20>bersicht</a>';
|
||||
}
|
||||
?>
|
||||
32
admin/inhalte/fotos/bilder/standard.php
Normal file
32
admin/inhalte/fotos/bilder/standard.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
$sql1 = 'SELECT * FROM bilder';
|
||||
$result1 = $db->query($sql1);
|
||||
?>
|
||||
<fieldset>
|
||||
<form action="index.php?section=fotos&t=bilder" method="post">
|
||||
<fieldset>
|
||||
<legend>neues Foto hochladen</legend>
|
||||
<input type="submit" name="add" value="Hochladen" />
|
||||
<br />
|
||||
</fieldset>
|
||||
<br />
|
||||
<select name="Titel">
|
||||
<?php
|
||||
while ($nt1 = $result1->fetch_assoc()) {
|
||||
echo '<option value="'.$nt1['ID'].'">'.$nt1['ID'].' '.$nt1['Head'].'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend>Bildüberschrift eines Fotos ändern</legend>
|
||||
<input type="submit" name="edit" value="Bearbeiten" />
|
||||
<br />
|
||||
</fieldset>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend>bestehendes Foto löschen</legend>
|
||||
<input type="submit" name="del" value="Löschen" />
|
||||
<br />
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
2
admin/inhalte/fotos/standard.php
Normal file
2
admin/inhalte/fotos/standard.php
Normal file
@@ -0,0 +1,2 @@
|
||||
<p>In diesem Bereich können die Fotos für die einzelnen Bildergalerien hochgeladen werden.</p>
|
||||
<p>Dafür muss eine Sektion im linken Bereich ausgewählt werden.</p>
|
||||
68
admin/inhalte/fotos/wohn.php
Normal file
68
admin/inhalte/fotos/wohn.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
$path = "../img/haus/wohn/";
|
||||
$ref = "index.php?section=fotos&t=".$_GET['t'];
|
||||
|
||||
if (!isset($_GET['action'])) {
|
||||
echo "<p>Auf ein Bild klicken um es zu ersetzen<br />";
|
||||
|
||||
for ($i=0; $i<2; $i++) {
|
||||
$pic = $path.$i.".jpg";
|
||||
if (file_exists($pic)) {
|
||||
$link = $ref."&action=add&pic=".$i;
|
||||
if (0 == $i) {
|
||||
echo "<p>Wohnung Gaby:</p>\n";
|
||||
} else {
|
||||
echo "<p>Wohnung Amelie:</p>\n";
|
||||
}
|
||||
echo "<a href=\"$link\">";
|
||||
echo "<img style=\"border: 2px solid red;\" src=\"$pic\" width=\"100px\" height=\"100px\"/>";
|
||||
echo "</a>\n";
|
||||
echo "<br /> ";
|
||||
}
|
||||
else {
|
||||
$link = $ref."&action=add&pic=".$i;
|
||||
echo "<a href=\"$link\">";
|
||||
echo "<img style=\"border: 2px solid red;\" src=\"../img/no.jpg\" />";
|
||||
echo "</a>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ('add' == $_GET['action']) {
|
||||
$ref .= "&action=speichern&pic=".$_GET['pic']
|
||||
?>
|
||||
<form action="<?php echo $ref; ?>" method="post" enctype="multipart/form-data">
|
||||
<label>Foto auswählen</label>
|
||||
<input type="file" name="Foto" />
|
||||
<br />
|
||||
<input type="submit" name="Speichern" value="Speichern" />
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
elseif ('speichern' == $_GET['action']) {
|
||||
$delfile = $path . $_GET['pic'] . ".jpg";
|
||||
unlink($delfile);
|
||||
$uploadfile = $path. $_FILES['Foto']['name'];
|
||||
move_uploaded_file($_FILES['Foto']['tmp_name'], $uploadfile);
|
||||
$src = imagecreatefromjpeg($uploadfile);
|
||||
list($width,$height)=getimagesize($uploadfile);
|
||||
if ($height > $width) {
|
||||
$newheight=200;
|
||||
$newwidth=($width/$height)*200;
|
||||
} else {
|
||||
$newwidth=200;
|
||||
$newheight=($height/$width)*200;
|
||||
}
|
||||
$tmp=imagecreatetruecolor($newwidth,$newheight);
|
||||
imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);
|
||||
$filename = $path . $_GET['pic'] . ".jpg";
|
||||
imagejpeg($tmp,$filename,80);
|
||||
imagedestroy($src);
|
||||
imagedestroy($tmp);
|
||||
unlink($path. $_FILES['Foto']['name']);
|
||||
echo "<p>Bild hochgeladen</p>";
|
||||
echo "<a href=\"index.php?section=fotos&t=$_GET[t]\">Zurück zur Übersicht</a>\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
21
admin/inhalte/gb/del.php
Normal file
21
admin/inhalte/gb/del.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
$file = "../img/umgebung/gb/".$_POST['Titel'].".jpg";
|
||||
$sql2 = 'DELETE FROM gb WHERE ID = "'.$_POST['Titel'].'"';
|
||||
|
||||
$result2 = $db->query($sql2);
|
||||
if ($result2) {
|
||||
echo "<p>Datenbankeintrag gelöscht</p>\n";
|
||||
if (unlink($file)) {
|
||||
echo "<p>Bild wurde gelöscht</p>\n";
|
||||
}
|
||||
else {
|
||||
echo "<p>Fehler beim Löschen des Bildes</p>\n";
|
||||
}
|
||||
} else {
|
||||
echo "Fehler beim Löschen";
|
||||
}
|
||||
echo '<a href="index.php?section=gb">Zurück zur Übersicht</a>';
|
||||
|
||||
|
||||
?>
|
||||
46
admin/inhalte/gb/edit.php
Normal file
46
admin/inhalte/gb/edit.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<h3>Gästebucheintrag ändern</h3>
|
||||
|
||||
<?php
|
||||
if (!isset($_POST['Speichern'])) {
|
||||
echo "<img src=\"../img/umgebung/gb/".$_POST['Titel'].".jpg\" /><br />";
|
||||
$sql1 = 'SELECT Autor, Text, Datum FROM gb WHERE ID = "'.$_POST['Titel'].'"';
|
||||
$result1 = $db->query($sql1);
|
||||
$nt1 = $result1->fetch_assoc();
|
||||
|
||||
?>
|
||||
|
||||
<form action="index.php?section=gb" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="edit" value="speichern" />
|
||||
<input type="hidden" name="id" value="<?php echo $_POST['Titel']; ?>" />
|
||||
<label>Autor</label>
|
||||
<br />
|
||||
<input type="text" name="Autor" value="<?php echo $nt1['Autor']; ?>" />
|
||||
<br />
|
||||
<label>Text</label>
|
||||
<br />
|
||||
<textarea name="Text" cols="90" rows="10"><?php echo $nt1['Text']; ?></textarea>
|
||||
<br />
|
||||
<label>Datum (YYYY-MM-TT)</label>
|
||||
<br />
|
||||
<input type="text" name="Datum" value="<?php echo $nt1['Datum']; ?>" />
|
||||
<input type="submit" name="Speichern" value="Speichern" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
$Autor = $_POST['Autor'];
|
||||
$Text = $_POST['Text'];
|
||||
$Datum = $_POST['Datum'];
|
||||
$sql2 = 'UPDATE gb SET Autor = "'.$Autor.'", Text = "'.$Text.'", Datum = "'.$Datum.'" WHERE ID = "'.$_POST['id'].'";';
|
||||
$stmt2 = $db->prepare($sql2);
|
||||
if (!$stmt2) {
|
||||
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
|
||||
}
|
||||
if (!$stmt2->execute()) {
|
||||
die ('Query konnte nicht ausgeführt werden: '.$stmt->error);
|
||||
}
|
||||
echo "Der Eintrag wurde geändert<br />";
|
||||
echo '<a href="index.php?section=gb">Zurück zur Übersicht</a>';
|
||||
}
|
||||
?>
|
||||
67
admin/inhalte/gb/new.php
Normal file
67
admin/inhalte/gb/new.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<h3>neuen Gästebucheintrag anlegen</h3>
|
||||
|
||||
<?php
|
||||
if (!isset($_POST['Speichern'])) {
|
||||
?>
|
||||
|
||||
<form action="index.php?section=gb" method="post" enctype="multipart/form-data">
|
||||
<label>Foto auswählen</label>
|
||||
<input type="hidden" name="new" value="speichern" />
|
||||
<input type="file" name="Foto" />
|
||||
<br />
|
||||
<label>Autor</label>
|
||||
<input type="text" name="Autor" />
|
||||
<br />
|
||||
<label>Text</label>
|
||||
<textarea name="Text" cols="90" rows="10"></textarea>
|
||||
<br />
|
||||
<label>Datum (YYYY-MM-TT)</label>
|
||||
<input type="text" name="Datum" />
|
||||
<br />
|
||||
<input type="submit" name="Speichern" value="Speichern" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
if ('' != $_FILES['Foto']['name']) {
|
||||
$Autor = $_POST['Autor'];
|
||||
$Text = $_POST['Text'];
|
||||
$Datum = $_POST['Datum'];
|
||||
$sql1 = 'INSERT INTO gb (ID, Autor, Text, Datum) VALUES (NULL, "'.$Autor.'", "'.$Text.'", "'.$Datum.'");';
|
||||
$stmt1 = $db->prepare($sql1);
|
||||
if (!$stmt1) {
|
||||
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
|
||||
}
|
||||
if (!$stmt1->execute()) {
|
||||
die ('Query konnte nicht ausgeführt werden: '.$stmt1->error);
|
||||
}
|
||||
|
||||
$sql2 = 'SELECT last_insert_id()';
|
||||
$result2 = $db->query($sql2);
|
||||
$last = $result2->fetch_assoc();
|
||||
$id = $last['last_insert_id()'];
|
||||
|
||||
$uploaddir = '../img/umgebung/gb/';
|
||||
$uploadfile = $uploaddir. $_FILES['Foto']['name'];
|
||||
move_uploaded_file($_FILES['Foto']['tmp_name'], $uploadfile);
|
||||
$src = imagecreatefromjpeg($uploadfile);
|
||||
list($width,$height)=getimagesize($uploadfile);
|
||||
if ($height > $width) {
|
||||
$newheight=200;
|
||||
$newwidth=($width/$height)*200;
|
||||
} else {
|
||||
$newwidth=200;
|
||||
$newheight=($height/$width)*200;
|
||||
}
|
||||
$tmp=imagecreatetruecolor($newwidth,$newheight);
|
||||
imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);
|
||||
$filename = $uploaddir . $id . ".jpg";
|
||||
imagejpeg($tmp,$filename,80);
|
||||
imagedestroy($src);
|
||||
imagedestroy($tmp);
|
||||
unlink($uploaddir. $_FILES['Foto']['name']);
|
||||
}
|
||||
echo '<a href="index.php?section=gb">Zurück zur Übersicht</a>';
|
||||
}
|
||||
?>
|
||||
19
admin/inhalte/kal/amelie.php
Normal file
19
admin/inhalte/kal/amelie.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<h2>Belegungsplan Amelie</h2>
|
||||
|
||||
<?php
|
||||
$table = "Kal_Amelie";
|
||||
$ref = "index.php?section=kal&t=amelie";
|
||||
|
||||
if (isset($_POST['add'])) {
|
||||
include "inhalte/kal/belegung/add.php";
|
||||
} elseif (isset($_POST['edit'])) {
|
||||
include "inhalte/kal/belegung/edit.php";
|
||||
} elseif (isset($_POST['del'])) {
|
||||
include "inhalte/kal/belegung/del.php";
|
||||
} elseif (isset($_POST['view'])) {
|
||||
include "inhalte/kal/belegung/view.php";
|
||||
} else {
|
||||
include "inhalte/kal/belegung/standard.php";
|
||||
}
|
||||
|
||||
?>
|
||||
36
admin/inhalte/kal/belegung/add.php
Normal file
36
admin/inhalte/kal/belegung/add.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<h3>Neue Belegung hinzufügen</h3>
|
||||
|
||||
<?php
|
||||
if (!isset($_POST['Speichern'])) {
|
||||
?>
|
||||
|
||||
<form action="<?php echo $ref; ?>" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="add" value="speichern" />
|
||||
<label>Mieter:</label>
|
||||
<input type="text" name="Mieter" />
|
||||
<br />
|
||||
<label>Von (YYYY-MM-TT):</label>
|
||||
<input type="text" name="Start" />
|
||||
<br />
|
||||
<label>Bis (YYYY-MM-TT):</label>
|
||||
<input type="text" name="Ende" />
|
||||
<br />
|
||||
<input type="submit" name="Speichern" value="Speichern" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
$sql2 = 'INSERT INTO '.$table.' (ID, Mieter, Start, Ende) VALUES (NULL, "'.$_POST['Mieter'].'", "'.$_POST['Start'].'", "'.$_POST['Ende'].'");';
|
||||
$stmt2 = $db->prepare($sql2);
|
||||
if (!$stmt2) {
|
||||
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
|
||||
}
|
||||
if (!$stmt2->execute()) {
|
||||
die ('Query konnte nicht ausgef<65>hrt werden: '.$stmt1->error);
|
||||
}
|
||||
echo '<a href="'.$ref.'">Zur<75>ck zur <20>bersicht</a>';
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
13
admin/inhalte/kal/belegung/del.php
Normal file
13
admin/inhalte/kal/belegung/del.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
$sql2 = 'DELETE FROM '.$table.' WHERE ID = "'.$_POST['Titel'].'"';
|
||||
$result2 = $db->query($sql2);
|
||||
if ($result2) {
|
||||
echo "<p>Datenbankeintrag gel<65>scht</p>\n";
|
||||
} else {
|
||||
echo "Fehler beim L<>schen";
|
||||
}
|
||||
echo '<a href="'.$ref.'">Zur<75>ck zur <20>bersicht</a>';
|
||||
|
||||
|
||||
?>
|
||||
42
admin/inhalte/kal/belegung/edit.php
Normal file
42
admin/inhalte/kal/belegung/edit.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<h3>Bestehende Belegung Ändern</h3>
|
||||
|
||||
<?php
|
||||
$sql1 = 'SELECT * FROM '.$table.' WHERE ID = "'.$_POST['Titel'].'";';
|
||||
$result1 = $db->query($sql1);
|
||||
$nt1 = $result1->fetch_assoc();
|
||||
if (!isset($_POST['Speichern'])) {
|
||||
var_dump($_POST);
|
||||
echo "<br />";
|
||||
?>
|
||||
|
||||
<form action="<?php echo $ref; ?>" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="ID" value="<?php echo $_POST['Titel']; ?>" />
|
||||
<input type="hidden" name="edit" value="speichern" />
|
||||
<label>Mieter:</label>
|
||||
<input type="text" name="Mieter" value="<?php echo $nt1['Mieter']; ?>" />
|
||||
<br />
|
||||
<label>Von (YYYY-MM-TT):</label>
|
||||
<input type="text" name="Start" value="<?php echo $nt1['Start']; ?>" />
|
||||
<br />
|
||||
<label>Bis (YYYY-MM-TT):</label>
|
||||
<input type="text" name="Ende" value="<?php echo $nt1['Ende']; ?>" />
|
||||
<br />
|
||||
<input type="submit" name="Speichern" value="Speichern" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
$sql2 = 'UPDATE '.$table.' SET Mieter = "'.$_POST['Mieter'].'", Start = "'.$_POST['Start'].'", Ende = "'.$_POST['Ende'].'" WHERE ID = "'.$_POST['ID'].'";';
|
||||
$stmt2 = $db->prepare($sql2);
|
||||
if (!$stmt2) {
|
||||
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
|
||||
}
|
||||
if (!$stmt2->execute()) {
|
||||
die ('Query konnte nicht ausgef<65>hrt werden: '.$stmt1->error);
|
||||
}
|
||||
echo '<a href="'.$ref.'">Zur<75>ck zur <20>bersicht</a>';
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
38
admin/inhalte/kal/belegung/standard.php
Normal file
38
admin/inhalte/kal/belegung/standard.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
$sql1 = 'SELECT * FROM '.$table.'';
|
||||
$result1 = $db->query($sql1);
|
||||
?>
|
||||
<fieldset>
|
||||
<form action="<?php echo $ref; ?>" method="post">
|
||||
<fieldset>
|
||||
<legend>neue Belegung erstellen</legend>
|
||||
<input type="submit" name="add" value="Erstellen" />
|
||||
<br />
|
||||
</fieldset>
|
||||
<br />
|
||||
<select name="Titel">
|
||||
<?php
|
||||
while ($nt1 = $result1->fetch_assoc()) {
|
||||
echo '<option value="'.$nt1['ID'].'">'.$nt1['Mieter'].' '.$nt1['Start'].'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend>Belegung bearbeiten</legend>
|
||||
<input type="submit" name="edit" value="Bearbeiten" />
|
||||
<br />
|
||||
</fieldset>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend>Belegung löschen</legend>
|
||||
<input type="submit" name="del" value="L<>schen" />
|
||||
<br />
|
||||
</fieldset>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend>vollständigen Belegungsplan anzeigen</legend>
|
||||
<input type="submit" name="view" value="Anzeigen" />
|
||||
<br />
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
20
admin/inhalte/kal/belegung/view.php
Normal file
20
admin/inhalte/kal/belegung/view.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
$sql1 = 'SELECT * FROM '.$table.'';
|
||||
$result1 = $db->query($sql1);
|
||||
|
||||
echo "<label><b>Mieter</b></label>";
|
||||
echo "<label><b>Von</b></label>";
|
||||
echo "<label><b>Bis</b></label>";
|
||||
echo "<br />";
|
||||
while ($nt1 = $result1->fetch_assoc()) {
|
||||
$Start = date("d.m.y",strtotime($nt1['Start']));
|
||||
$Ende = date("d.m.y",strtotime($nt1['Ende']));
|
||||
if ('' == $nt1['Mieter']) {
|
||||
echo "<label> </label>";
|
||||
} else {
|
||||
echo "<label>".$nt1['Mieter']."</label>";
|
||||
}
|
||||
echo "<label>".$Start."</label>";
|
||||
echo "<label>".$Ende."</label>";
|
||||
echo "<br />";
|
||||
}
|
||||
19
admin/inhalte/kal/gaby.php
Normal file
19
admin/inhalte/kal/gaby.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<h2>Belegungsplan Gaby</h2>
|
||||
|
||||
<?php
|
||||
$table = "Kal_Gaby";
|
||||
$ref = "index.php?section=kal&t=gaby";
|
||||
|
||||
if (isset($_POST['add'])) {
|
||||
include "inhalte/kal/belegung/add.php";
|
||||
} elseif (isset($_POST['edit'])) {
|
||||
include "inhalte/kal/belegung/edit.php";
|
||||
} elseif (isset($_POST['del'])) {
|
||||
include "inhalte/kal/belegung/del.php";
|
||||
} elseif (isset($_POST['view'])) {
|
||||
include "inhalte/kal/belegung/view.php";
|
||||
} else {
|
||||
include "inhalte/kal/belegung/standard.php";
|
||||
}
|
||||
|
||||
?>
|
||||
16
admin/inhalte/kal/saison.php
Normal file
16
admin/inhalte/kal/saison.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
if (isset($_POST['add'])) {
|
||||
include "inhalte/kal/saison/add.php";
|
||||
}
|
||||
elseif (isset($_POST['edit'])) {
|
||||
include "inhalte/kal/saison/edit.php";
|
||||
}
|
||||
elseif (isset($_POST['del'])) {
|
||||
include "inhalte/kal/saison/del.php";
|
||||
}
|
||||
else {
|
||||
include "inhalte/kal/saison/standard.php";
|
||||
}
|
||||
|
||||
?>
|
||||
43
admin/inhalte/kal/saison/add.php
Normal file
43
admin/inhalte/kal/saison/add.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<h3>Neuen Zeitraum hinzufügen</h3>
|
||||
|
||||
<?php
|
||||
if (!isset($_POST['Speichern'])) {
|
||||
$sql2 = "SELECT Typ FROM Saison_Typ ORDER BY ID";
|
||||
$result2 = $db->query($sql2);
|
||||
?>
|
||||
|
||||
<form action="index.php?section=kal&t=saison" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="add" value="speichern" />
|
||||
<label>Von (YYYY-MM-TT):</label>
|
||||
<input type="text" name="Von" />
|
||||
<br />
|
||||
<label>Bis (YYYY-MM-TT):</label>
|
||||
<input type="text" name="Bis" />
|
||||
<br />
|
||||
<label>Saisontyp:</label>
|
||||
<select name="Typ">
|
||||
<?php
|
||||
while ($nt2 = $result2->fetch_assoc()) {
|
||||
echo "<option>".$nt2['Typ']."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br />
|
||||
<input type="submit" name="Speichern" value="Speichern" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
$sql1 = 'INSERT INTO Saison (ID, Von, Bis, Typ) VALUES (NULL, "'.$_POST['Von'].'", "'.$_POST['Bis'].'", "'.$_POST['Typ'].'");';
|
||||
$stmt1 = $db->prepare($sql1);
|
||||
if (!$stmt1) {
|
||||
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
|
||||
}
|
||||
if (!$stmt1->execute()) {
|
||||
die ('Query konnte nicht ausgef<65>hrt werden: '.$stmt1->error);
|
||||
}
|
||||
echo '<a href="index.php?section=kal&t=saison">Zur<75>ck zur <20>bersicht</a>';
|
||||
}
|
||||
|
||||
?>
|
||||
13
admin/inhalte/kal/saison/del.php
Normal file
13
admin/inhalte/kal/saison/del.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
$sql2 = 'DELETE FROM Saison WHERE ID = "'.$_POST['Titel'].'"';
|
||||
$result2 = $db->query($sql2);
|
||||
if ($result2) {
|
||||
echo "<p>Datenbankeintrag gelöscht</p>\n";
|
||||
} else {
|
||||
echo "Fehler beim Löschen";
|
||||
}
|
||||
echo '<a href="index.php?section=kal&t=saison">Zurück zur Übersicht</a>';
|
||||
|
||||
|
||||
?>
|
||||
51
admin/inhalte/kal/saison/edit.php
Normal file
51
admin/inhalte/kal/saison/edit.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<h3>Zeitraum Ändern</h3>
|
||||
|
||||
<?php
|
||||
if (!isset($_POST['Speichern'])) {
|
||||
$sql2 = "SELECT Typ FROM Saison_Typ ORDER BY ID";
|
||||
$result2 = $db->query($sql2);
|
||||
$sql3 = 'SELECT * FROM Saison WHERE ID = "'.$_POST['Titel'].'"';
|
||||
$result3 = $db->query($sql3);
|
||||
$nt3 = $result3->fetch_assoc();
|
||||
?>
|
||||
|
||||
<form action="index.php?section=kal&t=saison" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="edit" value="speichern" />
|
||||
<input type="hidden" name="ID" value="<?php echo $_POST['Titel']; ?>" />
|
||||
<label>Von (YYYY-MM-TT):</label>
|
||||
<input type="text" name="Von" value="<?php echo $nt3['Von']; ?>" />
|
||||
<br />
|
||||
<label>Bis (YYYY-MM-TT):</label>
|
||||
<input type="text" name="Bis" value="<?php echo $nt3['Bis']; ?>"/>
|
||||
<br />
|
||||
<label>Saisontyp:</label>
|
||||
<select name="Typ">
|
||||
<?php
|
||||
while ($nt2 = $result2->fetch_assoc()) {
|
||||
if ($nt3['Typ'] == $nt2['Typ']) {
|
||||
echo "<option selected=\"selected\">".$nt2['Typ']."</option>";
|
||||
} else {
|
||||
echo "<option>".$nt2['Typ']."</option>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br />
|
||||
<input type="submit" name="Speichern" value="Speichern" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
$sql1 = 'UPDATE Saison SET Von = "'.$_POST['Von'].'", Bis = "'.$_POST['Bis'].'", Typ = "'.$_POST['Typ'].'" WHERE ID = "'.$_POST['ID'].'";';
|
||||
$stmt1 = $db->prepare($sql1);
|
||||
if (!$stmt1) {
|
||||
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
|
||||
}
|
||||
if (!$stmt1->execute()) {
|
||||
die ('Query konnte nicht ausgeführt werden: '.$stmt1->error);
|
||||
}
|
||||
echo '<a href="index.php?section=kal&t=saison">Zurück zur übersicht</a>';
|
||||
}
|
||||
|
||||
?>
|
||||
34
admin/inhalte/kal/saison/standard.php
Normal file
34
admin/inhalte/kal/saison/standard.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<h2>Saisonverlauf</h2>
|
||||
|
||||
<?php
|
||||
$sql1 = 'SELECT * FROM Saison';
|
||||
$result1 = $db->query($sql1);
|
||||
?>
|
||||
<fieldset>
|
||||
<form action="index.php?section=kal&t=saison" method="post">
|
||||
<fieldset>
|
||||
<legend>neuen Zeitraum erstellen</legend>
|
||||
<input type="submit" name="add" value="Erstellen" />
|
||||
<br />
|
||||
</fieldset>
|
||||
<br />
|
||||
<select name="Titel">
|
||||
<?php
|
||||
while ($nt1 = $result1->fetch_assoc()) {
|
||||
echo '<option value="'.$nt1['ID'].'">'.$nt1['Von'].' '.$nt1['Bis'].' '.$nt1['Typ'].'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend>Zeitraum bearbeiten</legend>
|
||||
<input type="submit" name="edit" value="Bearbeiten" />
|
||||
<br />
|
||||
</fieldset>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend>Zeitraum löschen</legend>
|
||||
<input type="submit" name="del" value="L<>schen" />
|
||||
<br />
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
1
admin/inhalte/kal/standard.php
Normal file
1
admin/inhalte/kal/standard.php
Normal file
@@ -0,0 +1 @@
|
||||
<p>In diesem Bereich kann die Belegung der Wohnungen und der Saisonverlauf bearbeitet werden.</p>
|
||||
55
admin/inhalte/preise/view.php
Normal file
55
admin/inhalte/preise/view.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
if (!isset($_POST['Speichern'])) {
|
||||
if ('gaby' == $_GET['t']) {
|
||||
echo "<h2>Preise Wohnung Gaby</h2>";
|
||||
$sql1 = "SELECT * FROM Preise WHERE ID = 1 ";
|
||||
} elseif ('amelie' == $_GET['t']) {
|
||||
echo "<h2>Preise Wohnung Amelie</h2>";
|
||||
$sql1 = "SELECT * FROM Preise WHERE ID = 2";
|
||||
} else {
|
||||
die("Falsche Sektion");
|
||||
}
|
||||
echo "<p>Preise bitte mit einem Punkt (.) trennen</p>";
|
||||
$result1 = $db->query($sql1);
|
||||
$nt1 = $result1->fetch_assoc();
|
||||
|
||||
?>
|
||||
<div id="preise">
|
||||
<form action="index.php?section=preise&t=<?php echo $_GET['t']; ?>" method="post" >
|
||||
<input type="hidden" name="ID" value="<?php echo $nt1['ID'] ?>" />
|
||||
<label>Kurbeitrag</label>
|
||||
<input type="text" name="Kurbeitrag" value="<?php echo $nt1['Kurbeitrag'] ?>" />
|
||||
<br />
|
||||
<label>Nacht3</label>
|
||||
<input type="text" name="Nacht3" value="<?php echo $nt1['Nacht3'] ?>" />
|
||||
<br />
|
||||
<label>Nacht5</label>
|
||||
<input type="text" name="Nacht5" value="<?php echo $nt1['Nacht5'] ?>" />
|
||||
<br />
|
||||
<label>Hauptsaison</label>
|
||||
<input type="text" name="Hauptsaison" value="<?php echo $nt1['Hauptsaison'] ?>" />
|
||||
<br />
|
||||
<label>Nebensaison</label>
|
||||
<input type="text" name="Nebensaison" value="<?php echo $nt1['Nebensaison'] ?>" />
|
||||
<br />
|
||||
<label>Weihnachten</label>
|
||||
<input type="text" name="Weihnachten" value="<?php echo $nt1['Weihnachten'] ?>" />
|
||||
<br />
|
||||
<input style="width: auto;" type="submit" name="Speichern" value="Speichern" />
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
|
||||
$sql2 = 'UPDATE Preise SET Kurbeitrag = "'.$_POST['Kurbeitrag'].'", Nacht3 = "'.$_POST['Nacht3'].'", Nacht5 = "'.$_POST['Nacht5'].'", Hauptsaison = "'.$_POST['Hauptsaison'].'", Nebensaison = "'.$_POST['Nebensaison'].'", Weihnachten = "'.$_POST['Weihnachten'].'" WHERE ID = "'.$_POST['ID'].'";';
|
||||
$stmt2 = $db->prepare($sql2);
|
||||
if (!$stmt2) {
|
||||
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
|
||||
}
|
||||
if (!$stmt2->execute()) {
|
||||
die ('Query konnte nicht ausgeführt werden: '.$stmt->error);
|
||||
}
|
||||
echo "Der Eintrag wurde geändert<br />";
|
||||
echo '<a href="index.php?section=preise">Zurück zur Übersicht</a>';
|
||||
}
|
||||
?>
|
||||
17
admin/kal.php
Normal file
17
admin/kal.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<h1>Kalenderfunktionen</h1>
|
||||
<?php
|
||||
|
||||
if (!isset($_GET['t'])) {
|
||||
include "inhalte/kal/standard.php";
|
||||
} else {
|
||||
if ('saison' == $_GET['t']) {
|
||||
include "inhalte/kal/saison.php";
|
||||
} elseif ('gaby' == $_GET['t']) {
|
||||
include "inhalte/kal/gaby.php";
|
||||
} elseif ('amelie' == $_GET['t']) {
|
||||
include "inhalte/kal/amelie.php";
|
||||
} else {
|
||||
include "inhalte/kal/standard.php";
|
||||
}
|
||||
}
|
||||
|
||||
7
admin/links.php
Normal file
7
admin/links.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
if(isset($_GET['section']) AND isset($links[$_GET['section']])) {
|
||||
include $links[$_GET['section']];
|
||||
}
|
||||
else {
|
||||
}
|
||||
?>
|
||||
24
admin/links/fotos.php
Normal file
24
admin/links/fotos.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<ul>
|
||||
<li><ul>Willkommen
|
||||
<li><a href="index.php?section=fotos&t=will">Willkommen</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><ul>Unser Haus
|
||||
<li><a href="index.php?section=fotos&t=haus">Unser Haus</a></li>
|
||||
<li><a href="index.php?section=fotos&t=lage">Lage</a></li>
|
||||
<li><a href="index.php?section=fotos&t=geschichte">Geschichte</a></li>
|
||||
<li><a href="index.php?section=fotos&t=wohn">Wohnungen</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><ul>Wohnungen
|
||||
<li><a href="index.php?section=fotos&t=gaby">Gaby</a></li>
|
||||
<li><a href="index.php?section=fotos&t=amelie">Amelie</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><ul>Bildergalerie
|
||||
<li><a href="index.php?section=fotos&t=bilder">Galerie</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
12
admin/links/kal.php
Normal file
12
admin/links/kal.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<ul>
|
||||
<li><ul>Belegung
|
||||
<li><a href="index.php?section=kal&t=gaby">Gaby</a></li>
|
||||
<li><a href="index.php?section=kal&t=amelie">Amelie</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><ul>Saison
|
||||
<li><a href="index.php?section=kal&t=saison">Saison</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
9
admin/links/preise.php
Normal file
9
admin/links/preise.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<ul>
|
||||
<li><ul>Wohnung
|
||||
<li><a href="index.php?section=preise&t=gaby">Gaby</a></li>
|
||||
<li><a href="index.php?section=preise&t=amelie">Amelie</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
13
admin/preise.php
Normal file
13
admin/preise.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<h1>Preise</h1>
|
||||
|
||||
<?php
|
||||
if (!isset($_GET['t'])) {
|
||||
?>
|
||||
|
||||
<p>In diesem Bereich koennen die Preise für die Wohnungen bearbeitet werden.</p>
|
||||
<p>Bitte die Wohnung im linken Bereich auswaehlen</p>
|
||||
|
||||
<?php
|
||||
} else {
|
||||
include "inhalte/preise/view.php";
|
||||
}
|
||||
2
admin/will.php
Normal file
2
admin/will.php
Normal file
@@ -0,0 +1,2 @@
|
||||
<h1>Administrationsbereich Ferienhaus Wille</h1>
|
||||
<p>Hier können die Inhalte der Homepage geändert werden!</p>
|
||||
Reference in New Issue
Block a user