Centrado de texto e imagenes

parent a28b5916
......@@ -41,7 +41,7 @@ if($_POST){
</br></br></br></br></br></br></br></br></br></br></br></br>
<div class="card">
<div class="card-header">
<div class="card-header text-center">
Iniciar Sesión
</div>
<div class="card-body">
......@@ -52,7 +52,7 @@ if($_POST){
<?php }?>
<form method="POST">
<div class = "form-group">
<label >Usuario</label>
<label >Usuario:</label>
<input type="text" class="form-control" name="usuario" placeholder="Introduce tu usuario">
</div>
<div class="form-group">
......
......@@ -2,16 +2,15 @@
<div class="col-md-12">
<div class="jumbotron">
<h1 class="display-4">Bienvenido desarrollador <?php echo $nombreUsuario; ?></h1>
<p class="lead">¿Que desea hacer usted?</p>
<h1 class="display-4 text-center">Bienvenido desarrollador <?php echo $nombreUsuario; ?></h1>
<p class="lead text-center">¿Que desea hacer usted?</p>
<hr class="my-2">
<p>Acciones</p>
<p class="lead">
<p class="text-center">Acciones</p>
<p class="lead text-center">
<a class="btn btn-primary btn-lg" href="<?php echo $url;?>/administrador/seccion/equipos.php" role="button">Añadir Equipo</a>
<a class="btn btn-primary btn-lg" href="<?php echo $url;?>/administrador/seccion/jornada.php" role="button">Añadir Jornada</a>
<a class="btn btn-primary btn-lg" href="<?php echo $url;?>/administrador/seccion/jugadores.php" role="button">Añadir Jugador</a>
<a class="btn btn-primary btn-lg" href="<?php echo $url;?>/administrador/seccion/goles.php" role="button">Añadir Gol</a>
<a class="btn btn-primary btn-lg" href="<?php echo $url;?>/administrador/seccion/tarjetas.php" role="button">Añadir Tarjeta</a>
</p>
</div>
</div>
......
......@@ -94,10 +94,10 @@
?>
<div class="col-md-5">
<div class="col-md-4">
<div class="card">
<div class="card-header">
<div class="card-header text-center">
Añadir Equipo
</div>
<div class="card-body">
......@@ -136,28 +136,24 @@
</div>
<div class="col-md-7">
<div class="col-md-8">
<table class="table table-bordered">
<thead>
<tr>
<th>ID Equipo</th>
<th>Equipo</th>
<th>Escudo</th>
<th>Tarjetas</th>
<th>Goles</th>
<th>Acciones</th>
<th class="text-center">ID Equipo</th>
<th class="text-center">Equipo</th>
<th class="text-center">Escudo</th>
<th class="text-center">Acciones</th>
</tr>
</thead>
<tbody>
<?php foreach($listaEquipos as $equipo) {?>
<tr>
<td><?php echo $equipo['id'] ?></td>
<td><?php echo $equipo['Nombre'] ?></td>
<td class="text-center"><?php echo $equipo['id'] ?></td>
<td class="text-center"><?php echo $equipo['Nombre'] ?></td>
<td>
<img src="../../img/.<?php echo $equipo['Imagen']; ?>" width="200" alt="" srcset="">
</td>
<td>Goles</td>
<td>Tarjetas</td>
<td>
<form method="POST">
<input type="hidden" name="id_equipo" id="id_equipo" value="<?php echo $equipo['id'] ?>"/>
......
......@@ -100,7 +100,7 @@
<div class="col-md-6">
<div class="card">
<div class="card-header">
<div class="card-header text-center">
Consultar Jornada
</div>
<div class="card-body">
......@@ -123,7 +123,7 @@
<div class="col-md-6">
<div class="card">
<div class="card-header">
<div class="card-header text-center">
Añadir Gol
</div>
<div class="card-body">
......@@ -170,7 +170,7 @@
<div class="col-md-12">
</br> </br>
<div class="card">
<div class="card-header">
<div class="card-header text-center">
JORNADA
<?php echo( $idjornada); ?>
</div>
......@@ -180,21 +180,21 @@
<table class="table table-bordered">
<thead>
<tr>
<th>ID Partido</th>
<th>Equipo L</th>
<th>Equipo V</th>
<th>Goles Local</th>
<th>Goles Visitante</th>
<th>Acciones</th>
<th class="text-center">ID Partido</th>
<th class="text-center">Equipo L</th>
<th class="text-center">Equipo V</th>
<th class="text-center">Goles Local</th>
<th class="text-center">Goles Visitante</th>
<th class="text-center">Acciones</th>
</tr>
</thead>
<tbody>
<?php foreach($listapartidos as $partido) {?>
<tr>
<td>
<td class="text-center">
<?php echo $partido['id_partido']?>
</td>
<td><?php $SQL2=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipoL ");
<td class="text-center"><?php $SQL2=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipoL ");
$SQL2->bindParam(':id_equipoL',$partido['id_equipoL']);
$SQL2->execute();
$listaLocales=$SQL2->fetchAll(PDO::FETCH_ASSOC);
......@@ -203,7 +203,7 @@
<?php echo $Local['Nombre'] ?>
<?php }?>
</td>
<td><?php $SQL3=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipoV ");
<td class="text-center"><?php $SQL3=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipoV ");
$SQL3->bindParam(':id_equipoV',$partido['id_equipoV']);
$SQL3->execute();
$listaLocales=$SQL3->fetchAll(PDO::FETCH_ASSOC);
......@@ -212,13 +212,13 @@
<?php echo $Local['Nombre'] ?>
<?php }?>
</td>
<td>
<td class="text-center">
<?php echo $partido['golesL']?>
</td>
<td>
<td class="text-center">
<?php echo $partido['golesV']?>
</td>
<td>
<td class="text-center">
<form method="POST">
<input type="hidden" name="id_partido" id="id_partido" value="<?php echo $partido['id_partido'] ?>"/>
<input type="submit" name="accion" value="Seleccionar" class="btn btn-primary"/>
......
......@@ -64,7 +64,7 @@
<div class="col-md-6">
<div class="card">
<div class="card-header">
<div class="card-header text-center">
Añadir Jornada
</div>
<div class="card-body">
......@@ -108,15 +108,15 @@
<table class="table table-bordered">
<thead>
<tr>
<th>ID Equipo</th>
<th>Equipo</th>
<th class="text-center">ID Equipo</th>
<th class="text-center">Equipo</th>
</tr>
</thead>
<tbody>
<?php foreach($listaEquipos as $equipo) {?>
<tr>
<td><?php echo $equipo['id'] ?></td>
<td><?php echo $equipo['Nombre'] ?></td>
<td class="text-center"><?php echo $equipo['id'] ?></td>
<td class="text-center"><?php echo $equipo['Nombre'] ?></td>
</tr>
<?php }?>
......@@ -128,19 +128,19 @@
<table class="table table-bordered">
<thead>
<tr>
<th>ID Partido</th>
<th>Jornada</th>
<th>Equipo L</th>
<th>Equipo V</th>
<th>Acciones</th>
<th class="text-center">ID Partido</th>
<th class="text-center">Jornada</th>
<th class="text-center">Equipo L</th>
<th class="text-center">Equipo V</th>
<th class="text-center">Acciones</th>
</tr>
</thead>
<tbody>
<?php foreach($listapartidos as $partido) {?>
<tr>
<td><?php echo $partido['id_partido'] ?></td>
<td><?php echo $partido['id_jornada'] ?></td>
<td><?php $SQL2=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipoL ");
<td class="text-center"><?php echo $partido['id_partido'] ?></td>
<td class="text-center"><?php echo $partido['id_jornada'] ?></td>
<td class="text-center"><?php $SQL2=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipoL ");
$SQL2->bindParam(':id_equipoL',$partido['id_equipoL']);
$SQL2->execute();
$listaLocales=$SQL2->fetchAll(PDO::FETCH_ASSOC);
......@@ -149,7 +149,7 @@
<?php echo $Local['Nombre'] ?>
<?php }?>
</td>
<td><?php $SQL3=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipoV ");
<td class="text-center"><?php $SQL3=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipoV ");
$SQL3->bindParam(':id_equipoV',$partido['id_equipoV']);
$SQL3->execute();
$listaLocales=$SQL3->fetchAll(PDO::FETCH_ASSOC);
......
......@@ -53,7 +53,7 @@
<div class="col-md-6">
<div class="card">
<div class="card-header">
<div class="card-header text-center">
Añadir Jugador
</div>
<div class="card-body">
......@@ -88,15 +88,15 @@
<table class="table table-bordered">
<thead>
<tr>
<th>ID Equipo</th>
<th>Equipo</th>
<th class="text-center">ID Equipo</th>
<th class="text-center">Equipo</th>
</tr>
</thead>
<tbody>
<?php foreach($listaEquipos as $equipo) {?>
<tr>
<td><?php echo $equipo['id'] ?></td>
<td><?php echo $equipo['Nombre'] ?></td>
<td class="text-center"><?php echo $equipo['id'] ?></td>
<td class="text-center"><?php echo $equipo['Nombre'] ?></td>
</tr>
<?php }?>
......@@ -108,15 +108,15 @@
<table class="table table-bordered">
<thead>
<tr>
<th>Equipo</th>
<th>Jugador</th>
<th>Acciones</th>
<th class="text-center">Equipo</th>
<th class="text-center">Jugador</th>
<th class="text-center">Acciones</th>
</tr>
</thead>
<tbody>
<?php foreach($listajugadores as $jugadores) {?>
<tr>
<td><?php $SQL2=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipo ");
<td class="text-center"><?php $SQL2=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipo ");
$SQL2->bindParam(':id_equipo',$jugadores['id_equipo']);
$SQL2->execute();
$listaLocales=$SQL2->fetchAll(PDO::FETCH_ASSOC);
......@@ -125,8 +125,8 @@
<?php echo $Local['Nombre'] ?>
<?php }?>
</td>
<td><?php echo $jugadores['Nombre'] ?></td>
<td>
<td class="text-center"><?php echo $jugadores['Nombre'] ?></td>
<td class="text-center">
<form method="POST">
<input type="hidden" name="id_jugador" id="id_jugador" value="<?php echo $jugadores['id_jugador'] ?>"/>
<input type="submit" name="accion" value="Seleccionar" class="btn btn-primary"/>
......
......@@ -33,7 +33,6 @@
<a class="nav-item nav-link" href="<?php echo $url;?>/administrador/seccion/equipos.php">Equipos</a>
<a class="nav-item nav-link" href="<?php echo $url;?>/administrador/seccion/jornada.php">Jornada</a>
<a class="nav-item nav-link" href="<?php echo $url;?>/administrador/seccion/jugadores.php">Jugadores</a>
<a class="nav-item nav-link" href="<?php echo $url;?>/administrador/seccion/tarjetas.php">Tarjetas</a>
<a class="nav-item nav-link" href="<?php echo $url;?>/administrador/seccion/goles.php">Goles</a>
<a class="nav-item nav-link" href="<?php echo $url;?>/administrador/seccion/Cerrar_sesion.php">Cerrar Sesión</a>
......
......@@ -13,9 +13,36 @@
$SQL2->execute();
$jugadoresequipo=$SQL2->fetchAll(PDO::FETCH_ASSOC);
$SQL1=$conexion->prepare("SELECT * FROM equipos");
$SQL1->execute();
$equipos=$SQL1->fetchAll(PDO::FETCH_ASSOC);
?>
<div class="col-md-4">
<table class="table table-bordered">
<thead>
<tr>
<th class="text-center">ID Equipo</th>
<th class="text-center">Equipo</th>
</tr>
</thead>
<tbody>
<?php foreach($equipos as $equipo) {?>
<tr>
<td class="text-center"><?php echo $equipo['id'] ?></td>
<td class="text-center"><?php echo $equipo['Nombre'] ?></td>
</tr>
<?php }?>
</tbody>
</table>
</div>
<div class="col-md-2">
<div class="card">
<div class="card-header">
<div class="card-header text-center">
Consultar Datos equipo
</div>
<div class="card-body">
......@@ -31,19 +58,19 @@
</div>
</form>
</div>
</div>
</div>
<div class="col-md-5">
</br>
<div class="col-md-3">
<div class="card">
<div class="card-header">
<div class="card-header text-center">
<?php foreach($datosequipo as $equipo) {?>
<?php echo $equipo['Nombre'] ?>
<?php }?>
</div>
<div class="card-body">
<?php foreach($datosequipo as $equipo) {?>
<div class="col-md-6">
<div class="col-md">
<img class="card-img-top" src="./img/.<?php echo $equipo['Imagen'] ?>" alt="">
</div>
<?php }?>
......@@ -51,20 +78,22 @@
</div>
</div>
<div class="col-md-7">
</br>
<div class="card">
<div class="card-header">
Jugadores
</div>
<div class="card-body">
<?php foreach($jugadoresequipo as $jugador) {?>
<div class="col-md-12">
<h3 class="text"><?php echo $jugador['Nombre'] ?></h3>
</div>
<?php }?>
</div>
</div>
<div class="col-md-3">
<table class="table table-bordered">
<thead>
<tr>
<th class="text-center">Jugadores</th>
</tr>
</thead>
<tbody>
<?php foreach($jugadoresequipo as $jugador) {?>
<tr>
<td class="text-center"><?php echo $jugador['Nombre'] ?></td>
</tr>
<?php }?>
</tbody>
</table>
</div>
<?php include("template/pie.php"); ?>
\ No newline at end of file
......@@ -6,22 +6,19 @@ include("administrador/config/bd.php");
$SQL->execute();
$listaEquipos=$SQL->fetchAll(PDO::FETCH_ASSOC);
?>
<div class="col-md-12">
<div class="card">
<div class="card-body">
<a name="" id="" class="btn btn-primary" href="/webapp/datosequipos.php?" role="button">Consultar más información</a>
</div>
</div></br>
</div>
?> <div class="target">
<div class="text-center">
<a class="btn btn-primary btn-lg btn-block" href="/webapp/datosequipos.php?" role="button">Consultar más información</a>
</div></br>
</div>
<?php foreach($listaEquipos as $equipo) {?>
<div class="col-md-3">
<div class="card">
<img class="card-img-top" src="./img/.<?php echo $equipo['Imagen'] ?>" alt="">
<div class="card-body">
<h4 class="card-title"><?php echo $equipo['Nombre'] ?></h4>
<h4 class="text-md-center"><?php echo $equipo['Nombre'] ?></h4>
</div>
</div></br>
</div>
......
<?php include("template/cabecera.php"); ?>
<div class="col-md-12">
<div class="jumbotron">
<h1 class="display-4">Bienvenido a la página InfoFutbol </h1>
<h1 class="display-4 text-center">Bienvenido a la página InfoFutbol </h1>
<hr class="my-2">
<p>Aquí podra consultar la siguiente información sobre equipos de 1ª División Española</p>
<p class="lead">
<p class="text-center">Aquí podra consultar la siguiente información sobre equipos de 1ª División Española</p>
<p class="text-center">
<a class="btn btn-primary btn-lg" href="/webapp/equipos.php" role="button">Equipos</a>
<a class="btn btn-primary btn-lg" href="/webapp/jornadas.php" role="button">Jornadas</a>
<a class="btn btn-primary btn-lg" href="/webapp/administrador/index.php" role="button">Identificarse</a>
......
......@@ -14,7 +14,7 @@
<div class="col-md-12">
<div class="card">
<div class="card-header">
<div class="card-header text-center">
Consultar Jornada
</div>
<div class="card-body">
......@@ -38,7 +38,7 @@
<div class="col-md-12">
<div class="card">
<div class="card-header">
<div class="card-header text-center">
JORNADA
<?php echo( $jornada); ?>
</div>
......@@ -49,16 +49,16 @@
<div class="col-md-12">
<table class="table table-bordered">
<thead>
<tr>
<th>EQUIPO LOCAL</th>
<th>EQUIPO VISITANTE</th>
<th>RESULTADO</th>
<tr>
<th class="text-center">EQUIPO LOCAL</th>
<th class="text-center">EQUIPO VISITANTE</th>
<th class="text-center">RESULTADO</th>
</tr>
</thead>
<tbody>
<?php foreach($listapartidos as $partido) {?>
<tr>
<td><?php $SQL2=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipoL ");
<td class="text-center"><?php $SQL2=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipoL ");
$SQL2->bindParam(':id_equipoL',$partido['id_equipoL']);
$SQL2->execute();
$listaLocales=$SQL2->fetchAll(PDO::FETCH_ASSOC);
......@@ -67,7 +67,7 @@
<?php echo $Local['Nombre'] ?>
<?php }?>
</td>
<td><?php $SQL3=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipoV ");
<td class="text-center"><?php $SQL3=$conexion->prepare("SELECT Nombre FROM equipos WHERE id = :id_equipoV ");
$SQL3->bindParam(':id_equipoV',$partido['id_equipoV']);
$SQL3->execute();
$listaLocales=$SQL3->fetchAll(PDO::FETCH_ASSOC);
......@@ -76,7 +76,7 @@
<?php echo $Local['Nombre'] ?>
<?php }?>
</td>
<td><?php echo($partido['golesL'])?> - <?php echo($partido['golesV'])?>
<td class="text-center"><?php echo($partido['golesL'])?> - <?php echo($partido['golesV'])?>
</td>
</tr>
<?php }?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment