new project www
This commit is contained in:
		
							
								
								
									
										8
									
								
								.idea/.gitignore
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.idea/.gitignore
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
# Default ignored files
 | 
			
		||||
/shelf/
 | 
			
		||||
/workspace.xml
 | 
			
		||||
# Editor-based HTTP Client requests
 | 
			
		||||
/httpRequests/
 | 
			
		||||
# Datasource local storage ignored files
 | 
			
		||||
/dataSources/
 | 
			
		||||
/dataSources.local.xml
 | 
			
		||||
							
								
								
									
										8
									
								
								.idea/PHP_DS_Project.iml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.idea/PHP_DS_Project.iml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<module type="WEB_MODULE" version="4">
 | 
			
		||||
  <component name="NewModuleRootManager">
 | 
			
		||||
    <content url="file://$MODULE_DIR$" />
 | 
			
		||||
    <orderEntry type="inheritedJdk" />
 | 
			
		||||
    <orderEntry type="sourceFolder" forTests="false" />
 | 
			
		||||
  </component>
 | 
			
		||||
</module>
 | 
			
		||||
							
								
								
									
										8
									
								
								.idea/modules.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.idea/modules.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<project version="4">
 | 
			
		||||
  <component name="ProjectModuleManager">
 | 
			
		||||
    <modules>
 | 
			
		||||
      <module fileurl="file://$PROJECT_DIR$/.idea/PHP_DS_Project.iml" filepath="$PROJECT_DIR$/.idea/PHP_DS_Project.iml" />
 | 
			
		||||
    </modules>
 | 
			
		||||
  </component>
 | 
			
		||||
</project>
 | 
			
		||||
							
								
								
									
										19
									
								
								.idea/php.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								.idea/php.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<project version="4">
 | 
			
		||||
  <component name="MessDetectorOptionsConfiguration">
 | 
			
		||||
    <option name="transferred" value="true" />
 | 
			
		||||
  </component>
 | 
			
		||||
  <component name="PHPCSFixerOptionsConfiguration">
 | 
			
		||||
    <option name="transferred" value="true" />
 | 
			
		||||
  </component>
 | 
			
		||||
  <component name="PHPCodeSnifferOptionsConfiguration">
 | 
			
		||||
    <option name="highlightLevel" value="WARNING" />
 | 
			
		||||
    <option name="transferred" value="true" />
 | 
			
		||||
  </component>
 | 
			
		||||
  <component name="PhpStanOptionsConfiguration">
 | 
			
		||||
    <option name="transferred" value="true" />
 | 
			
		||||
  </component>
 | 
			
		||||
  <component name="PsalmOptionsConfiguration">
 | 
			
		||||
    <option name="transferred" value="true" />
 | 
			
		||||
  </component>
 | 
			
		||||
</project>
 | 
			
		||||
							
								
								
									
										6
									
								
								.idea/vcs.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.idea/vcs.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<project version="4">
 | 
			
		||||
  <component name="VcsDirectoryMappings">
 | 
			
		||||
    <mapping directory="" vcs="Git" />
 | 
			
		||||
  </component>
 | 
			
		||||
</project>
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								Setek/www/img/obr1.webp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Setek/www/img/obr1.webp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 32 KiB  | 
							
								
								
									
										34
									
								
								Setek/www/index.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								Setek/www/index.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,34 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="cs">
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
    <title>Naše první stránky v PHP</title>
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
<header>
 | 
			
		||||
    <h1>Lucas gaming company</h1>
 | 
			
		||||
</header>
 | 
			
		||||
 | 
			
		||||
<main>
 | 
			
		||||
 | 
			
		||||
    <section>
 | 
			
		||||
        <h1>Historie firmy</h1>
 | 
			
		||||
        <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod ad, voluptatem officia alias illo ipsum libero
 | 
			
		||||
            iste sed expedita, nemo rem reprehenderit doloremque quo asperiores soluta! Cupiditate fuga vel in.</p>
 | 
			
		||||
    </section>
 | 
			
		||||
 | 
			
		||||
    <h1>Odkaz na další stránky webu</h1>
 | 
			
		||||
    <a href="sluzby.php">Naše služby</a>
 | 
			
		||||
 | 
			
		||||
    <a href="kontakt.php">Kontaktujte nás</a>
 | 
			
		||||
    <img src="img/obr1.webp" alt="">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
