Rename directory.
This commit is contained in:
		@@ -0,0 +1,34 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html>
 | 
			
		||||
	<head>
 | 
			
		||||
		<title>Calculate Salary</title>
 | 
			
		||||
	</head>
 | 
			
		||||
	<body>
 | 
			
		||||
<?php
 | 
			
		||||
$name = $_POST["name"];
 | 
			
		||||
$sirname = $_POST["sirname"];
 | 
			
		||||
$salary = $_POST["salary"];
 | 
			
		||||
$age = $_POST["age"];
 | 
			
		||||
 | 
			
		||||
if($salary > 1000 && $salary <= 2000) {
 | 
			
		||||
	if($age > 45)
 | 
			
		||||
		$salary *= 1.03;
 | 
			
		||||
	else
 | 
			
		||||
		$salary *= 1.1;
 | 
			
		||||
} else if($salary <= 1000){
 | 
			
		||||
	if($age < 30)
 | 
			
		||||
		$salary = 1100;
 | 
			
		||||
	else if($age <= 45)
 | 
			
		||||
		$salary *= 1.03;
 | 
			
		||||
	else
 | 
			
		||||
		$salary *= 1.15;
 | 
			
		||||
}
 | 
			
		||||
?>
 | 
			
		||||
 | 
			
		||||
	Name: <?= $name ?><br />
 | 
			
		||||
	Sirname: <?= $sirname ?><br />
 | 
			
		||||
	Salary: <?= $salary ?>€<br />
 | 
			
		||||
	Age: <?= $age ?><br />
 | 
			
		||||
 | 
			
		||||
	</body>
 | 
			
		||||
</html>
 | 
			
		||||
							
								
								
									
										15
									
								
								2/IAW/assignments/t3-ej4-ejercicios-php-naortega/ej1-1.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								2/IAW/assignments/t3-ej4-ejercicios-php-naortega/ej1-1.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html>
 | 
			
		||||
	<head>
 | 
			
		||||
		<meta charset="UTF-8" />
 | 
			
		||||
		<title>Imagen Aleatoria</title>
 | 
			
		||||
	</head>
 | 
			
		||||
	<body>
 | 
			
		||||
<?php
 | 
			
		||||
$imgs[0] = "imgs/img0.jpg";
 | 
			
		||||
$imgs[1] = "imgs/img1.jpg";
 | 
			
		||||
$imgs[2] = "imgs/img2.jpg";
 | 
			
		||||
?>
 | 
			
		||||
		<img src="<?= $imgs[rand(0, count($imgs)-1)] ?>" />
 | 
			
		||||
	</body>
 | 
			
		||||
</html>
 | 
			
		||||
							
								
								
									
										14
									
								
								2/IAW/assignments/t3-ej4-ejercicios-php-naortega/ej1.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								2/IAW/assignments/t3-ej4-ejercicios-php-naortega/ej1.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html>
 | 
			
		||||
	<head>
 | 
			
		||||
		<meta charset="UTF-8" />
 | 
			
		||||
		<title>Imagen Aleatoria</title>
 | 
			
		||||
	</head>
 | 
			
		||||
	<body>
 | 
			
		||||
<?php
 | 
			
		||||
$imgs[0] = "imgs/img0.jpg";
 | 
			
		||||
$imgs[1] = "imgs/img1.jpg";
 | 
			
		||||
?>
 | 
			
		||||
		<img src="<?= $imgs[rand(0, 1)] ?>" />
 | 
			
		||||
	</body>
 | 
			
		||||
</html>
 | 
			
		||||
							
								
								
									
										15
									
								
								2/IAW/assignments/t3-ej4-ejercicios-php-naortega/ej2.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								2/IAW/assignments/t3-ej4-ejercicios-php-naortega/ej2.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html>
 | 
			
		||||
	<head>
 | 
			
		||||
		<title>Calculate Salary</title>
 | 
			
		||||
	</head>
 | 
			
		||||
	<body>
 | 
			
		||||
		<form action="calc-sal.php" method="POST" >
 | 
			
		||||
			Name: <input type="text" name="name" /><br />
 | 
			
		||||
			Sirname: <input type="text" name="sirname" /><br />
 | 
			
		||||
			Salary: <input type="number" name="salary" /><br />
 | 
			
		||||
			Age: <input type="number" name="age" /><br />
 | 
			
		||||
			<input type="submit" />
 | 
			
		||||
		</form>
 | 
			
		||||
	</body>
 | 
			
		||||
</html>
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								2/IAW/assignments/t3-ej4-ejercicios-php-naortega/imgs/img0.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								2/IAW/assignments/t3-ej4-ejercicios-php-naortega/imgs/img0.jpg
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 80 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								2/IAW/assignments/t3-ej4-ejercicios-php-naortega/imgs/img1.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								2/IAW/assignments/t3-ej4-ejercicios-php-naortega/imgs/img1.jpg
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 121 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								2/IAW/assignments/t3-ej4-ejercicios-php-naortega/imgs/img2.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								2/IAW/assignments/t3-ej4-ejercicios-php-naortega/imgs/img2.jpg
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 137 KiB  | 
		Reference in New Issue
	
	Block a user