public function EnviarCorreo($Email, $Nombre, $Apellido, $Fecha, $Precio, $TablaDatos) { $Render = new Visual(); $Mensaje = "<p><center><strong>Cordial saludo {$Nombre} {$Apellido}</center></strong></p>\n\n <p>Debido a la cotización que realizo el {$Fecha} hemos establecido una \n tarifa que le puede agradar \$({$Precio}). Cualquier duda cuente\n con nosotros.</p><br/>"; $Tabla = $Render->Tabla($TablaDatos); $Mensaje .= $Tabla; echo $Mensaje; }
<?php include_once '../Controller/Cotizar.php'; include_once '../Controller/Visual.php'; $Cotizar = new Cotizar(); $Render = new Visual(); $Res = $Cotizar->VerCabCotizacion(); $Res = $Render->FunctionTable($Res, 0, 'VerDetalle', 'images/lapiz.png'); echo $Render->Tabla($Res, '', array('#', 'Ver', 'Nombre', 'Apellido', 'Email', 'Telefono', 'Fecha de pedido', 'Fecha para viaje', 'Descripción', 'Valor estimado'), 'table', '', TRUE);
</div> <div class="row"> <div class="col-lg-2"> <label from="Proveedor">Seleccione una cantidad</label> </div> <div class="col-lg-10"> <input type="number" class="form-control" required="required" id="cantidad" name="cantida" placeholder="que cantidad desea cotizar"/> </div> </div> <div class="row"> <div class="col-lg-2"> <label from="Precio">Ingrese el precio autorizado</label> </div> <div class="col-lg-10"> <input type="number" class="form-control" required="required" id="precio" name="precio" placeholder="Ingrese el precio autorizado"/> </div> </div> <input type="hidden" name="CodCabCotizacion" id="CodCabCotizacion" value="' . $id_cotizacion . '"/> <div class="row"> <div class="col-lg-12"> <center><button class="btn btn-success" onclick="GuardarCotizacion(' . $id_cotizacion . ')">Agregar</button></center> </div> </div> </form> </div> </div> <script>$("#ArmarCotizaciones").submit(false);</script>'; echo $Form; echo $Render->Tabla($Datos, '', array('#', 'Proveedor', 'Servicio', 'Cantidad', 'Precio unitario', 'Precio Total'), 'table table-hover', '', 1);
<?php include_once '../Controller/Servicios.php'; include_once '../Controller/Visual.php'; $Render = new Visual(); $Ser = new Servicios(); $id_proveedor = $_POST['id_proveedor']; $res = $Ser->VerServiciosProveedor($id_proveedor); $res = $Render->FormatoTable($res); $res = $Render->FunctionTable($res, 0, 'Editar', 'images/lapiz.png'); echo $Render->Tabla($res, '1', array('#', 'Editar', 'Servicio', 'Estado', 'Disponible'), "table table-hover", '', true);
<?php include_once '../Controller/Servicios.php'; include_once '../Controller/Visual.php'; $render = new Visual(); $Paquete = new Servicios(); $id_paquete = $_POST['id']; $Paqueteinfo = $Paquete->VerDescripcionPaquete($id_paquete); $Titulo = strtoupper('<center>' . $Paqueteinfo['Nombre'] . ' - $' . number_format($Paqueteinfo['Valor']) . '</center>'); $Detalle = $Paqueteinfo['Descripcion']; $PaqueteDetalle = $Paquete->ServiciosXPaquete($id_paquete); $PaqueteDetalle = $render->FormatoTable($PaqueteDetalle); $PaqueteDetalle = $render->Tabla($PaqueteDetalle, '1', array('Servicio', 'Precio unitario', 'Proveedor', 'Direccion', 'Telefono', 'Email', 'Cantidad', 'Valor con paquete'), 'table'); $Botones = '<button type="button" class="btn btn-primary">Comprar</button>'; $Botones .= '<button type="button" class="btn btn-success">Cotizar</button>'; $Botones .= '<button type="button" class="btn btn-danger" data-dismiss="modal">Salir</button>'; $Datos = array('Titulo' => $Titulo, 'Contenido' => $Detalle . '<br/><h1>Servicios</h1>' . $PaqueteDetalle . '<br/>', 'Botones' => $Botones); echo json_encode($Datos);
<?php include_once '../Controller/Cotizar.php'; include_once '../Controller/Visual.php'; $cotizar = new Cotizar(); $Render = new Visual(); $id_cotizacion = $_POST['id']; $Res = $cotizar->VerCotizacionEdit($id_cotizacion); $Res = $Render->FormatoNumerico($Res, 4, '$', 0, '.', ','); $Total = $cotizar->Total($id_cotizacion); $Datos = $Render->Tabla($Res, '', array('#', 'Proveedor', 'Servicio', 'Cantidad', 'Valor', 'Valor total'), 'table', '', true); echo json_encode(array('Datos' => $Datos, 'Total' => 'Precio estimado $' . number_format($Total, 0, '.', ',')));
<?php include_once '../Controller/Reserva.php'; include_once '../Controller/Visual.php'; $Render = new Visual(); $Reserva = new Reserva(); $Datos = $Reserva->VerReservasHechas(); $Datos = $Render->FunctionTable($Datos, '', 'editar', 'images/lapiz.png'); $Datos = $Render->FormatoNumerico($Datos, 4, '$', 0); echo $Render->Tabla($Datos, '', array('#', 'Ver', 'Cliente', 'Email', 'Telefono', 'Precio', 'Fecha', 'Estado', 'Pago', 'Tipo'), 'table table-hover', '', 1);
<?php include_once '../Controller/Reserva.php'; include_once '../Controller/Visual.php'; $Reserva = new Reserva(); $Render = new Visual(); $Datos = $Reserva->VerReservaHecha($_POST['id']); $Detalle = $Datos['Detalle']; $Cab = $Datos['Cab']; echo '<strong>Nombre</strong>:' . $Cab['Nombre'] . '<br>'; echo '<strong>Email</strong>:' . $Cab['Email'] . '<br>'; echo '<strong>Telefono</strong>:' . $Cab['Telefono'] . '<br>'; echo '<strong>valor</strong>:$' . number_format($Cab['valor'], 0, '.', ',') . '<br>'; echo '<strong>Tipo de pago</strong>:<select name="tipopago" id="tipopago"><option value="efectivo">Efectivo</option><option value="Tarjetadebido">Tarjeta de debito</option><option value="credito">Tarjeta de crédito</option><option value="cheque">cheque</option><option value="transferencia">Transferencia bancaria</option></select><br>'; echo '<div class="modal-footer">'; echo '<center><button class="btn btn-danger" onclick="Cargar()">Regresar</button>'; if ($Cab['Pago'] != 'Pago') { echo '<button class="btn btn-success" onclick="Pagar()">Confirmar pago</button></center>'; } echo '</div>'; echo '<input type="hidden" value="' . $_POST['id'] . '" id="cod" name="cod">'; echo $Render->Tabla($Detalle, '', array('#', 'Servicio', 'Proveedor', 'Direccion', 'Telefono', 'Cantidad', 'Valor unitario'), 'table table-hover', '', 1);
<?php if (isset($_POST['Paquetes'])) { include_once '../Controller/Servicios.php'; include_once '../Controller/Visual.php'; $Render = new Visual(); $Servicios = new Servicios(); $id_paquete = $_POST['Paquetes']; echo '<pre>'; $Datos = $Render->FormatoSelect($Servicios->VerServiciosEditDelete($id_paquete)); /* $Datos=$Render->FormatoNumerico($Datos,'6','',0); $Datos=$Render->FormatoNumerico($Datos,'7','$',0); * */ $Datos = $Render->FormatoNumerico($Datos, '9', '$', 0); $En = array('#', 'Editar', 'Eliminar', 'Servicio', 'Precio', 'Proveedor', 'Direccion', 'Telefono', 'Email', 'incluidos', 'Valor'); echo $Render->Tabla($Datos, '', $En, 'table', '', TRUE); }
<?php include_once '../Controller/Reserva.php'; include_once '../Controller/Visual.php'; $Render = new Visual(); $reservas = new Reserva(); $id = $_POST['id']; $Datos = $reservas->VerdetalleReserva($id); $Datos = $Render->FormatoNumerico($Datos, 4, '$', 0); $Datos = $Render->FormatoNumerico($Datos, 5, '$', 0); $Cab = $reservas->DatosReserva($id); echo '<a href="javascript:imprimir(1)"><img src="images/imp.gif"/></a><br/>'; echo '<strong>Valor:</strong>$' . number_format($Cab['valor']) . '<br>'; echo '<strong>Proveedor:</strong>' . $Cab['Nombre'] . '<br>'; echo $Render->Tabla($Datos, '', array('#', 'Descripcion', 'Servicio', 'Fecha de reserva', 'Cantidad', 'Valor unitario', 'Valor total'), 'table table-hover', '', 1);
<?php include_once '../Controller/Proveedor.php'; include_once '../Controller/Visual.php'; $Render = new Visual(); $Ver = new Proveedor(); $List = $Ver->VerProveedoresActivosInactivos(); $List = $Render->FormatoTable($List); $List = $Render->FunctionTable($List, 0, 'Ver', 'images/lapiz.png'); $List = $Render->FunctionRecortarTexto($List, 7, 30); $Tabla = $Render->Tabla($List, '', array('Editar', 'Estado', 'Activar<br/>Quitar', 'Proveedor', 'Teléfono', 'Email', 'Nit', 'Código', 'Descripcion'), 'table table-hover'); echo $Tabla;
$Ser = $servicios->ServiciosXPaquete($id_paquete); $Ser = $Render->FormatoTable($Ser); $Ser = $Render->FormatoNumerico($Ser, '1', '$'); $Ser = $Render->FormatoNumerico($Ser, '7', '$'); echo '<div class="row"> <div class="col-lg-12" id="reserva"> <div class="panel panel-default"> <div class="panel-heading"> <h4>' . $Res['Nombre'] . '</h4> </div> <div class="panel-body"> Precio: <strong>$' . $Res["Valor"] . '</strong> <br/> Fecha de inicio: <strong>' . $Res["Fecha_inicio"] . '</strong> <br/> Fecha de fin: <strong>' . $Res["Fecha_fin"] . '</strong> <br/> Municipio: <strong>' . $Res["nombreMunicipio"] . '</strong> <br/> <h3>' . $Res["Descripcion"] . '</h3> <br/> <button class="btn btn-primary" onclick="Reservar()">Reservar</button> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> <h4>Servicios y proveedores</h4> </div> <div class="panel-body">'; echo $Render->Tabla($Ser, '1', array('#', 'servicio', 'Precio unitario', 'Proveedor', 'Direccion', 'Telefono', 'Email', 'Cantidad', 'Precio paquete'), 'table table-hover', '', 1); echo '</div>'; echo '</div>'; echo '</div>'; }
<?php include_once '../Controller/Reserva.php'; include_once '../Controller/Visual.php'; $Render = new Visual(); $Pagos = new Reserva(); extract($_POST); if ($id_proveedores == 0) { $id_proveedores = ''; } $Datos = $Pagos->VerReservasPagasProveedores($FechaInicio, $FechaFin, $id_proveedores); $V = 0; for ($i = 0; $i < count($Datos); $i++) { $V = $V + $Datos[$i]['valor']; } echo '<center><h1>Total: $' . $V . '</h1></center>'; $Datos = $Render->FunctionTable($Datos, '0', 'imprimir', 'images/imp.gif'); $Datos = $Render->FunctionTable($Datos, '1', 'Detalle', 'images/lapiz.png'); echo $Render->Tabla($Datos, '', array('#', 'Imprimir', 'Ver', 'Proveedor', 'Fecha de pedido', 'valor', 'Tipo'), 'table table-hover', '', true);
<?php include_once '../Controller/Cotizar.php'; include_once '../Controller/Visual.php'; $Render = new Visual(); $cot = new Cotizar(); $Servicios = $_POST["Servicios"]; $cantidad = $_POST["cantida"]; $CodCabCotizacion = $_POST["CodCabCotizacion"]; $id = $cot->DetalleCotizacion($Servicios, $cantidad, $CodCabCotizacion); $Res = $cot->VerCotizacion($CodCabCotizacion); echo '<h1 align="center">Precio $' . number_format($cot->Total($CodCabCotizacion), 0, ',', '.') . '</h1><br/>'; $Res = $Render->FormatoNumerico($Res, 3, '$', 0); $Res = $Render->FormatoNumerico($Res, 4, '$', 0); echo $Render->Tabla($Res, '', array('#', 'Proveedor', 'Servicio', 'Cantidad', 'Valor unitario', 'Valor total'), 'table', '', TRUE);
<?php include_once '../Controller/Servicios.php'; include_once '../Controller/Visual.php'; $Paquetes = new Servicios(); $Render = new Visual(); $Datos = $Render->FormatoSelect($Paquetes->VerPaquetes()); $Datos = $Render->img($Datos, 8, 'img-responsive'); $Datos = $Render->EliminarRegistro($Datos, 9); $Datos = $Render->EliminarRegistro($Datos, 9); $Datos2 = NULL; foreach ($Datos as $Temp) { $url = 'CargarFotos.php?id=' . $Temp[0]; $Temp[] = '<script></script>' . '<form method="post" action="' . $url . '" enctype="multipart/form-data">' . '<input type="file" name="image" id="image" >' . '<button onclick="CargarFoto(' . $Temp[0] . ')">' . '<img src="images/upload.png">' . '</button>' . '</form>'; $Datos2[] = $Temp; } $Datos = $Datos2; $Datos = $Render->GenerarLinkRegistro($Datos, 0, 'images/lapiz.png', 'ver_paquetes.html?id'); $Datos = $Render->FunctionTable($Datos, 2, 'Bloquear', 'images/x.png'); $Datos = $Render->FormatoNumerico($Datos, 3, '$', 0, '.', ','); $enc = array('Ver', 'Nombre', 'Deshabilitar', 'Valor', 'Fecha inicio', 'Fecha fin', 'Municipio', 'Descripcion', 'Foto', 'Cambiar imagen'); echo $Render->Tabla($Datos, '', $enc, "table table-striped");