Move accessible files to public folders and adjust paths.

This commit is contained in:
2023-12-29 13:34:49 +01:00
parent e090fdc63d
commit 73073186c0
65 changed files with 202 additions and 450 deletions

22
public/admin/index.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
error_reporting(E_ALL);
// Include required components.
$path2root = __DIR__ . '/../..';
include $path2root . '/inc/config.php';
?>
<!DOCTYPE html>
<html lang="de">
<head>
<title>Administrationsbereich Ferienhaus - Wille</title>
<link rel="stylesheet" type="text/css" href="/css/admin.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<div id="root">
<div id="header"><?php include $path2root . '/admin/header.php'; ?></div>
<div id="links"><?php include $path2root . '/admin/links.php'; ?></div>
<div id="inhalt"><?php include $path2root . '/admin/inhalt.php'; ?></div>
</div>
</body>
</html>

110
public/css/admin.css Normal file
View 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: 0;
padding: 0;
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: 0;
float: left;
background-color: #ccc;
}
#links ul {
font-size: 14px;
text-align: center;
margin: 20px 0;
padding: 0;
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;
}

453
public/css/page.css Normal file
View File

@@ -0,0 +1,453 @@
html {
background-color: #423628;
overflow: auto;
font-family: Calibri, Geneva, Arial, Helvetica, sans-serif;
font-size: 14px;
}
body {
width: 990px;
margin: 10px auto auto;
border-top: 5px solid #F4F1ED;
border-bottom: 5px solid #F4F1ED;
background-color: #F4F1ED;
}
#root {
width: 970px;
margin: auto;
border-left: 4px solid #961017;
border-right: 4px solid #961017;
border-bottom: 2px solid #961017;
}
h1 {
font-size: 1px;
color: #F4F1ED;
font-weight: bold;
height: 42px;
margin: 0;
padding: 0;
}
h2 {
font-size: 18px;
color: #574730;
font-weight: bold;
margin: 10px 20px;
padding: 0;
text-align: left;
}
h3 {
font-size: 15px;
font-weight: bold;
color: #574730;
margin: 10px 20px;
padding: 0;
}
hr {
margin: 10px 20px;
padding: 0;
height: 2px;
color: #574730;
background-color: #574730;
border: none;
}
p {
color: #574730;
margin: 10px 20px;
font-size: 14px;
}
table {
color: #574730;
margin: 10px 20px;
border-collapse: collapse;
font-size: 14px;
}
th {
font-weight: bold;
margin: 0;
padding: 0;
text-align: left;
}
td {
margin: 0;
padding: 0;
}
table.preise {
border: 2px solid #574730;
float: left;
}
table.cal {
border: 2px solid #574730;
float: right;
}
* html table.preise {
margin: 10px 10px;
}
* html table.cal {
width: 235px;
}
* + html table.cal {
width: 235px;
}
table.angebot {
font-weight: bold;
border-collapse: collapse;
margin: 0;
padding: 0;
}
table.cal th, table.cal td {
text-align: center;
padding: 3px 0 2px 0;
}
table.preise th, table.preise td {
text-align: center;
vertical-align: top;
padding: 2px 3px;
border: 1px solid #574730;
}
table.angebot td {
padding-right: 20px;
}
table.links td {
padding-left: 20px;
}
table.links th {
padding-top: 10px;
}
th.hs, td.hs {
background-color: #E5B8B7;
}
th.ns, td.ns {
background-color: #C2D69B;
}
th.aw, td.aw {
background-color: #B2A1C7;
}
td.bel {
background-color: #fff;
background-image: url(../img/belegt.gif);
background-position: center;
background-repeat: no-repeat;
}
img {
border: 0;
z-index: 1;
}
/** html img,*/
/** html .png {*/
/* position: relative;*/
/* behavior: expression((this.runtimeStyle.behavior="none")&&(this.pngSet?this.pngSet=true:(this.nodeName == "IMG" && this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage = "none",*/
/*this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')",*/
/*this.src = "img/transparent.gif"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),*/
/*this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "', sizingMethod='crop')",*/
/*this.runtimeStyle.backgroundImage = "none")),this.pngSet=true)*/
/*);*/
/*}*/
.clear {
clear: both;
}
#header {
height: 150px;
margin: 0 -4px;
border-left: 4px solid #907959;
border-right: 4px solid #907959;
border-top: 4px solid #907959;
background-image: url(../img/header.jpg);
}
ul#Navigation {
position: relative;
top: 110px;
margin: 0;
padding: 0;
float: right;
text-align: center;
z-index: 5;
}
ul#Navigation li {
float: left;
font-size: 15px;
position: relative;
list-style: none;
margin: 0;
padding: 0;
}
ul#Navigation li a:hover {
font-weight: bold;
}
ul#Navigation li ul {
margin: 0;
padding: 10px 0 0 0;
position: absolute;
height: 190px;
width: 150px;
border: 1px solid #907959;
border-top: none;
left: -41px;
}
ul#Navigation li ul li {
float: none;
font-size: 15px;
display: block;
margin: 0;
padding: 0;
}
ul#Navigation a, ul#Navigation span {
display: block;
width: 110px;
height: 40px;
vertical-align: middle;
text-decoration: none;
color: #574730;
}
ul#Navigation a:hover, ul#Navigation span, li a#aktuell:hover {
background-color: #F7F5F2;
}
ul#Navigation li ul a {
color: #574730;
height: 20px;
line-height: 20px;
width: 140px;
text-align: left;
margin: 0 0 0 5px;
}
ul#Navigation li ul a:hover {
font-weight: bold;
}
/* dynamisches Ein-/Ausblenden */
ul#Navigation li ul {
display: none;
}
ul#Navigation li:hover ul {
display: block;
}
.clear {
overflow: hidden;
clear: left;
height: 4px;
background-color: #961017;
margin: 0 0 0 0;
font-size: 1px;
}
.clear2 {
overflow: hidden;
clear: left;
height: 2px;
background-color: #961017;
margin: 0 0 0 0;
font-size: 1px;
}
.cleaner {
clear: both;
margin-top: 0;
}
#inhalt {
width: 970px;
margin: 0 0 0 0;
padding: 0;
text-align: justify;
color: #333;
font-size: 12px;
overflow: hidden;
}
#inhalt a {
color: #574730;
}
#inhalt ul {
color: #574730;
margin: 10px 20px 10px 0;
list-style-position: outside;
font-size: 14px;
}
* html #inhalt ul {
margin-left: 40px;
}
* + html #inhalt ul {
margin-left: 40px;
}
#anfrage form {
margin: 10px 20px;
font-size: 14px;
color: #574730;
}
#anfrage form br {
clear: left;
}
#anfrage label, #anfrage input, #anfrage select {
display: block;
float: left;
width: 290px;
margin: 0 10px 3px 0;
padding: 0;
font-family: Calibri, Geneva, Arial, Helvetica, sans-serif;
font-size: 14px;
color: #574730;
}
#anfrage label {
width: 120px;
font-size: 14px;
}
#anfrage input.hidden {
width: auto;
margin: 0;
padding: 0;
}
#anfrage input.check {
width: auto;
float: right;
margin: 0 18px 3px 0;
padding: 0;
}
* html #anfrage input.check {
margin-right: 8px;
}
#anfrage input.submit {
width: auto;
}
#anfrage textarea {
width: 420px;
margin: 0 0 10px 0;
padding: 0;
font-family: Calibri, Geneva, Arial, Helvetica, sans-serif;
font-size: 14px;
color: #574730;
overflow: hidden;
}
ul.angebot {
position: relative;
}
ul.angebot li {
list-style-position: inside;
}
#inhalt img.left {
margin: 0 20px;
float: left;
}
#inhalt img.right {
margin: 0 20px;
float: right;
}
#lspalte {
width: 480px;
float: left;
padding: 0;
margin-bottom: 20px;
}
#rspalte {
width: 480px;
float: right;
padding: 0;
margin: 12px 0 12px 0;
}
#rspalte img.gross {
float: right;
margin: 0;
}
#thumb {
margin-top: 12px;
margin-right: 3px;
padding: 0;
float: right;
}
#thumb img {
float: right;
width: 44px;
height: 44px;
margin: 0 0 0 3px;
}
#galerie img {
width: 90px;
height: 90px;
margin: 0 5px 5px 0;
}
#bild img {
margin-left: 20px;
}
#footer {
color: #F4F1ED;
font-size: 14px;
background-color: #961017;
font-variant: small-caps;
height: 38px;
line-height: 38px;
margin: 0;
}
#footer img {
float: left;
margin-top: 2px;
}
#footer a {
color: #F4F1ED;
margin-right: 20px;
font-variant: small-caps;
text-decoration: none;
float: right;
}