diff --git a/assets/css/Footer-Dark.css b/assets/css/Footer-Dark.css
index 122d57f..29037de 100644
--- a/assets/css/Footer-Dark.css
+++ b/assets/css/Footer-Dark.css
@@ -1,18 +1,13 @@
.footer-dark {
- margin-top:25px;
- margin-left:-520px;
+ margin-left:-530px;
color: #f0f9ff;
background-color: #282d32;
position: fixed;
- height: 130px;
+ height: 60px;
bottom: 0;
width: 100%;
}
-.footer-dark .row {
- margin-top:30px;
-
-}
.footer-dark h3 {
margin-top: 0;
diff --git a/assets/css/Header-Dark.css b/assets/css/Header-Dark.css
index 913cccb..577dc1e 100644
--- a/assets/css/Header-Dark.css
+++ b/assets/css/Header-Dark.css
@@ -7,7 +7,7 @@ body {
@media (min-width:768px) {
.header-dark {
- padding-bottom: 120px;
+
}
}
@@ -33,6 +33,7 @@ body {
.header-dark .navbar .navbar-brand:hover {
color: #f0f0f0;
+
}
.header-dark .navbar .navbar-collapse span {
diff --git a/getTables.php b/getTables.php
index 11c73d2..3d6d22a 100644
--- a/getTables.php
+++ b/getTables.php
@@ -14,6 +14,7 @@ if(isset($_POST['getTables']))
$_SESSION["month_string"] = $_POST['month'];
$_SESSION["day"] = $_POST['day'];
+ $_SESSION["year"] = $_POST['year'];
$_SESSION["day_string"] = $_POST['day'];
@@ -63,126 +64,128 @@ if(isset($_POST['getTables']))
$month = $_SESSION["month"];
$day = $_SESSION["day"];
+ $year = $_SESSION["year"];
- $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day' AND tisch='1'";
+ $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day'AND year='$year' AND tisch='1'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo $row['uniqueid'].$row['year'].$row['month'].$row['day'].$row['reserviert'].$row['reserviertvon'].$row['tisch']."
" ;
- $_SESSION["Tisch1"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch']);
+ $_SESSION["Tisch1"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch'],$row['year']);
}
} else
{
$_SESSION["Tisch1"] = "FREI";
- echo $_SESSION["Tisch1"]."
";
+ //echo $_SESSION["Tisch1"]."
";
}
- $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day' AND tisch='2'";
+ $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day'AND year='$year' AND tisch='2'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo $row['uniqueid'].$row['year'].$row['month'].$row['day'].$row['reserviert'].$row['reserviertvon'].$row['tisch']."
" ;
- $_SESSION["Tisch2"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch']);
+ $_SESSION["Tisch2"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch'],$row['year']);
}
} else
{
$_SESSION["Tisch2"] = "FREI";
- echo $_SESSION["Tisch2"]."
";
+ //echo $_SESSION["Tisch2"]."
";
}
- $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day' AND tisch='3'";
+ $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day'AND year='$year' AND tisch='3'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
- echo $row['uniqueid'].$row['year'].$row['month'].$row['day'].$row['reserviert'].$row['reserviertvon'].$row['tisch']."
" ;
- $_SESSION["Tisch3"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch']);
+ //echo $row['uniqueid'].$row['year'].$row['month'].$row['day'].$row['reserviert'].$row['reserviertvon'].$row['tisch']."
" ;
+ $_SESSION["Tisch3"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch'],$row['year']);
+ //echo $_SESSION["Tisch3"][6];
}
} else
{
$_SESSION["Tisch3"] = "FREI";
- echo $_SESSION["Tisch3"]."
";
+ //echo $_SESSION["Tisch3"]."
";
}
- $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day' AND tisch='4'";
+ $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day'AND year='$year' AND tisch='4'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo $row['uniqueid'].$row['year'].$row['month'].$row['day'].$row['reserviert'].$row['reserviertvon'].$row['tisch']."
" ;
- $_SESSION["Tisch4"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch']);
+ $_SESSION["Tisch4"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch'],$row['year']);
}
} else
{
$_SESSION["Tisch4"] = "FREI";
- echo $_SESSION["Tisch4"]."
";
+ // echo $_SESSION["Tisch4"]."
";
}
- $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day' AND tisch='5'";
+ $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day'AND year='$year' AND tisch='5'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo $row['uniqueid'].$row['year'].$row['month'].$row['day'].$row['reserviert'].$row['reserviertvon'].$row['tisch']."
" ;
- $_SESSION["Tisch5"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch']);
+ $_SESSION["Tisch5"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch'],$row['year']);
}
} else
{
$_SESSION["Tisch5"] = "FREI";
- echo $_SESSION["Tisch5"]."
";
+ //echo $_SESSION["Tisch5"]."
";
}
- $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day' AND tisch='6'";
+ $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day'AND year='$year' AND tisch='6'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo $row['uniqueid'].$row['year'].$row['month'].$row['day'].$row['reserviert'].$row['reserviertvon'].$row['tisch']."
" ;
- $_SESSION["Tisch6"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch']);
+ $_SESSION["Tisch6"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch'],$row['year']);
}
} else
{
$_SESSION["Tisch6"] = "FREI";
- echo $_SESSION["Tisch6"]."
";
+ //echo $_SESSION["Tisch6"]."
";
}
- $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day' AND tisch='7'";
+ $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day'AND year='$year' AND tisch='7'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo $row['uniqueid'].$row['year'].$row['month'].$row['day'].$row['reserviert'].$row['reserviertvon'].$row['tisch']."
" ;
- $_SESSION["Park1"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch']);
+ $_SESSION["Park1"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch'],$row['year']);
}
} else
{
$_SESSION["Park1"] = "FREI";
- echo $_SESSION["Park1"]."
";
+ // echo $_SESSION["Park1"]."
";
}
- $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day' AND tisch='8'";
+ $sql = "SELECT * FROM calenderplanner WHERE month='$month' AND day='$day'AND year='$year' AND tisch='8'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo $row['uniqueid'].$row['year'].$row['month'].$row['day'].$row['reserviert'].$row['reserviertvon'].$row['tisch']."
" ;
- $_SESSION["Park2"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch']);
+ $_SESSION["Park2"] = array($row['uniqueid'],$row['month'],$row['day'],$row['reserviert'],$row['reserviertvon'],$row['tisch'],$row['year']);
}
} else
{
$_SESSION["Park2"] = "FREI";
- echo $_SESSION["Park2"]."
";
+ //echo $_SESSION["Park2"]."
";
}
header("location:index.php?result=gotrecords");
diff --git a/index.php b/index.php
index 2204f52..fde879f 100644
--- a/index.php
+++ b/index.php
@@ -89,11 +89,26 @@ require 'modal.php';
}
+ echo '