$nombre_archivo = $_SERVER['SCRIPT_NAME'];
if ( strpos($nombre_archivo, '/') !== FALSE )
$nombre_archivo = preg_replace('/\.php$/', '' ,array_pop(explode('/', $nombre_archivo)));
$diahoy = date("j"); // dia en numero del mes
$dia = date("w"); // numero del dia de la semana
$moneda="USD";
$detallemoneda="Dólares Americanos";
require_once('__fha_config/_abrirbd.php');
$sqldesc="SELECT dia, descuento FROM `descuentos` WHERE dia=$diahoy"; # trae porcentaje de descuento aplicado para hoy
if (isset($_POST["precio"])) {
if ($_POST["precio"]==1) { $ordenprecio="ASC"; } else { $ordenprecio="DESC"; }
} else {
$ordenprecio="ASC";
}
if (isset($_POST["tiporeserva"])) {
$tiporeserva=$_POST["tiporeserva"];
$bloqueando=$_POST["tiporeserva"];
} else {
$sqldefault="SELECT clave, inicial FROM `destinos` WHERE inicial='s'"; # trae precios y detalle de tours
mysql_select_db(SQL_DB);
$rsdefault=mysql_query($sqldefault) or die(mysql_error());
$rowdefault=mysql_fetch_array($rsdefault);
$tiporeserva = $rowdefault['clave'];
$bloqueando = $rowdefault['clave'];
}
$sqltours="SELECT * FROM `inventario` WHERE clasificacion='1' and activo='s' and (destino1='$tiporeserva' or destino2='$tiporeserva' or destino3='$tiporeserva' or destino4='$tiporeserva' or destino5='$tiporeserva' or destino6='$tiporeserva' or destino7='$tiporeserva' or destino8='$tiporeserva' or destino9='$tiporeserva') ORDER BY precioa $ordenprecio"; # trae precios y detalle de tours
$sqltipodecambio="SELECT moneda, tipodecambio FROM `moneda`"; # tipo de cambio, posicion de valores fijos
$bloquear="selected='selected'";
mysql_select_db(SQL_DB);
$rsdesc=mysql_query($sqldesc) or die(mysql_error());
$rstours=mysql_query($sqltours) or die(mysql_error());
$rowdesc=mysql_fetch_array($rsdesc);
$dhoy = $rowdesc['descuento']; # trae porcentaje de descuento aplicado para hoy
$rstipodecambio=mysql_query($sqltipodecambio) or die(mysql_error());
$rowtipodecambio=mysql_fetch_array($rstipodecambio); # valor USD
$valorusd1=$rowtipodecambio['moneda'];
$valorusd2=$rowtipodecambio['tipodecambio'];
$rowtipodecambio=mysql_fetch_array($rstipodecambio); # valor MXN
$valormxn1=$rowtipodecambio['moneda'];
$valormxn2=$rowtipodecambio['tipodecambio'];
$rowtipodecambio=mysql_fetch_array($rstipodecambio); # valor EUR
$valoreur1=$rowtipodecambio['moneda'];
$valoreur2=$rowtipodecambio['tipodecambio'];
?>
echo strtoupper($rowindex['titulo']); ?>
Sus próximas Experiencias: | Precios: USD | Días de Operación | ||||||||
Adultos $ | Junior $ | Niños $ | L | M | M | J | V | S | D | |
echo $rowtours['titulo']; ?> Pick Up: echo $rowtours['pickup']; ?> Hora Salida: echo $rowtours['horarios']; ?> | Hora Regreso: echo $rowtours['horarior']; ?> |
echo number_format($rowtours['precioa'], 2 , "." , ","); ?> |
echo number_format($rowtours['precioj'], 2 , "." , ","); ?> |
Gratis 0- echo ($rowtours['edadjuniori']-1); ?> años |
if ($rowtours['lun']=="X") { ?> } else { ?> } ?> | if ($rowtours['mar']=="X") { ?> } else { ?> } ?> | if ($rowtours['mie']=="X") { ?> } else { ?> } ?> | if ($rowtours['jue']=="X") { ?> } else { ?> } ?> | if ($rowtours['vie']=="X") { ?> } else { ?> } ?> | if ($rowtours['sab']=="X") { ?> } else { ?> } ?> | if ($rowtours['dom']=="X") { ?> } else { ?> } ?> |
|