Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
Vista para listar la informacion de las tablas de la base de datos #3
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoparada18 committed Feb 10, 2016
1 parent ac1bfcc commit db211b6
Show file tree
Hide file tree
Showing 7 changed files with 235 additions and 1 deletion.
40 changes: 39 additions & 1 deletion views/docente/index.php
Original file line number Diff line number Diff line change
@@ -1 +1,39 @@
<h3>Vista del docente principal</h3>
<div class="box-principal">
<h3 class="text-center">Listado de Docentes</h3>
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">Listado de docentes</h3>
</div>
<div class="panel-body">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Cedula</th>
<th>Nombre</th>
<th>Apellido</th>
<th>Telefono</th>
<th>Correo</th>
<th>Usuario</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
<?php while($row = mysqli_fetch_array($datos)){ ?>
<tr>
<td><?php echo $row['cedula']; ?></td>
<td><?php echo $row['nombres']; ?></td>
<td><?php echo $row['apellidos']; ?></td>
<td><?php echo $row['telefono']; ?></td>
<td><?php echo $row['correo']; ?></td>
<td><?php echo $row['nombre_usuario']; ?></td>
<td>
<a class="btn btn-warning btn-sm" href="<?php echo URL; ?>docente/editar/<?php echo $row['cedula']; ?>">Editar</a>
<a class="btn btn-danger btn-sm" href="<?php echo URL; ?>docente/eliminar/<?php echo $row['cedula']; ?>">Eliminar</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
31 changes: 31 additions & 0 deletions views/funcion/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<div class="box-principal">
<h3 class="text-center">Listado de Funciones</h3>
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">Listado de funciones</h3>
</div>
<div class="panel-body">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Id</th>
<th>Descripcion</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
<?php while($row = mysqli_fetch_array($datos)){ ?>
<tr>
<td><?php echo $row['idFuncion']; ?></td>
<td><?php echo $row['funcion']; ?></td>
<td>
<a class="btn btn-warning btn-sm" href="<?php echo URL; ?>funcion/editar/<?php echo $row['idFuncion']; ?>">Editar</a>
<a class="btn btn-danger btn-sm" href="<?php echo URL; ?>funcion/eliminar/<?php echo $row['idFuncion']; ?>">Eliminar</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
31 changes: 31 additions & 0 deletions views/herramienta/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<div class="box-principal">
<h3 class="text-center">Listado de Herramientas</h3>
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">Listado de herramientas</h3>
</div>
<div class="panel-body">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Id</th>
<th>Descripcion</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
<?php while($row = mysqli_fetch_array($datos)){ ?>
<tr>
<td><?php echo $row['idHerramienta']; ?></td>
<td><?php echo $row['descripcion']; ?></td>
<td>
<a class="btn btn-warning btn-sm" href="<?php echo URL; ?>herramienta/editar/<?php echo $row['idHerramienta']; ?>">Editar</a>
<a class="btn btn-danger btn-sm" href="<?php echo URL; ?>herramienta/eliminar/<?php echo $row['idHerramienta']; ?>">Eliminar</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
31 changes: 31 additions & 0 deletions views/institucion/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<div class="box-principal">
<h3 class="text-center">Listado de Instituciones</h3>
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">Listado de instituciones</h3>
</div>
<div class="panel-body">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Id</th>
<th>Descripcion</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
<?php while($row = mysqli_fetch_array($datos)){ ?>
<tr>
<td><?php echo $row['idInstitucion']; ?></td>
<td><?php echo $row['descripcion']; ?></td>
<td>
<a class="btn btn-warning btn-sm" href="<?php echo URL; ?>institucion/editar/<?php echo $row['idInstitucion']; ?>">Editar</a>
<a class="btn btn-danger btn-sm" href="<?php echo URL; ?>institucion/eliminar/<?php echo $row['idInstitucion']; ?>">Eliminar</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
31 changes: 31 additions & 0 deletions views/municipio/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<div class="box-principal">
<h3 class="text-center">Listado de Municipios</h3>
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">Listado de municipios</h3>
</div>
<div class="panel-body">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Id</th>
<th>Municipio</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
<?php while($row = mysqli_fetch_array($datos)){ ?>
<tr>
<td><?php echo $row['idMunicipio']; ?></td>
<td><?php echo $row['municipio']; ?></td>
<td>
<a class="btn btn-warning btn-sm" href="<?php echo URL; ?>municipio/editar/<?php echo $row['idMunicipio']; ?>">Editar</a>
<a class="btn btn-danger btn-sm" href="<?php echo URL; ?>municipio/eliminar/<?php echo $row['idMunicipio']; ?>">Eliminar</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
39 changes: 39 additions & 0 deletions views/plantel/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<div class="box-principal">
<h3 class="text-center">Listado de Planteles</h3>
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">Listado de planteles</h3>
</div>
<div class="panel-body">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Plantel</th>
<th>Dirección</th>
<th>Municipio</th>
<th>Director</th>
<th>Telefono</th>
<th>Correo</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
<?php while($row = mysqli_fetch_array($datos)){ ?>
<tr>
<td><?php echo $row['nombrePlantel']; ?></td>
<td><?php echo $row['direccion']; ?></td>
<td><?php echo $row['municipio']; ?></td>
<td><?php echo $row['nombre_director']; ?></td>
<td><?php echo $row['telefono']; ?></td>
<td><?php echo $row['correo']; ?></td>
<td>
<a class="btn btn-warning btn-sm" href="<?php echo URL; ?>plantel/editar/<?php echo $row['idPlantel']; ?>">Editar</a>
<a class="btn btn-danger btn-sm" href="<?php echo URL; ?>plantel/eliminar/<?php echo $row['idPlantel']; ?>">Eliminar</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
33 changes: 33 additions & 0 deletions views/usuario/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<div class="box-principal">
<h3 class="text-center">Listado de Usuarios</h3>
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">Listado de usuarios</h3>
</div>
<div class="panel-body">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Id</th>
<th>Usuario</th>
<th>Tipo de Usuario</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
<?php while($row = mysqli_fetch_array($datos)){ ?>
<tr>
<td><?php echo $row['idUsuario']; ?></td>
<td><?php echo $row['user']; ?></td>
<td><?php echo $row['tipo_usuario']; ?></td>
<td>
<a class="btn btn-warning btn-sm" href="<?php echo URL; ?>usuario/editar/<?php echo $row['idUsuario']; ?>">Editar</a>
<a class="btn btn-danger btn-sm" href="<?php echo URL; ?>usuario/eliminar/<?php echo $row['idUsuario']; ?>">Eliminar</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>

0 comments on commit db211b6

Please sign in to comment.