Compare commits
No commits in common. "u2" and "elf" have entirely different histories.
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
Binary file not shown.
@ -5,7 +5,7 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Restauracja Wszystkie Smaki</title>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="styl_1.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@ -13,7 +13,7 @@
|
||||
</header>
|
||||
|
||||
<div id="lewy">
|
||||
<img src="imgs/menu.jpg" alt="Nasze danie">
|
||||
<img src="menu.jpg" alt="Nasze danie">
|
||||
</div>
|
||||
|
||||
<div id="prawy">
|
||||
@ -42,4 +42,4 @@
|
||||
<footer>
|
||||
Stronę internetową operacował: JA
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
178
src/sql/baza.sql
178
src/sql/baza.sql
@ -1,178 +0,0 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.2.0
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Czas generowania: 15 Mar 2023, 04:57
|
||||
-- Wersja serwera: 10.4.27-MariaDB
|
||||
-- Wersja PHP: 8.2.0
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Baza danych: `baza`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktura tabeli dla tabeli `dania`
|
||||
--
|
||||
|
||||
CREATE TABLE `dania` (
|
||||
`id` int(10) UNSIGNED NOT NULL,
|
||||
`typ` int(10) UNSIGNED DEFAULT NULL,
|
||||
`nazwa` text DEFAULT NULL,
|
||||
`cena` int(10) UNSIGNED DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Zrzut danych tabeli `dania`
|
||||
--
|
||||
|
||||
INSERT INTO `dania` (`id`, `typ`, `nazwa`, `cena`) VALUES
|
||||
(1, 1, 'Gazpacho', 20),
|
||||
(2, 1, 'Krem z warzyw', 25),
|
||||
(3, 1, 'Gulaszowa ostra', 30),
|
||||
(4, 2, 'Kaczka i owoc', 30),
|
||||
(5, 2, 'Kurczak pieczony', 40),
|
||||
(6, 2, 'wieprzowy przysmak', 35),
|
||||
(7, 2, 'Mintaj w panierce', 30),
|
||||
(8, 2, 'Alle kotlet', 30),
|
||||
(9, 3, 'Owoce morza', 20),
|
||||
(10, 3, 'Grzybki, warzywka, sos', 15),
|
||||
(11, 3, 'Orzechy i chipsy', 10),
|
||||
(12, 3, 'Tatar i jajo', 15),
|
||||
(13, 3, 'Bukiet warzyw', 10),
|
||||
(14, 4, 'Sok porzeczkowy', 3),
|
||||
(15, 4, 'Cola', 3),
|
||||
(16, 4, 'Woda', 2);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktura tabeli dla tabeli `lokale`
|
||||
--
|
||||
|
||||
CREATE TABLE `lokale` (
|
||||
`id` int(10) UNSIGNED NOT NULL,
|
||||
`nazwa` text DEFAULT NULL,
|
||||
`miasto` text DEFAULT NULL,
|
||||
`ulica` text DEFAULT NULL,
|
||||
`numer` int(10) UNSIGNED DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Zrzut danych tabeli `lokale`
|
||||
--
|
||||
|
||||
INSERT INTO `lokale` (`id`, `nazwa`, `miasto`, `ulica`, `numer`) VALUES
|
||||
(1, 'Wszystkie Smaki', 'Zakopane', 'Orkana', 1);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktura tabeli dla tabeli `pracownicy`
|
||||
--
|
||||
|
||||
CREATE TABLE `pracownicy` (
|
||||
`id` int(10) UNSIGNED NOT NULL,
|
||||
`imie` text DEFAULT NULL,
|
||||
`nazwisko` text DEFAULT NULL,
|
||||
`stanowisko` int(11) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Zrzut danych tabeli `pracownicy`
|
||||
--
|
||||
|
||||
INSERT INTO `pracownicy` (`id`, `imie`, `nazwisko`, `stanowisko`) VALUES
|
||||
(1, 'Anna', 'Kowalska', 1),
|
||||
(2, 'Monika', 'Nowak', 2),
|
||||
(3, 'Ewelina', 'Nowakowska', 2),
|
||||
(4, 'Anna', 'Przybylska', 3),
|
||||
(5, 'Maria', 'Kowal', 3),
|
||||
(6, 'Ewa', 'Nowacka', 4);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktura tabeli dla tabeli `rezerwacje`
|
||||
--
|
||||
|
||||
CREATE TABLE `rezerwacje` (
|
||||
`id` int(10) UNSIGNED NOT NULL,
|
||||
`nr_stolika` int(10) UNSIGNED DEFAULT NULL,
|
||||
`data_rez` date DEFAULT NULL,
|
||||
`liczba_osob` int(10) UNSIGNED DEFAULT NULL,
|
||||
`telefon` text DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Indeksy dla zrzutów tabel
|
||||
--
|
||||
|
||||
--
|
||||
-- Indeksy dla tabeli `dania`
|
||||
--
|
||||
ALTER TABLE `dania`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- Indeksy dla tabeli `lokale`
|
||||
--
|
||||
ALTER TABLE `lokale`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- Indeksy dla tabeli `pracownicy`
|
||||
--
|
||||
ALTER TABLE `pracownicy`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- Indeksy dla tabeli `rezerwacje`
|
||||
--
|
||||
ALTER TABLE `rezerwacje`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT dla zrzuconych tabel
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT dla tabeli `dania`
|
||||
--
|
||||
ALTER TABLE `dania`
|
||||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT dla tabeli `lokale`
|
||||
--
|
||||
ALTER TABLE `lokale`
|
||||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT dla tabeli `pracownicy`
|
||||
--
|
||||
ALTER TABLE `pracownicy`
|
||||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT dla tabeli `rezerwacje`
|
||||
--
|
||||
ALTER TABLE `rezerwacje`
|
||||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
@ -1,46 +1,46 @@
|
||||
body {
|
||||
background: #F6E5DC;
|
||||
font-family: Verdana;
|
||||
}
|
||||
|
||||
header {
|
||||
background: #2F180C;
|
||||
text-align: center;
|
||||
color: khaki;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
#lewy {
|
||||
width: 60%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#prawy {
|
||||
font-size: 150%;
|
||||
padding: 70px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#dolny {
|
||||
background: #D0B6A8;
|
||||
text-align: center;
|
||||
padding: 30px;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
footer {
|
||||
background: #2F180C;
|
||||
color: khaki;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
img {
|
||||
height: 350px;
|
||||
}
|
||||
|
||||
button {
|
||||
margin: 10px;
|
||||
padding: 5px;
|
||||
background: #2F180C;
|
||||
color: khaki;
|
||||
}
|
||||
body {
|
||||
background: #F6E5DC;
|
||||
font-family: Verdana;
|
||||
}
|
||||
|
||||
header {
|
||||
background: #2F180C;
|
||||
text-align: center;
|
||||
color: khaki;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
#lewy {
|
||||
width: 60%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#prawy {
|
||||
font-size: 150%;
|
||||
padding: 70px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#dolny {
|
||||
background: #D0B6A8;
|
||||
text-align: center;
|
||||
padding: 30px;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
footer {
|
||||
background: #2F180C;
|
||||
color: khaki;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
img {
|
||||
height: 350px;
|
||||
}
|
||||
|
||||
button {
|
||||
margin: 10px;
|
||||
padding: 5px;
|
||||
background: #2F180C;
|
||||
color: khaki;
|
||||
}
|
34
sw
Normal file
34
sw
Normal file
@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Panel zamówień</title>
|
||||
<script src="js/get.js" defer></script>
|
||||
<script src="js/post.js" defer></script>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Aplikacja Zamówień</h1>
|
||||
|
||||
<form id="orderForm">
|
||||
|
||||
Klient:
|
||||
<input type="text">
|
||||
|
||||
Data zamówienia:
|
||||
<input type="date" name="data_zamowienia" value="" required>
|
||||
|
||||
Kwota:
|
||||
<input type="number" name="cena" required>
|
||||
|
||||
<button type="submit">Dodaj</button>
|
||||
</form>
|
||||
|
||||
<button type="submit" onclick="getData()" >Dodaj</button>
|
||||
<table id="ordersTable">
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
20
swer
Normal file
20
swer
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
$dbhost="localhost";
|
||||
$dbuser="root";
|
||||
$dbpass="";
|
||||
$dbname="db";
|
||||
|
||||
$con = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
|
||||
|
||||
$rawData = file_get_contents('php://input');
|
||||
|
||||
$data = json_decode($rawData, true);
|
||||
|
||||
$kw = "INSERT INTO zamowienia1(nazwa, cena) VALUES ('{$data ['nazwa']}',{$data['cena']});";
|
||||
|
||||
echo json_encode($kw);
|
||||
|
||||
$ans = mysqli_query($con, $kw);
|
||||
|
||||
?>
|
24
xpp
Normal file
24
xpp
Normal file
@ -0,0 +1,24 @@
|
||||
/* ZAKŁADKI */
|
||||
.tab-content {
|
||||
display: none;
|
||||
padding: 20px;
|
||||
background: #fafafa;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.tab-content.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tab-content h2 {
|
||||
margin-bottom: 15px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.header {
|
||||
padding: 20px;
|
||||
background: #fafafa;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
}
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user