Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
779028b
.ff
Frank20060 Sep 12, 2025
31af198
prueba1
Frank20060 Sep 12, 2025
05cf727
prueba2
Frank20060 Sep 12, 2025
7e0e6ed
volvemos_al_principio
Frank20060 Sep 12, 2025
5a7b1ab
prueba1
Frank20060 Sep 12, 2025
5b302fd
finalizado(creo)
Frank20060 Sep 15, 2025
c5500e7
resultado-css1
Frank20060 Sep 15, 2025
dbe8495
resultado-css2
Frank20060 Sep 15, 2025
7421976
resultado-css-final
Frank20060 Sep 15, 2025
666ed93
pruebas1
Frank20060 Sep 15, 2025
ae17ce4
nada
Frank20060 Sep 15, 2025
35bdda6
css bien
Frank20060 Sep 15, 2025
3fd75c3
teoria-precticaTablaPeliculas
Frank20060 Sep 19, 2025
f809d22
ej2tablas
Frank20060 Sep 19, 2025
a703672
pp2_finalizada
Frank20060 Sep 22, 2025
3456920
correcciones pp2
Frank20060 Sep 22, 2025
629127b
PP2B comenzando y retoques pp2
Frank20060 Sep 22, 2025
74edb0c
pp2b ej1 acabado
Frank20060 Sep 22, 2025
588bb07
teoria 2- Array/URL
Frank20060 Sep 26, 2025
c40d578
index peliculas hecho
Frank20060 Sep 26, 2025
1f2044d
empezando detalles
Frank20060 Sep 26, 2025
b1f7798
cambio de nombre carpeta cartelera pelis
Frank20060 Sep 29, 2025
d872ee6
cartelera peliculas acabado
Frank20060 Sep 29, 2025
b7388af
estilo cartelera
Frank20060 Sep 29, 2025
0eddfb0
teoria3-funciones/formularios
Frank20060 Oct 3, 2025
2cd5b1f
PracticaMercadona-Finalizada
Frank20060 Oct 3, 2025
412685f
quedan las cards
Frank20060 Oct 17, 2025
5da9caa
acabao
Frank20060 Oct 18, 2025
cc09eda
empezar pp6 y sesion crud heroes
Frank20060 Oct 24, 2025
1033e9e
no va nada
Frank20060 Oct 24, 2025
513db20
login hecho
Frank20060 Oct 25, 2025
5332fa4
acabao
Frank20060 Oct 25, 2025
a2a04e0
ahora si acabao
Frank20060 Oct 25, 2025
230373e
sesion de db :(
Frank20060 Nov 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# [Choice] PHP version (use -bullseye variants on local arm64/Apple Silicon): 8, 8.0, 7, 7.4, 7.3, 8-bullseye, 8.0-bullseye, 7-bullseye, 7.4-bullseye, 7.3-bullseye, 8-buster, 8.0-buster, 7-buster, 7.4-buster, 7.3-buster
ARG VARIANT=7-bullseye
FROM mcr.microsoft.com/vscode/devcontainers/php:0-${VARIANT}
RUN docker-php-ext-install mysqli pdo_mysql

# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
ARG NODE_VERSION="none"
Expand Down
3 changes: 2 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function sayHello($name) {
<body>
<?php

sayHello('remote world');
sayHello('hola');


phpinfo();

Expand Down
71 changes: 71 additions & 0 deletions practicas/pp1-primera-app/estilo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: Arial, Helvetica, sans-serif;
background-color: #fff;
color: #333;
line-height: 1.6;
}

header {
display: flex;
height: 20%;
justify-content: space-between;
align-items: center;
background-color: #1e1e1e;
color: white;
padding: 20px 40px;
}

header img {
height: 100px;
}

header h1 {
font-size: 1.5rem;
font-weight: normal;
}

main {
display: flex;
height: 60%;
justify-content: center;
align-items: flex-start;
padding: 40px;
gap: 60px;
}

.fotopersonal {
text-align: center;
}


.fotopersonal h2 {
margin-top: 15px;

}

main h3 {
margin-bottom: 15px;
font-size: 1.3rem;
}

main p {
max-width: 600px;
font-size: 0.95rem;
color: #444;
}

footer {
height: 10%;
background-color: #1e1e1e;
color: white;
text-align: center;
padding: 15px;
font-size: 0.9rem;
margin-top: 40px;
}
55 changes: 55 additions & 0 deletions practicas/pp1-primera-app/hola.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php
/*----------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*---------------------------------------------------------------------------------------*/
function sayName($name) {
echo "Hola soy $name";
echo "<br>";
}
?>

<html>
<head>
<title>Visual Studio Code Remote :: PHP</title>
<link rel="stylesheet" href="estilo.css">
</head>
<body>

<header>
<img src="imagenes/logo-fpllefia.jfif" alt="Logo del col·legi FP Llefià">
<h1>Módulo 7 - Práctica 1. Mi primera aplicación en PHP</h1>
</header>
<main>
<div style="display: flex; gap: 40px;">
<div class="fotopersonal">
<div style="width: 180px; border-radius: 50%; overflow: hidden; ">
<img src="imagenes/yo.jpg" alt="Una foto mia" style="width: 200px;">
</div>

<h2>Frank Villar Redondo</h2>
</div>
<div >
<h3>Explicacion codigo señalado</h3>
<p style="white-space: pre-line;"> <!-- el style es para que cuando le de al space me haga un salto de linea y no me lo ponga todo junto-->
<?= "Lo primero es lo que se usa para abrir un bloque de codigo en php que se va ha ejecutar.
Lo segudo que esta marcado es una funcion en php que que muestra por pantalla (con el comando echo) \"Hello\" y lo que le pasemos con la variable name. Esta dentro de un bloque de codigo de php.
El tercer recuadro muestra como se ejecuta la funcion que hemos creado anterirmente, lo que hay entre parentesis es el contenido que tiene la variable name.
El cuarto llama a una funcion que ya estara creada y que muetestra la info del servidor. l'Alber t dema no va a l'escola "; ?>

</p>
</div>
</div>
</main>
<footer>
<p>Frank Villar Redodno</p>
<?php

echo date('d/m/Y'); //Lo se porque es parecido a javascript y es lo que hicimos una vez con carlos o con juan no me acuerdo

?>
</footer>
<br>

</body>
</html>
Binary file not shown.
Binary file added practicas/pp1-primera-app/imagenes/yo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions practicas/pp2/ex1.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ejercicio 1</title>
<style>
body{
justify-items: center;
justify-content: center;
padding: 20px;
padding-left: 50px;
padding-right: 50px;
background-color: beige;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;


}
h1{
color: brown;
font-size: 40px;
}
#numBox{
display: flex;
flex-wrap: wrap;
gap: 10px;
width: 100%;
height: fit-content;
border: 2px, dotted, brown;
padding: 5px;
font-size: 1.5em;


}

