Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('DEV_SERVER', false);
- if(isset($_POST['rdoTipo']) && !empty($_POST['rdoTipo'])){
- $Tipo = $_POST['rdoTipo'];
- }else{
- $Tipo = 'A';
- }
- if(isset($_POST['NombreH']) && !empty($_POST['NombreH'])){
- $NombreH = $_POST['NombreH'];
- }else{
- $NombreH = '';
- }
- if(isset($_POST['IdCajaA']) && is_numeric($_POST['IdCajaA']) && intval($_POST['IdCajaA'])>0){
- $IdCajaA = $_POST['IdCajaA'];
- }else{
- $IdCajaA = 1;
- }
- if(isset($_POST['IdHotel']) && is_numeric($_POST['IdHotel']) && intval($_POST['IdHotel'])>0){
- $IdCajaH = $_POST['IdHotel'];
- }else{
- $IdCajaH = 0;
- }
- if(isset($_POST['iPasajeros']) && is_numeric($_POST['iPasajeros']) && intval($_POST['iPasajeros'])>0){
- $iPasajeros = $_POST['iPasajeros'];
- }else{
- $iPasajeros = 0;
- }
- if($iPasajeros>=16 || $Tipo=='S'){
- $url = "specialg.php?iPa=".base64_encode($iPasajeros)."&sTy=".base64_encode('S');
- if($NombreH!=''){
- $url.="&na=".base64_encode(base64_encode($NombreH))."&t=".base64_encode(base64_encode($Tipo));
- }
- header("Location: ".$url);
- }
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Shuttle Reservation NiceRideCabo</title>
- <!-- Main css -->
- <link rel="stylesheet" href="css/style_prices.css">
- <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="js/cufon-yui.js" type="text/javascript"></script>
- <script src="js/cufon-replace.js" type="text/javascript"></script>
- <script src="js/Swis721_Lt_BT_400.font.js" type="text/javascript"></script>
- <script type="text/javascript" src="js/jquery.ui.core.min.js"></script>
- <script type="text/javascript" src="js/jquery.ui.widget.min.js"></script>
- <script type="text/javascript" src="js/jquery.ui.position.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- document.frmPrices.rdoTipo[0].focus();
- $('.rdoTipo').click(function(){
- TipoFocus();
- $("#iPasajeros").val(0);
- var tipo = $(this).val();
- $('#NombreH').attr("disabled","");
- switch(tipo){
- case 'A':
- if($("#IdHotel").val()==''){
- $('#NombreH').click();
- }else{
- $('#iPasajeros').focus();
- }
- $("#lyrMsgHotel").html('Please write down the name of the<br />place where you will be staying at.');
- break;
- case 'D':
- if($("#IdHotel").val()==''){
- $('#NombreH').click();
- }else{
- $('#iPasajeros').focus();
- }
- $("#lyrMsgHotel").html('Location where we will pick<br />you up to take you to the airport.');
- break;
- case 'S':
- $('#NombreH').val('');
- $("#IdHotel").val('');
- $('#NombreH').attr("disabled","disabled");
- $('#iPasajeros').focus();
- break;
- }
- });
- $('#NombreH').click(function(){
- $("#NombreH").select();
- HotelFocus();
- });
- $('#btnReset').click(function(){
- for(i=0;i<document.frmPrices.rdoTipo.length;i++){
- document.frmPrices.rdoTipo[i].checked=false;
- }
- $('#NombreH').val('');
- $('#IdHotel').val('');
- $("#bordeFocus").animate({ left:"-15px"},250);
- $('#lyrMsgRadios').show('slow');
- TipoFocus();
- });
- $('#iPasajeros').focus(function(){
- PasajerosFocus();
- });
- $("#iPasajeros").change(function(){
- var tipo = '';
- for(i=0;i<document.frmPrices.rdoTipo.length;i++){
- if(document.frmPrices.rdoTipo[i].checked==true){
- tipo = document.frmPrices.rdoTipo[i].value;
- }
- }
- if(tipo==''){
- $(this).val(0);
- $("#bordeFocus").animate({ left:"-15px"},250);
- $('#lyrMsgRadios').show('slow');
- TipoFocus();
- return;
- }
- if(tipo!='S' && $("#IdHotel").val()==''){
- $(this).val(0);
- HotelFocus();
- return;
- }
- $('#frmPrices').submit();
- });
- });
- function TipoFocus(){
- //$("#bordeFocus").animate({ left:"-15px"},250);
- //$('#lyrMsgRadios').show('slow');
- $('#lyrMsgHotel').hide('slow');
- $('#lyrMsgPasajeros').hide('slow');
- document.frmPrices.rdoTipo[0].focus();
- }
- function HotelFocus(){
- $("#bordeFocus").animate({ left:"185px"},1000);
- $('#lyrMsgRadios').hide('slow');
- $('#lyrMsgHotel').show('slow');
- $('#lyrMsgPasajeros').hide('slow');
- $("#iPasajeros").val(0);
- }
- function PasajerosFocus(){
- $("#bordeFocus").animate({ left:"371px"},1000);
- $('#lyrMsgRadios').hide('slow');
- $('#lyrMsgHotel').hide('slow');
- $('#lyrMsgPasajeros').show('slow');
- }
- function actualizaMapa(){
- $('#Mapa').attr("src","imagenes/img/zona"+$('#IdZonaH').val()+".jpg");
- }
- function fancyClick(id){
- $('#'+id).click();
- }
- </script>
- <script type="text/javascript" src="fancybox/jquery.mousewheel-3.0.2.pack.js"></script>
- <script type="text/javascript" src="fancybox/jquery.fancybox-1.3.1.js"></script>
- <link type="text/css" href="styles/jquery.ui.core.css" rel="stylesheet" />
- <link type="text/css" href="styles/jquery.ui.theme.css" rel="stylesheet" />
- <link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.1.css" media="screen" />
- <style type="text/css">
- .text2reser:hover {
- font-family: "Gill Sans MT";
- font-size: 18px;
- color: #FFF;
- text-align: center;
- }
- a:link {
- color: #52421D;
- text-decoration: none;
- }
- a:hover {
- color: #52421D;
- text-decoration: none;
- }
- body,td,th {
- color: #52421D;
- }
- a:visited {
- color: #52421D;
- text-decoration: none;
- }
- a:active {
- color: #52421D;
- font-size: 18px;
- text-decoration: none;
- }
- #apDiv1 {
- position:absolute;
- left:55px;
- top:264px;
- width:125px;
- height:105px;
- z-index:1;
- background-image: url(imagenes/img/sello.png);
- background-repeat: no-repeat;
- }
- </style>
- <script src="js/jquery.tooltip.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function() {
- var cache = {};
- $( "#NombreH" ).autocomplete({
- minLength: 1,
- source: function(request, response) {
- if ( request.term in cache ) {
- response( cache[ request.term ] );
- return;
- }
- $.ajax({
- url: "ajax_hoteles.php",
- dataType: "json",
- data: request,
- success: function( data ) {
- cache[ request.term ] = data;
- response( data );
- }
- });
- },
- select: function(event, ui) {
- $("#IdHotel").val(ui.item.id);
- $('#iPasajeros').focus();
- return;
- }
- });
- });
- $(document).ready(function() {
- $("a#thearch").fancybox({
- 'titlePosition' : 'over'
- });
- $("a#TheMarinaatPuertoLosCabos").fancybox({
- 'titlePosition' : 'over'
- });
- $("a#todossantos").fancybox({
- 'titlePosition' : 'over'
- });
- $("a#MarinaCaboSanLucas").fancybox({
- 'titlePosition' : 'over'
- });
- $("a#airport").fancybox({
- 'titlePosition' : 'over'
- });
- });
- $(function() {
- //$("map > area").tooltip({ positionLeft: false });
- $("#AreaTodosSantos").tooltip({ positionLeft: false,top:-40});
- $("#AreaArco").tooltip({ positionLeft: false,top:-40});
- $("#AreaAirport").tooltip({ positionLeft: false,top:-40});
- $("#AreaMarinaCabos").tooltip({ positionLeft: false,top:-40});
- $("#AreaMarinaPuerto").tooltip({ positionLeft: false,top:-40});
- $("#AreaWalmart").tooltip({ positionLeft: false,top:-40});
- $("#AreaCosco").tooltip({ positionLeft: false,top:-40});
- $("#AreaMega").tooltip({ positionLeft: false,top:-40});
- });
- function MM_preloadImages() { //v3.0
- var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
- var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
- if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
- }
- function MM_swapImgRestore() { //v3.0
- var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
- }
- function MM_findObj(n, d) { //v4.01
- var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
- d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
- if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
- for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
- if(!x && d.getElementById) x=d.getElementById(n); return x;
- }
- function MM_swapImage() { //v3.0
- var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
- if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
- }
- </script>
- </head>
- <!--Inicio Contenido -->
- <body>
- <div class="main">
- <div class="container">
- <div class="signup-content">
- <div class="signup-img">
- <img src="images/form-img.jpg" alt="">
- <div class="signup-img-content">
- </div>
- </div>
- <div class="signup-form">
- <form method="POST" class="register-form" id="register-form">
- <div class="form-row">
- <div class="form-group">
- <h1 style="text-align: center;">Private</h1>
- <?php
- if($IdCajaA>0 && $IdCajaH>0 && $iPasajeros>0){
- //$_SERVER['DOCUMENT_ROOT'] = " /home/juancar0/public_html";
- require_once($_SERVER['DOCUMENT_ROOT'].'/Clases/Tablas/cat_DeTarifas.php');
- $cat_DeTarifas = new cat_DeTarifas();
- $cat_DeTarifas->setIdOrigen($IdCajaA);
- $cat_DeTarifas->setIdDestino($IdCajaH);
- $aTarifas = $cat_DeTarifas->getLst();
- //$_SERVER['DOCUMENT_ROOT'] = " /home/juancar0/public_html";
- require_once($_SERVER['DOCUMENT_ROOT'].'/Clases/Registro/reg_lugares.php');
- //$_SERVER['DOCUMENT_ROOT'] = " /home/juancar0/public_html";
- require_once($_SERVER['DOCUMENT_ROOT'].'/Clases/Registro/reg_paquetes.php');
- //$_SERVER['DOCUMENT_ROOT'] = " /home/juancar0/public_html";
- require_once($_SERVER['DOCUMENT_ROOT'].'/Clases/Registro/reg_traslados.php');
- //$_SERVER['DOCUMENT_ROOT'] = " /home/juancar0/public_html";
- require_once($_SERVER['DOCUMENT_ROOT'].'/Clases/Registro/reg_autos.php');
- $ObjHotel = new reg_Lugares($IdCajaH);
- if(count($aTarifas)>0){
- ?>
- <center>
- <tr>
- <?php
- $arrAutoPaquete = array();
- $arrAutoPaqueteTraslado = array();
- $i2=0;
- foreach($aTarifas as $ta1){
- foreach($aTarifas as $ta2){
- if($ta2->getId_auto()==$ta1->getId_auto()){
- if(!in_array($ta1->getId_auto()."-".$ta2->getId_paquete(),$arrAutoPaquete)){
- $arrAutoPaquete[]=$ta1->getId_auto()."-".$ta2->getId_paquete();
- $oPaq = new reg_Paquetes($ta2->getId_paquete());
- if($ta2->getId_auto()==0 || ($ta2->getId_auto()==1 && ($iPasajeros>=1 && $iPasajeros<=6)) || ($ta2->getId_auto()==2 && ($iPasajeros>=7 && $iPasajeros<=15))){
- if($i2>0){
- ?>
- </div>
- <div class="form-group">
- <h1 style="text-align: center;">Shuttle</h1>
- <td width="20px"></td>
- <?php
- }#if($i2>0)
- ?>
- <td valign="top">
- <table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
- <tr>
- <td colspan="3" align="center"><img src="imagenes/img/auto<?php echo $ta2->getId_auto();?>.png" alt="" height="122" width="256" /></td>
- </tr>
- <tr>
- <td colspan="3" height="20px"></td>
- </tr>
- <!-- <tr height="35px">
- <td width="45px" align="right"><img src="imagenes/img/izq_<?php echo $ObjHotel->getId_zona();?>.png" height="35" alt="" /></td>
- <td width="100%" background="imagenes/img/centro_<?php echo $ObjHotel->getId_zona();?>.png" align="center" class="titulos" valign="middle"><font color="#625C1D" face="Georgia, Times New Roman, Times, serif"><?php echo $oPaq->getDescripcion();?></font></td>
- <td width="45px" align="left"><img src="imagenes/img/der_<?php echo $ObjHotel->getId_zona();?>.png" height="35" alt="" /></td>
- </tr>-->
- <tr>
- <td colspan="3" height="15px"></td>
- </tr>
- <?php
- $i3=0;
- foreach($aTarifas as $ta3){
- #if($Tipo=='A'){
- if($ta3->getId_paquete()==$ta2->getId_paquete() && $ta3->getId_auto()==$ta2->getId_auto()){
- if(!in_array($ta1->getId_auto()."-".$ta2->getId_paquete()."-".$ta3->getId_traslado(),$arrAutoPaqueteTraslado)){
- $arrAutoPaqueteTraslado[] = $ta1->getId_auto()."-".$ta2->getId_paquete()."-".$ta3->getId_traslado();
- $oTras = new reg_Traslados($ta3->getId_traslado());
- if($Tipo=='A' || ($Tipo=='D' && $oTras->getId()==1 )){
- if($i3>0){
- ?>
- <tr>
- <td colspan="3" height="10px"></td>
- </tr>
- <tr>
- <td colspan="3" bgcolor="#CFB53B" height="1px"></td>
- </tr>
- <tr>
- <td colspan="3"height="10px"></td>
- </tr>
- <?php
- }#if($i3>0)
- if (($iPasajeros<2)&&($ta3->getId_auto()==0)){
- if($oTras->getDescripcion()=='Round Trip'){}
- else{?>
- <tr>
- <td colspan="3" align="center"></td>
- </tr>
- <tr>
- <td <? if ($Tipo=='D'){?> height="100"<? }?>colspan="3" align="center" valign="middle">
- <br />
- <b>We have a minimum <br />of 2 passengers for our <br />shuttle transportation.</b>
- <br /></td>
- </tr>
- <tr>
- <td colspan="3"height="10px"></td>
- </tr>
- <tr>
- <td colspan="3" align="center" ></td>
- </tr>
- <?
- }
- }
- else{
- ?>
- <tr>
- <td colspan="3" align="center"><?php echo $oTras->getDescripcion();?> $ <?php echo number_format($ta3->getCosto(),2);?> USD</td>
- </tr>
- <tr>
- <td colspan="3" align="center"><?php if($ta3->getId_auto()==0){?>Total (X<?php echo $iPasajeros;?>) $ <?php echo number_format($iPasajeros*$ta3->getCosto(),2);?> USD<?php }else{?> <?php }?></td>
- </tr>
- <tr>
- <td colspan="3"height="10px"></td>
- </tr>
- <tr>
- <td colspan="3" class="backbuton" align="center" ><a href="reserve.php?id=<?php echo base64_encode($ta3->getId_tarifa());?>&iPasajeros=<?php echo base64_encode($iPasajeros);?>&Tipo=<?php echo base64_encode($Tipo);?>&car=<?php echo base64_encode($oPaq->getDescripcion());?>">Reserve now</a></td>
- </tr>
- <?php
- }
- $i3++;
- }
- }//if(!in_array($ta1->getId_auto()."-".$ta2->getId_paquete()."-".$ta3->getId_traslado(),$arrAutoPaqueteTraslado))
- }//if($ta3->getId_paquete()==$ta2->getId_paquete() && $ta3->getId_auto()==$ta2->getId_auto())
- #}
- }#foreach($aTarifas as $ta3)
- ?>
- </table>
- </td>
- <?php
- $i2++;
- }//if($iPasajeros==0 || ($ta2->getId_auto()==1 && ($iPasajeros>=1 && $iPasajeros<=6)) || ($ta2->getId_auto()==2 && ($iPasajeros>=7 && $iPasajeros<=15)))
- }#if(!in_array($ta1->getId_auto(),$arrAuto)){
- }#if($ta2->getId_auto()==$ta1->getId_auto()){
- }#foreach($aTarifas as $ta2)
- }#foreach($aTarifas as $ta1)
- ?>
- </tr>
- </table>
- </center>
- </div>
- </div>
- <?php
- }#if(count($aTarifas)>0)
- }#if($IdLugarO>0 && $IdLugarD>0 && $iPasajeros>0){
- ?>
- <br>
- <br>
- <div align="center">
- <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" style="margin-left: 0px;margin-right: 0px;">
- <tr height="35px">
- <h1 align="center" class="titulos" style="margin-top: 0px;margin-bottom: 0px;"><font color="#52421D" font size="5px" font weight="500" face="Poppins, sans-serif">Zone <?php echo $ObjHotel->getId_zona();?></font></h1>
- </tr>
- <tr>
- <td colspan="3" align="center" class="zonaimg"><img src="imagenes/img/zona<?php echo $ObjHotel->getId_zona();?>_.png" alt="" /></td>
- </tr>
- </table>
- </div>
- </div>
- <!--Fin de Contenido -->
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment