Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Commit

Permalink
Egzaminy2022
Browse files Browse the repository at this point in the history
EE.09-01-22.01-SG
EE.09-01-22.02-SG
  • Loading branch information
NickyMB committed Jan 21, 2022
1 parent 487c2b5 commit 5a0c2ec
Show file tree
Hide file tree
Showing 60 changed files with 1,102 additions and 3 deletions.
4 changes: 2 additions & 2 deletions E.14/E.14-11-19.01/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ <h1>Zdjęcia naszych pupilów</h1>
<div id="lewy">
<h2>Kategorie</h2>
<ul>
<a href="psy.html"><li>Psy</li></a>
<a href="koty.html"><li>Koty</li></a>
<li><a href="psy.html">Psy</a></li>
<li><a href="koty.html">koty</a></li>
<li>Gryzonie</li>
<li>Jaszczurki</li>
<li>Inne zdjęcia</li>
Expand Down
3 changes: 2 additions & 1 deletion E.14/E.14-11-19.01/style5.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ a
color: white;
text-align: center;
height: 80px;
clear: both;
}
#levy
#lewy
{
float: left;
background-color: #9692B1;
Expand Down
Binary file added EE.09/EE.09-01-22.04-SG/EE.09-01-22.04-SG.zip
Binary file not shown.
Binary file added EE.09/EE.09-01-22.04-SG/IMG_1076.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EE.09/EE.09-01-22.04-SG/IMG_1077.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EE.09/EE.09-01-22.04-SG/IMG_1078.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EE.09/EE.09-01-22.04-SG/IMG_1079.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions EE.09/EE.09-01-22.04-SG/kwerendy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CREATE TABLE uzytkownicy ( id INT NOT NULL AUTO_INCREMENT , login VARCHAR(50), haslo VARCHAR(50), PRIMARY KEY (`id`));
INSERT INTO uzytkownicy (login, haslo) VALUES ('Grzegorz','g')
SELECT login FROM uzytkownicy
SELECT id, login FROM uzytkownicy where haslo LIKE '4%'
79 changes: 79 additions & 0 deletions EE.09/EE.09-01-22.04-SG/logowanie.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Forum o psach</title>
<link rel="stylesheet" href="styl4.css">
</head>
<body>
<div class='baner'>
<h1>Portal społecznościowy</h1>
</div>
<div class='lewy'>
<img src="obraz.jpg" alt="foksterier">
</div>
<div class='prawy'>
<h2>Zapisz się</h2>
<form method='post'>
login:&nbsp;<input name='login'>
<br>
hasło:&nbsp;<input type="password" name='haslo'>
<br>
powtórz hasło:&nbsp;<input type='password' name='powhaslo'>
<br>
<button type='submit'>Zapisz</button>
</form>
<?php
$conn = new mysqli('localhost', 'root', '', 'psy');
if (!empty($_POST['login']) && !empty($_POST['haslo']) && !empty($_POST['powhaslo']))
{
$login = $_POST['login'];
$haslo = $_POST['haslo'];
$powhaslo = $_POST['powhaslo'];
$sprawdz = 0;
$qr = 'SELECT login FROM uzytkownicy';
$result=$conn->query($qr);
while ($r = $result->fetch_array())
{
if ($r[0] == $login)
{
echo "<p>login występuje w bazie danych, konto nie zostało dodane</p>";
$sprawdz = 1;
break;
}
}
if ($haslo != $powhaslo)
{
echo "<p>hasła nie są takie same, konto nie zostało dodane</p>";
$sprawdz = 1;
}
if ($sprawdz == 0)
{
$szyfr = sha1($haslo);
$qr = "INSERT INTO uzytkownicy (login, haslo) VALUES ('" . $login . "','" . $szyfr . "')";
if ($conn->query($qr) === TRUE)
{
echo "<p>Konto zostało dodane</p>";
}
}
}
else
{
echo "<p>wypełnij wszystkie pola</p>";
}
$conn->close();
?>
</div>
<div class='prawy'>
<h2>Zapraszamy wszystkich</h2>
<ol>
<li>właścicieli psów</li>
<li>weterynarzy</li>
<li>tych, co chcą kupić psa</li>
<li>tych, co lubią psy</li>
</ol>
<a href="regulamin.html">Przeczytaj regulamin forum</a>
</div>
<div class='stopka'>Stronę wykonał: 0123456789</div>
</body>
</html>
Binary file added EE.09/EE.09-01-22.04-SG/obraz.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions EE.09/EE.09-01-22.04-SG/regulamin.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
regulamin
</body>
</html>
46 changes: 46 additions & 0 deletions EE.09/EE.09-01-22.04-SG/styl4.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
body
{
font-family: Garamond;
}
form
{
background-color: saddlebrown;
color:white;
padding: 10px 30px 10px 30px;
width: 300px;
}
input
{
margin: 5px;
}
p::before
{
content: "STATUS: ";
}
.baner
{
background-color: saddlebrown;
color: white;
text-align: center;
height: 50px;
}
.lewy
{
float:left;
background-color: tan;
height: 500px;
width: 40%;
}
.prawy
{
float: left;
background-color: tan;
height: 250px;
width: 60%;
}
.stopka
{
clear: both;
background-color: saddlebrown;
color:white;
}
16 changes: 16 additions & 0 deletions EE.09/EE.09-01-22.04-SG/uzytkownicy.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--
-- Zrzut danych tabeli `uzytkownicy`
--

INSERT INTO `uzytkownicy` (`login`, `haslo`) VALUES
('Justyna', 'a056c8d05ae9ac6ca180bc991b93b7ffe37563e0'),
('Ewa', 'c50267b906a652f2142cfab006e215c9f6fdc8a0'),
('Krzysiek', '637a81ed8e8217bb01c15c67c39b43b0ab4e20f1'),
('Adam', '8578173555a47d4ea49e697badfda270dee0858f'),
('Magda', '99ebdbd711b0e1854a6c2e93f759efc2af291fd0'),
('Werka', '186154712b2d5f6791d85b9a0987b98fa231779c'),
('Janek', '7823372203bd98aeb10e6f33a6ce7dab12d13423'),
('Heniek', '425ffc1422dc4f32528bd9fd5af355fdb5c96192'),
('Ola', '4ae9fa0a8299a828a886c0eb30c930c7cf302a72'),
('Dawid', 'b3054ff0797ff0b2bbce03ec897fe63e0b6490e0'),
('Ewelina', '7e240de74fb1ed08fa08d38063f6a6a91462a815');
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
120 changes: 120 additions & 0 deletions EE.09/EE.09-01-22.05-SG/baza.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Czas generowania: 07 Lis 2019, 08:59
-- Wersja serwera: 10.1.36-MariaDB
-- Wersja PHP: 7.2.11

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
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: `portal`
--

-- --------------------------------------------------------

--
-- Struktura tabeli dla tabeli `dane`
--

CREATE TABLE `dane` (
`id` int(10) UNSIGNED NOT NULL,
`rok_urodz` year(4) DEFAULT NULL,
`przyjaciol` int(10) UNSIGNED DEFAULT NULL,
`hobby` varchar(20) DEFAULT NULL,
`zdjecie` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Zrzut danych tabeli `dane`
--

INSERT INTO `dane` (`id`, `rok_urodz`, `przyjaciol`, `hobby`, `zdjecie`) VALUES
(1, 1995, 10, 'moda', 'o6.jpg'),
(2, 1990, 20, 'film', 'o4.jpg'),
(3, 1990, 20, 'cross', 'o1.jpg'),
(4, 2001, 4, 'finanse', 'o2.jpg'),
(5, 2002, 50, 'muzyka', 'o8.jpg'),
(6, 1994, 10, 'baseball', 'o6.jpg'),
(7, 1990, 20, 'film', 'o5.jpg'),
(8, 1990, 20, 'film', 'o3.jpg'),
(9, 2001, 0, 'psychologia', 'o7.jpg'),
(10, 2002, 50, 'muzyka', 'o2.jpg'),
(11, 1994, 10, 'DIY', 'o6.jpg');

-- --------------------------------------------------------

--
-- Struktura tabeli dla tabeli `uzytkownicy`
--

CREATE TABLE `uzytkownicy` (
`id` int(10) UNSIGNED NOT NULL,
`login` varchar(50) DEFAULT NULL,
`haslo` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Zrzut danych tabeli `uzytkownicy`
--

INSERT INTO `uzytkownicy` (`id`, `login`, `haslo`) VALUES
(1, 'Justyna', 'a056c8d05ae9ac6ca180bc991b93b7ffe37563e0'),
(2, 'Ewa', 'c50267b906a652f2142cfab006e215c9f6fdc8a0'),
(3, 'Krzysiek', '637a81ed8e8217bb01c15c67c39b43b0ab4e20f1'),
(4, 'Adam', '8578173555a47d4ea49e697badfda270dee0858f'),
(5, 'Magda', '99ebdbd711b0e1854a6c2e93f759efc2af291fd0'),
(6, 'Werka', '186154712b2d5f6791d85b9a0987b98fa231779c'),
(7, 'Janek', '7823372203bd98aeb10e6f33a6ce7dab12d13423'),
(8, 'Heniek', '425ffc1422dc4f32528bd9fd5af355fdb5c96192'),
(9, 'Ola', '4ae9fa0a8299a828a886c0eb30c930c7cf302a72'),
(10, 'Dawid', 'b3054ff0797ff0b2bbce03ec897fe63e0b6490e0'),
(11, 'Ewelina', '7e240de74fb1ed08fa08d38063f6a6a91462a815');

--
-- Indeksy dla zrzutów tabel
--

--
-- Indeksy dla tabeli `dane`
--
ALTER TABLE `dane`
ADD PRIMARY KEY (`id`);

--
-- Indeksy dla tabeli `uzytkownicy`
--
ALTER TABLE `uzytkownicy`
ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT dla tabeli `dane`
--
ALTER TABLE `dane`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT dla tabeli `uzytkownicy`
--
ALTER TABLE `uzytkownicy`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
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 change: 1 addition & 0 deletions EE.09/EE.09-01-22.05-SG/dane.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Strona w trakcie budowy
Binary file added EE.09/EE.09-01-22.05-SG/icon-on.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions EE.09/EE.09-01-22.05-SG/kwerendy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SELECT haslo from uzytkownicy where login="Justyna"

select count(*) from dane

select u.login, d.rok_urodz, d.przyjaciol, d.hobby, d.zdjecie from uzytkownicy u join dane d on d.id=u.id where u.login="Justyna"

alter table dane add stanowisko text
Binary file added EE.09/EE.09-01-22.05-SG/o1.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EE.09/EE.09-01-22.05-SG/o2.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EE.09/EE.09-01-22.05-SG/o3.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EE.09/EE.09-01-22.05-SG/o4.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EE.09/EE.09-01-22.05-SG/o5.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EE.09/EE.09-01-22.05-SG/o6.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EE.09/EE.09-01-22.05-SG/o7.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EE.09/EE.09-01-22.05-SG/o8.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions EE.09/EE.09-01-22.05-SG/styl5.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
body
{
font-family: Tahoma;
}
button
{
background-color: #003d33;
color: white;
width: 100%;
height: 30px;
border-style: none;
}
button:hover
{
background-color: #004c40;
}
h1
{
padding: 0 auto;
margin: 0 auto;
}
a
{
width: 100%;
height: 30px;
}
.baner1, .baner2
{
background-color: #003d33;
color: white;
text-align: center;
height: 50px;
float: left;
}
.baner1
{
width: 70%;
}
.baner2
{
width: 30%;
}
.lewy
{
background-color: #26a69a;
height: 550px;
width: 30%;
float: left;
}
.prawy
{
background-color: #26a69a;
height: 550px;
width: 70%;
float: left;
}
.stopka
{
background-color: #003d33;
color: white;
clear: both;
}
.wizytowka
{
width: 400px;
margin: 30px;
text-align: center;
border: 1px solid #003d33;
}

0 comments on commit 5a0c2ec

Please sign in to comment.