commit a92285dfa2f9da437d9b12a151fcdb45f7bf4fc6 Author: u2 Date: Wed Feb 12 11:30:52 2025 +0100 init diff --git a/pdf/INF.03-01-21.06-SG.pdf b/pdf/INF.03-01-21.06-SG.pdf new file mode 100644 index 0000000..622cd9e Binary files /dev/null and b/pdf/INF.03-01-21.06-SG.pdf differ diff --git a/src/css/style.css b/src/css/style.css new file mode 100644 index 0000000..e69de29 diff --git a/src/imgs/menu.jpg b/src/imgs/menu.jpg new file mode 100644 index 0000000..4749ebf Binary files /dev/null and b/src/imgs/menu.jpg differ diff --git a/src/js/get.js b/src/js/get.js new file mode 100644 index 0000000..e69de29 diff --git a/src/js/post.js b/src/js/post.js new file mode 100644 index 0000000..e69de29 diff --git a/src/js/script.js b/src/js/script.js new file mode 100644 index 0000000..e69de29 diff --git a/src/php/get.php b/src/php/get.php new file mode 100644 index 0000000..e69de29 diff --git a/src/php/post.php b/src/php/post.php new file mode 100644 index 0000000..e69de29 diff --git a/src/sql/baza.sql b/src/sql/baza.sql new file mode 100644 index 0000000..a2f7f08 --- /dev/null +++ b/src/sql/baza.sql @@ -0,0 +1,178 @@ +-- 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 */; diff --git a/zip/INF.03-01-21.06-SG-pliki.zip b/zip/INF.03-01-21.06-SG-pliki.zip new file mode 100644 index 0000000..5407c48 Binary files /dev/null and b/zip/INF.03-01-21.06-SG-pliki.zip differ