<!DOCTYPE html>
<html lang="es">
<!--
Autor: Santiago González Vicente
Fecha Modificacion: 2026-10-04
Descripcion: Indice DAW2
-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="webroot/css/estilos.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Santiago González Vicente</title>
</head>
<body>
<h2><a href='../indexProyectoTema3.php'>volver</a></h2>
<?php
function diasyprecios($array) {
$t=0;
foreach($array as $dia => $pago){
print "<li>".$dia." recibe ".$pago."</li>";
$t+=$pago;
}
return $t;
}
$Semana = array("Lunes"=> 80, "Martes"=> 20, "Miercoles"=> 70, "Jueves"=> 80, "Viernes"=> 180, "Sabado"=> 80, "Domingo"=> 8);
$total =diasyprecios($Semana);
print "<h3>Pago total= ".$total."</h3>"
?>
<footer>
<p><time datetime="2026-09-14">2026-2027</time> IES LOS SAUCES. ©Todos los derechos reservados</p>
<p>Santiago González Vicente. 14/09/2026</p>
<a href="https://github.com/CuentaEducaSantiago/SGVDWESProyectoTema3" target="_blank" rel="noopener"><i class="fa fa-github" style="font-size:40px; margin-right: 15px;"></i></a>
<a href="../indexProyectoTema3.php"><i class="fa fa-home" style="font-size:40px; margin-right: 15px;"></i></a>
</footer>
</body>
</html>