Professional Documents
Culture Documents
Trabajo 5 Taller Web
Trabajo 5 Taller Web
viajes
<html>
<head>
<meta charset="UTF-8">
<link href="../css/bootstrap.css" rel="stylesheet" type="text/css"/>
<title>Rutas</title>
</head>
<body>
<?php
include_once './fragmento/Header.php';
include_once '../controlador/Negocio.php';
$obj = new Negocio();
?>
<div class="container">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>RutCod</th>
<th>Ruta</th>
<th>Imagen</th>
<th>Ver</th>
</tr>
</thead>
<tbody>
<?php
foreach ($obj->ListaRutas() as $k => $d) {
echo "<tr><td>$d[0]<td>$d[1] ";
echo "<td><img src='../turismo/$d[1].jpg' width='220px;' height='120px;'>";
?>
<td>
<form action="../controlador/Control.php" method="post">
<input type="hidden" value="<?= $d[0] ?>" name="code" >
<input type="hidden" value="<?= $d[1] ?>" name="picture" >
<input type="hidden" name="accion" value="guardar_ruta">
<button class="btn btn-success">Viajes</button>
</form>
<?php
}
?>
</tbody>
</table>
</div>
</body>
</html>
2) <html>
<head>
<meta charset="UTF-8">
<link href="../css/bootstrap.css" rel="stylesheet" type="text/css"/>
<title>Detalle</title>
</head>
<body>
<?php
include_once './fragmento/Header.php';
include_once '../controlador/Negocio.php';
$obj = new Negocio();
session_start();
?>
<div class="container">
<h3>Ruta : <?= $_SESSION["img"] ?></h3>
<div class="container">
<center>
<img src="../turismo/<?= $_SESSION["img"] ?>.jpg" class="responsive-img">
<br><br>
<a href="PagRuta.php" style="color:black" class="btn">Regresar</a>
</center>
</div>
Choferes
<html>
<head>
<meta charset="UTF-8">
<link href="../css/bootstrap.css" rel="stylesheet" type="text/css"/>
<title>Chofer</title>
</head>
<body>
<?php
include_once './fragmento/Header.php';
include_once '../controlador/Negocio.php';
$obj = new Negocio();
?>
<div class="container">
<center>
<h3 style="color:blue"><strong>LISTA DE CHOFERES</strong></h3>
</center>
<table style="text-align: center;" class="table table-striped table-bordered">
<tr>
<th>Codigo</th>
<th>Nombre</th>
<th>Fec. Ingreso</th>
<th>Categoria</th>
<th>Foto</th>
<th>Ver</th>
</tr>
</thead>
<?php
foreach ($obj->listaChofer() as $k => $d) {
echo "<tr><td>$d[0]<td>$d[1]<td>$d[2]<td>$d[3] ";
?>
<td>
<img src="../choferes/<?= $d[0] ?>.jpg" width="100px">
</td>
<td>
<form method="post" action="PagViajeChofer.php">
<input type="hidden" name="code" value="<?= $d[0] ?>">
<input type="hidden" name="nome" value="<?= $d[1] ?>">
<button class="btn btn-success">Viajes</button>
</form>
</td>
<?php
}
?>
</table>
</div>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<link href="../css/bootstrap.css" rel="stylesheet" type="text/css"/>
<title>Viajes Chofer</title>
</head>
<body>
<?php
include_once './fragmento/Header.php';
include_once '../controlador//Negocio.php';
$obj = new Negocio();
$code = $_POST["code"];
$nome = $_POST["nome"];
?>
<div class="container">
<br>
<a href="PagChoferes.php" class="btn">Regresar</a>
<h3><strong>Viajes realizados por :</strong></h3>
<h4>Chofer : <?= $nome ?></h4>
</tr>
</thead>
<?php
foreach ($obj->listaDetalleChofer($code) as $k => $d) {
echo "<tr><td>$d[0]<td>$d[1]<td>$d[2]<td>$d[3] ";
}
?>
</table>
</div>
</body>
</html>