<?php include_once "../../login/check.php"; $codreserva = $_GET['c']; include_once "../../class/reserva.php"; $reserva = new reserva(); $res = $reserva->mostrarTodoRegistro("codreserva=" . $codreserva); $res = array_shift($res); include_once "../../class/servicio.php"; $servicio = new servicio(); $ser = $servicio->mostrarTodoRegistro("", "1", "titulo"); include_once "../../class/color.php"; $color = new color(); $col = $color->mostrarTodoRegistro("", 1, "descripcion"); include_once "../../class/diseno.php"; $diseno = new diseno(); $dis = $diseno->mostrarTodoRegistro("", 1, "descripcion"); include_once "../../class/flores.php"; $flores = new flores(); $flo = $flores->mostrarTodoRegistro("", 1, "descripcion"); include_once "../../class/globos.php"; $globos = new globos(); $glo = $globos->mostrarTodoRegistro("", 1, "descripcion"); $folder = "../../"; include_once $folder . "cabecerahtml.php"; ?> <script language="javascript" type="text/javascript"> $(document).on("ready",function(){ $(document).on("change","[name=total],[name=acuenta],[name=saldo]",function(e){ var total=parseFloat($("[name=total]").val()); var acuenta=parseFloat($("[name=acuenta]").val());
include_once "../../class/reserva.php"; $reserva = new reserva(); $CodAlumno = $_POST['CodAlumno']; ?> <table class="table table-striped table-hover table-bordered"> <thead> <tr><th>N</th><th><?php echo $idioma['MontoReserva']; ?> </th><th><?php echo $idioma['FechaReserva']; ?> </th></tr> </thead> <?php foreach ($reserva->mostrarTodoRegistro("CodAlumno={$CodAlumno}") as $r) { $i++; ?> <tr><td><?php echo $i; ?> </td><td><?php echo $r['MontoReserva']; ?> </td><td><?php echo fecha2Str($r['FechaRegistro']); ?> </td><td><a href="#" class="btn btn-mini eliminar" rel="<?php echo $r['CodReserva']; ?> ">X</a></td></tr>
<?php $cantidadmaxima = 0; $FechaEvento = $_POST['FechaEvento']; include_once "class/reserva.php"; $reserva = new reserva(); $res = $reserva->mostrarTodoRegistro("estado='Confirmado' and fechaevento='{$FechaEvento}'"); if (count($res) > $cantidadmaxima) { ?> <div class="alert alert-danger"><small>Personal no Disponible para esta fecha</small></div> <script>$("#botonenviar").attr("disabled","disabled")</script> <?php } else { ?> <div class="alert alert-success"><small>Personal Disponible para esta fecha</small></div> <script>$("#botonenviar").removeAttr("disabled")</script> <?php }
<?php include_once "../../class/reserva.php"; $reserva = new reserva(); extract($_POST); $res = $reserva->mostrarTodoRegistro("fechaevento='{$fechaevento}' and nombrecliente LIKE '{$nombrecliente}%' and estado LIKE '{$estado}' and tipo LIKE '{$tipo}'", 1, ""); ?> <table class="table table-bordered table-striped table-hover"> <thead> <tr><th>Nº</th><th>Fecha Evento</th><th>Hora Evento</th><th>Nro Invitados</th><th>Nombre Cliente</th><th>C.I. Cliente</th><th>Telefono Cliente</th><th>Total</th><th>A Cuenta</th><th>Saldo</th><th>Estado</th><th>Tipo Evento</th><th>Personal</th><th></th></tr> </thead> <?php foreach ($res as $r) { $i++; switch ($r['estado']) { case "Pendiente": $estado = "danger"; break; case "Confirmado": $estado = "success"; break; } ?> <tr> <td class="der"><?php echo $i; ?> </td> <td><?php echo date("d-m-Y", strtotime($r['fechaevento'])); ?>