This commit is contained in:
kankys 2024-09-10 20:06:15 +02:00
parent 3e98a8e1a7
commit c225b329a2
18 changed files with 187 additions and 111 deletions

1
.idea/php.xml generated
View File

@ -10,6 +10,7 @@
<option name="highlightLevel" value="WARNING" /> <option name="highlightLevel" value="WARNING" />
<option name="transferred" value="true" /> <option name="transferred" value="true" />
</component> </component>
<component name="PhpProjectSharedConfiguration" php_language_level="8.3" />
<component name="PhpStanOptionsConfiguration"> <component name="PhpStanOptionsConfiguration">
<option name="transferred" value="true" /> <option name="transferred" value="true" />
</component> </component>

3
project.md Normal file
View File

@ -0,0 +1,3 @@
www = david setek tutorial 2023 php
www1 = základy PHP itnetvork

View File

@ -0,0 +1,3 @@
<footer>
<p>&copy; Všechna práva vyhrazena, Lukáš Kaňka, 2024</p>
</footer>

View File

@ -0,0 +1,8 @@
<header>
<ul>
<li><a href="">molestie honestatis error</a> </li>
<li><a href="">tempus ex petentium</a> </li>
<li><a href="">est cursus dictas</a> </li>
</ul>
</header>

25
www/cenik.php Normal file
View File

@ -0,0 +1,25 @@
<?php
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ceník našich služeb</title>
</head>
<body>
<?php include "./assets/componets/header.php" ?>
<?php
$students = ["Harry", "Ron", "Hermione"];
?>
<ul>
<?php foreach ($students as $one_student): ?>
<li><?php echo $one_student ?></li>
<?php endforeach; ?>
</ul>
<?php include "./assets/componets/footer.php" ?>
</body>
</html>

View File

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -1,3 +1,10 @@
<?php
echo "Lukáš";
echo strlen("Lukáš");
?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="cs"> <html lang="cs">
<head> <head>
@ -6,9 +13,7 @@
<title>Naše první stránky v PHP</title> <title>Naše první stránky v PHP</title>
</head> </head>
<body> <body>
<header> <?php include "./assets/componets/header.php" ?>
<h1>Lucas gaming company</h1>
</header>
<main> <main>
@ -20,15 +25,14 @@
<h1>Odkaz na další stránky webu</h1> <h1>Odkaz na další stránky webu</h1>
<a href="sluzby.php">Naše služby</a> <a href="sluzby.php">Naše služby</a>
<a href="cenik.php">Ceník</a>
<a href="kontakt.php">Kontaktujte nás</a> <a href="kontakt.php">Kontaktujte nás</a>
<img src="img/obr1.webp" alt=""> <img src="img/obr1.webp" alt="">
</main> </main>
<footer> <?php include "./assets/componets/footer.php" ?>
<p>&copy; Všechna práva vyhrazena, Lukáš Kaňka, 2024</p>
</footer>
</body> </body>
</html> </html>

View File

@ -6,7 +6,8 @@
<title>Kontaktujte nás</title> <title>Kontaktujte nás</title>
</head> </head>
<body> <body>
<header> </header> <?php include "./assets/componets/header.php" ?>
<main> <main>
<section> <section>
<h2>Formulář</h2> <h2>Formulář</h2>
@ -17,6 +18,11 @@
type="email" name="email" placeholder="E-mail"> <br> <input type="email" name="email" placeholder="E-mail"> <br> <input
type="date" name="date"> <br> <input type="hidden" name="form-type" type="date" name="date"> <br> <input type="hidden" name="form-type"
value="kontakt"> value="kontakt">
<br>
<input type="number" name="weight" min="10" max="15" >
<br>
<input type="url">
<br>
<textarea name="message" placeholder="Vaše zpráva"></textarea> <textarea name="message" placeholder="Vaše zpráva"></textarea>
<br> <input type="checkbox" value="tricko">Tričko zdarma <br> <input <br> <input type="checkbox" value="tricko">Tričko zdarma <br> <input
type="checkbox" value="zalozka">Záložka do knížky <br> <input type="checkbox" value="zalozka">Záložka do knížky <br> <input
@ -47,8 +53,7 @@
</section> </section>
</main> </main>
<footer> <?php include "./assets/componets/footer.php" ?>
<p>&copy; Všechna práva vyhrazena, Lukáš Kaňka, 2024</p>
</footer>
</body> </body>
</html> </html>

31
www/odkladiste.php Normal file
View File

@ -0,0 +1,31 @@
<?php
$hour = 8;
?>
<body>
<?php if ($hour < 9): ?>
<p>Dobré ráno</p>
<?php elseif ($hour < 12): ?>
<p>Dobré dopoledne</p>
<?php elseif ($hour === 12): ?>{
<p>Dobré poledne</p>
<?php elseif ($hour < 18): ?>
<p>Dobré odpoledne</p>
<?php else: ?>
<p>Dobrý večer</p>
<?php endif; ?>
</body>
<body>
<?php
$students = ["Harry", "Ron", "Hermione"];
?>
<ul>
<?php foreach ($students as $one_student): ?>
<li><?php echo $one_student ?></li>
<?php endforeach; ?>
</ul>
</body>

View File

@ -6,9 +6,8 @@
<title>Služby společnosti Lucas a spol.</title> <title>Služby společnosti Lucas a spol.</title>
</head> </head>
<body> <body>
<header> <?php include "./assets/componets/header.php" ?>
<h1>Služby</h1>
</header>
<main> <main>
@ -18,9 +17,6 @@
</main> </main>
<footer> <?php include "./assets/componets/footer.php" ?>
<p>&copy; Všechna práva vyhrazena, Lukáš Kaňka, 2024</p>
</footer>
</body> </body>
</html> </html>