</style>
</head>
<body>
<h1>Numeros pares entre 50 y 500</h1>
<div id="numBox">
<?php

for($num = 50; $num <=500; $num+= 2){

echo "<div>$num</div>";

}

?>
</div>
</body>
</html>
72 changes: 72 additions & 0 deletions practicas/pp2/ex2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ejercicio2</title>
<style>
body{
justify-items: center;
justify-content: center;
padding: 20px;
padding-left: 50px;
padding-right: 50px;
background-color: beige;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;


}
h1{
color: brown;
font-size: 40px;
}
h2{
color: brown;
font-size: 30px;
}
#espacioTablas{

display: flex;
flex-wrap: wrap;
gap: 10px;
width: fit-content;
height: fit-content;
border: 2px, dotted, brown;
padding: 10px;
gap: 20px;
justify-content: center;

}
.tabla{
padding: 2px;
font-size: 20px;

}
</style>
</head>
<body>
<h1> Ejercicio 2</h1>
<h2>Tablas de multiplicar</h2>
<div id="espacioTablas">

<?php

for($i=1; $i<=11; $i++){
echo "<div class= 'tabla'>";
for($j=1; $j<10; $j++){
$resul = $i*$j;
echo "$i x $j = $resul";
echo "<br>";

}
echo "</div>";

}

?>



</div>
</body>
</html>
65 changes: 65 additions & 0 deletions practicas/pp2/ex3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ejercicio 3</title>
<style>

body{
justify-items: center;
justify-content: center;
padding: 20px;
padding-left: 50px;
padding-right: 50px;
background-color: beige;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;


}
h1{
color: brown;
font-size: 40px;
}
.par, .impar{
width: 100px;
height: 100px;
justify-items: center;
align-items: center;
}
.par p, .impar p{
margin: 10px;
font-size: 60px;
}
.par{
border: 10px solid red;
}
.impar{
border: 10px solid blue;
}

</style>
</head>
<body>

<h1>Número aleatorio ¿PAR O IMPAR?</h1>
<h3>Se genera un número del 1 al 100 y determinamos si es par (borde rojo) o impar (borde azul)</h3>
<?php

$numAleatorio = rand( 1, 100);
if ($numAleatorio % 2 == 0){
echo"
<div class='par'>
<p>$numAleatorio</p>
</div>";
}else{
echo"
<div class='impar'>
<p>$numAleatorio</p>
</div>";
}


?>
</body>
</html>
Loading