Centrado de texto e imagenes

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