</main>
 | 
			
		||||
 | 
			
		||||
<footer>
 | 
			
		||||
    <p>© Všechna práva vyhrazena, Lukáš Kaňka, 2024</p>
 | 
			
		||||
</footer>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
							
								
								
									
										54
									
								
								Setek/www/kontakt.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								Setek/www/kontakt.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,54 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="cs">
 | 
			
		||||
<head>
 | 
			
		||||
<meta charset="UTF-8">
 | 
			
		||||
<meta name="viewport" content="width= , initial-scale=1.0">
 | 
			
		||||
<title>Kontaktujte nás</title>
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
	<header> </header>
 | 
			
		||||
	<main>
 | 
			
		||||
		<section>
 | 
			
		||||
			<h2>Formulář</h2>
 | 
			
		||||
			<form>
 | 
			
		||||
				<input type="text" name="first_name" placeholder="Křestní jméno"> <br>
 | 
			
		||||
				<input type="text" name="second_name" placeholder="Příjmení"> <br> <input
 | 
			
		||||
					type="password" name="password" placeholder="Heslo"> <br> <input
 | 
			
		||||
					type="email" name="email" placeholder="E-mail"> <br> <input
 | 
			
		||||
					type="date" name="date"> <br> <input type="hidden" name="form-type"
 | 
			
		||||
					value="kontakt">
 | 
			
		||||
				<textarea name="message" placeholder="Vaše zpráva"></textarea>
 | 
			
		||||
				<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="el-kmiha">Elektronická kniha <br> <select
 | 
			
		||||
					name="color[]" multiple>
 | 
			
		||||
					<optgroup label="hlavní barva">
 | 
			
		||||
						<option value="red">Červená</option>
 | 
			
		||||
						<option value="green">Zelená</option>
 | 
			
		||||
						<option value="yellow">Žlutá</option>
 | 
			
		||||
					</optgroup>
 | 
			
		||||
 | 
			
		||||
					<optgroup label="barva okraje">
 | 
			
		||||
						<option value="red2">Červená</option>
 | 
			
		||||
						<option value="green2">Zelená</option>
 | 
			
		||||
						<option value="yellow2">Žlutá</option>
 | 
			
		||||
					</optgroup>
 | 
			
		||||
				</select> <br> <input type="radio" name="country" value="cr">ČR <br>
 | 
			
		||||
				<input type="radio" name="country" value="germany">Německo <br> <input
 | 
			
		||||
					type="radio" name="country" value="portugal">Portugalsko <br>
 | 
			
		||||
 | 
			
		||||
				<button>Odeslat</button>
 | 
			
		||||
			</form>
 | 
			
		||||
		</section>
 | 
			
		||||
		<section>
 | 
			
		||||
			<iframe style="border: none" src="https://frame.mapy.cz/s/bekucuzata"
 | 
			
		||||
				width="400" height="280" frameborder="0"></iframe>
 | 
			
		||||
			<a href="index.php">Zpět na úvodní stránku</a>
 | 
			
		||||
		</section>
 | 
			
		||||
	</main>
 | 
			
		||||
 | 
			
		||||
	<footer>
 | 
			
		||||
		<p>© Všechna práva vyhrazena, Lukáš Kaňka, 2024</p>
 | 
			
		||||
	</footer>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
							
								
								
									
										26
									
								
								Setek/www/sluzby.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								Setek/www/sluzby.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="cs">
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
    <title>Služby společnosti Lucas a spol.</title>
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
<header>
 | 
			
		||||
<h1>Služby</h1>
 | 
			
		||||
</header>
 | 
			
		||||
 | 
			
		||||
<main>
 | 
			
		||||
 | 
			
		||||
<section>
 | 
			
		||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/ScPTU6I2eDI?si=JnHW-CyA5vfH2fU5" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
</main>
 | 
			
		||||
 | 
			
		||||
<footer>
 | 
			
		||||
<p>© Všechna práva vyhrazena, Lukáš Kaňka, 2024</p>
 | 
			
		||||
 | 
			
		||||
</footer>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
@@ -183,3 +183,96 @@ if (empty($articles)) {
 | 
			
		||||
// VYpsání článků z databáze
 | 
			
		||||
echo "<br>";
 | 
			
		||||
echo 'Další kód na stránce';
 | 
			
		||||
 | 
			
		||||
// Podmínky a elseif
 | 
			
		||||
$hour =15;
 | 
			
		||||
$message = null;
 | 
			
		||||
 | 
			
		||||
if($hour< 9) {
 | 
			
		||||
    $message = "Dobré ráno";
 | 
			
		||||
} elseif ($hour < 12) {
 | 
			
		||||
    $message = "Dobré dopoledne";
 | 
			
		||||
} elseif ($hour == 12) {
 | 
			
		||||
    $message = "Dobré poledne";
 | 
			
		||||
} elseif ($hour < 18) {
 | 
			
		||||
    $message = "Dobré odpoledne";
 | 
			
		||||
} else {
 | 
			
		||||
    $message = "Dobrý večer";
 | 
			
		||||
}
 | 
			
		||||
echo $message;
 | 
			
		||||
 | 
			
		||||
// Podmínky a logické operátory - and, or
 | 
			
		||||
 | 
			
		||||
$age = 25;
 | 
			
		||||
 | 
			
		||||
if($age >= 18 and $age < 65) {
 | 
			
		||||
    echo "Dospělí není v důchodovém věku";
 | 
			
		||||
} elseif ($age < 18){
 | 
			
		||||
    echo "Dospívající";
 | 
			
		||||
} else {
 | 
			
		||||
    echo "Důchodce";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
and - a zároveň
 | 
			
		||||
true, true -> true
 | 
			
		||||
true, false -> false
 | 
			
		||||
false, true -> false
 | 
			
		||||
false, false -> false
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// Podmínky a logické operátory - and, or
 | 
			
		||||
// 12345, 66778
 | 
			
		||||
 | 
			
		||||
$password = "12345";
 | 
			
		||||
 | 
			
		||||
if($password === "12345" or $password === "66778") {
 | 
			
		||||
    echo "Dveře se otvírají, můžete jít dál";
 | 
			
		||||
} else {
 | 
			
		||||
 echo "Neplatný kód. Zkuste to prosím znovu";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// or - nebo
 | 
			
		||||
// true, true -> true
 | 
			
		||||
// true, false -> true
 | 
			
		||||
// false, true -> true
 | 
			
		||||
// false, false -> false
 | 
			
		||||
 | 
			
		||||
// Switch statement
 | 
			
		||||
$day = "po";
 | 
			
		||||
 | 
			
		||||
switch ($day) {
 | 
			
		||||
    case "po":
 | 
			
		||||
        echo "Pondělí";
 | 
			
		||||
        break;
 | 
			
		||||
 | 
			
		||||
        case "ut":
 | 
			
		||||
            echo "Úterý";
 | 
			
		||||
            break;
 | 
			
		||||
 | 
			
		||||
            case "st":
 | 
			
		||||
                echo "Středa";
 | 
			
		||||
                break;
 | 
			
		||||
 | 
			
		||||
                case "ct":
 | 
			
		||||
                    echo "Čtvrtek";
 | 
			
		||||
                    break;
 | 
			
		||||
 | 
			
		||||
                    case "pa":
 | 
			
		||||
                        echo "Pátek";
 | 
			
		||||
                        break;
 | 
			
		||||
 | 
			
		||||
                        case "so":
 | 
			
		||||
                            echo "Sobota";
 | 
			
		||||
                            break;
 | 
			
		||||
 | 
			
		||||
                            case "ne":
 | 
			
		||||
                                echo "Neděle";
 | 
			
		||||
                                break;
 | 
			
		||||
 | 
			
		||||
                                default:
 | 
			
		||||
                                    echo "Neznámý den";
 | 
			
		||||
                                    break;
 | 
			
		||||
 | 
			
		||||
} 
 | 
			
		||||
		Reference in New Issue
	
	Block a user