<script src="Assets/jquery-2.1.4.min.js"></script> <script src="submit.js"></script> </head> <body> <div id="wrapper"> <div id="navbar"> <a href="index.php"><img src="Assets/images/goback.png" id="back"></a> <div id="input"> <form method="post" id="navform" autocomplete="off"> <input id="dist" name="dist" placeholder="zB. 1140 Wien" value="<?php include "dblib.php"; //library hinzufügen error_reporting(0); session_start(); $dblib = new dblib(); if (isset($_SESSION["dist"]) && !isset($_POST["dist"])) { if ($_SESSION["dist"] != null) { $_POST["dist"] = $_SESSION["dist"]; } } //wenn nicht gepostet wurde in welchem Bezirk sich das Restaurant befindet, wird der Wert von vorher genommen $dist = $_POST['dist']; preg_match("/([0-9]+[\\.,]?)+/", $dist, $matches); if (isset($matches[0])) { //alle Postleitzahlen werden aus der Datenbank geholt $query = "SELECT `plz` FROM address_info.plz_table"; $plz = $dblib->structurizeUS($dblib->getDbArray($query), "plz"); //alle Städte zu den Postleitzahlen werden aus der Datenbank geholt $query = "SELECT `city` FROM address_info.plz_table"; $city = $dblib->structurizeUS($dblib->getDbArray($query), "city");
<title>foodify.at | Schnell Essen bestellen</title> <script src="Assets/jquery-2.1.4.min.js"></script> </head> <body> <div id="wrapper"> <div id="navbar"> <a href="overview.php"><img src="Assets/images/goback.png" id="back"></a> <div id="input"> <form method="post" action="overview.php" id="navform" autocomplete="off"> <input id="dist" name="dist" placeholder="zB. 1140 Wien" value="<?php include "dblib.php"; //library hinzufügen error_reporting(0); session_start(); $dblib = new dblib(); if (isset($_SESSION["dist"]) && !isset($_POST["dist"])) { if ($_SESSION["dist"] != null) { $_POST["dist"] = $_SESSION["dist"]; } } //wenn nicht gepostet wurde in welchem Bezirk sich das Restaurant befindet, wird der Wert von vorher genommen $dist = $_POST['dist']; preg_match("/([0-9]+[\\.,]?)+/", $dist, $matches); if (isset($matches[0])) { //alle Postleitzahlen werden aus der Datenbank geholt $query = "SELECT `plz` FROM address_info.plz_table"; $plz = $dblib->structurizeUS($dblib->getDbArray($query), "plz"); //alle Städte zu den Postleitzahlen werden aus der Datenbank geholt $query = "SELECT `city` FROM address_info.plz_table"; $city = $dblib->structurizeUS($dblib->getDbArray($query), "city");
<div id="header"><a onclick="window.close()"><img src="Assets/images/goback.png" id="back"></a></div> <?php include "dblib.php"; $dblib = new dblib(); session_start(); echo "<link rel='stylesheet' type='text/css' href='cart_style.css'>"; $sessionrest = explode("#", $_SESSION["rest"]); $rest = array(null); $count = 0; for ($i = 1; $i < sizeof($sessionrest); $i++) { $isin = false; for ($j = 0; $j < sizeof($rest); $j++) { if ($sessionrest[$i] == $rest[$j]) { $isin = true; } } if (!$isin) { $rest[$count] = $sessionrest[$i]; $count++; } } echo "<div id='main'>"; $pricecomp = 0; for ($i = 0; $i < sizeof($rest); $i++) { if (isset($_SESSION[$rest[$i]])) { $db = explode("_", $rest[$i])[0] . "_rest"; $rr = "menu_" . explode("_", $rest[$i])[2]; //holt Name des Restaurants $query = "SELECT `name` FROM `{$db}`.`rest` WHERE id=" . explode("_", $rr)[1]; $name = $dblib->utf8($dblib->getDbArray($query))[0][0];