<div class="actionbox"> <button type="submit" name="btnReservaPaso3" id="btnReservaPaso3" value="btnReservaPaso3"><span>Agregar Reserva</span></button> <button type="submit" name="btnImprimeReserva" id="btnImprimeReserva" ><span>Imprimir Reserva</span></button> </div> </div> </td> </tr> </table> </div> </form> <?php if (isset($btnReservaPaso3)) { //falta recuperar el id del cliente para que pueda reservar completamente $instancia->MantenimientoTDetalleTour('', $idreserva, $comboTourS, $comboGuia, $comboAgencia, $comboEndose, $PrecioEndoce, "I"); echo "<META HTTP-EQUIV=refresh CONTENT=\"1;URL=ReservaBoletoPaso2.php\">"; } ?> <div class="row"> <h1 align="center">Lista de Tour Comprados </h1> <div align="center"> <table width="767" border="1"> <tr> <th width="43" scope="col">Nro</th> <th width="70" scope="col">Eliminar</th> <th width="83" scope="col">Id. Tour</th> <th width="400" scope="col">Nombre del Tour</th> <th width="80" scope="col">Costo Referencial</th> </tr>
<?php session_start(); $instancia = new Cconexion(); $instancia->HacerConexion(); function __autoload($class_name) { include $class_name . '.php'; } if (!isset($_POST['productId'])) { exit; } /* No product id sent as input to this file */ $resultado = $instancia->mostrarTabla("TTOUR"); if ($_POST['productId']) { $i = 0; while ($fila = mysql_fetch_array($resultado)) { if ($_POST['productId'] == $fila[0]) { echo "{$fila['0']}|||{$fila['1']}|||{$fila['2']}"; $fi = mysql_fetch_array($instancia->ConsultaReserva($_SESSION['idcliente'])); $instancia->MantenimientoTDetalleTour("", $fi[0], $fila[0], "", "", "", "", "I"); } $i++; } }