[an error occurred while processing this directive] [an error occurred while processing this directive] <% '_______TITULO DE PAGINA_____________________ Dim title '_______EL PAGINADO BUSQUEDA DEBE SER MULTIPLO DE TRES____________________________________________________________________ PaginadoBusqueda=5 '____________________________________________________________ PaginadoApartamentos=5 if cookieidioma=1 then%>
INGLES APARTAMENTOS HOTELES ESTANCIAS OTRAS ALTERNATIVAS
ESCRIBA UNA PALABRA
 
 
CAPACIDAD
ZONAS
  DESDE   HASTA   MOSTRAR  
           
"" then%>left<%else%>center<%end if%>"rowspan="2" valign="top" bgcolor="#FFFFFF"> <%else %>
ESPAÑOL APARTMENTS HOTELS COUNTRY HOUSES OTHER ALTERNATIVES
  FIND
 
  CAPACITY   ZONES   FROM  
TO
  AVAILABILITY SHOW  
 
           
"" then%>left<%else%>center<%end if%>"rowspan="2" valign="top" bgcolor="#FFFFFF"> <%end if%> <% dim IdZona, IdAmbiente, IdDisponibilidad dim capacidad, Zona, Disponibilidad dim RsBuscar if Request.Querystring("Accion")&"" = "Buscar" then session("strdesde")="" session("strhasta")="" end if IdAmbiente=Request.form("CboCapacidad") IdZona=Request.form("CboZona") if IdAmbiente&""="" then idambiente=null end if if IdAmbiente=4 then IdAmbiente= null end if if IdZona="0" then IdZona= null end if if request.QueryString("Cod")<>"" then IdZona=request.QueryString("Cod") end if '__El CBOCAPACIDAD TIENE VALUES DESDE 4____________________________ if IdAmbiente ="4" then IdAmbiente= null end if strDesde= request.Form("HideDesde") & "" strHasta= request.Form("HideHasta") & "" strVer= request.Form("cboMostrar") & "" 'response.write("HOLSADKLFKAFHFKAHJDSFLHJDSFDSA") if strDesde&""="" then strDesde=session("strDesde") end if if strHasta&""="" then strHasta=session("strHasta") end if if strVer&""="" then strver=session("strver") end if if Request.Querystring("Accion")="Buscar" then session("strDesde")=strDesde session("strHasta")=StrHasta session("strver")=strVer end if '______PARA EL RESULTADO BUSQUEDA________________________________________________________________________________________ Dim IdAmbienteBusqueda, IdZonaBusqueda IdAmbienteBusqueda=IdAmbiente IdZonaBusqueda=IdZona if Request.querystring("IdAmbiente")&""<>"" then IdAmbiente=Request.querystring("IdAmbiente") IdAmbienteBusqueda=IdAmbiente end if if Request.querystring("IdZona")&""<>"" then IdZona=Request.querystring("IdZona") IdZonaBusqueda=IdZona end if '_________________________________________________________________________________________-- Dim DesdeAnio, DesdeMes, DesdeDia Dim HastaAnio, HastaMes, HastaDia Dim FechaDesde, FechaHasta FechaDesde = strDesde & "" FechaHasta = strHasta & "" if FechaDesde = "" and FechaHasta <> "" then FechaDesde = date end if If FechaDesde <> "" then 'Hay que invertir dia por mes DesdeAnio=Year (FechaDesde) DesdeMes =Month(FechaDesde) DesdeDia =Day(FechaDesde) 'DesdeMes =Month(FechaDesde) 'DesdeDia =Day (FechaDesde) else DesdeAnio=Null DesdeMes =Null DesdeDia =Null end if if FechaHasta <> "" then 'Hay que invertir dia por mes HastaAnio = Year (FechaHasta) HastaMes = Month(FechaHasta) HastaDia = Day (FechaHasta) 'HastaMes =Month(FechaHasta) 'HastaDia =Day (FechaHasta) else HastaAnio=Null HastaMes =Null HastaDia =Null end if if not isNull(strVer) then if cstr(strVer) = "0" then strVer=null end if end if 'Recordset de Retorno Dim RsDepartamento 'response.Write(lngAmbiente & "," & lngZona & "," & CookieIdioma) 'response.Flush() Dim Sql if IdZona = "" then IdZona = null if IdAmbiente = "" then IdAmbiente = null if strDesde = "" then strDesde = null if strHasta = "" then strHasta = null if strVer = "" then strVer = null 'if IdTipoApartamento = "" then IdTipoApartamento= NULL '________________________________________________________________________________________- '___________A CONSIDERAR_______________________________________________________________________ 'response.Write("") ' response.Flush() 'IdTipo Apartamento solo es null cuando no se encuentra en alguna de las primeras opciones 'set RsDepartamento = EjecutarText (Sql, Array(IdZona,IdAmbiente,null,null, DesdeAnio, DesdeMes, DesdeDia,HastaAnio, HastaMes, HastaDia,IdZonaBusqueda, IdAmbiente, Null, strVer, null)) 'response.Write("
" & lngZonaBusqueda & "-
" & lngAmbiente & "-
" & CookieIdioma & "-
" & DesdeAnio & "-
" & DesdeMes & "-
" & DesdeDia & "-
" & HastaAnio & "-
" & HastaMes & "-
" & HastaDia & "-
" & strVer & "-
" & IdTipoApartamento) '_________FIN DE CONSIDERAR__________________________________________________________________________________________________ if Request.Querystring("Accion")&""<>"Buscar" then strdesde=session("strdesde") strhasta=session("strhasta") end if Select case Request.Querystring("Orden") case "1" session("OrdenBusqueda")="DepartamentoBuscarCP" case "2" session("OrdenBusqueda")="DepartamentoBuscarSup" case "3" session("OrdenBusqueda")="DepartamentoBuscarAmb" case "4" session("OrdenBusqueda")="DepartamentoBuscarPre" end select Dim Orden Orden=session("OrdenBusqueda") 'if Orden&""="" then ' session("OrdenBusqueda")="Departamento.Codigo" ' Orden="Departamento.Codigo" 'end if If Request.Querystring("Accion")&""="Buscar" then session("OrdenBusqueda")="DepartamentoBuscarCod" Orden="DepartamentoBuscarCod" end if if Request.form("CboPrecio")="3" then session("OrdenBusqueda")="DepartamentoBuscarPre" Orden="DepartamentoBuscarPre" elseif Request.form("CboPrecio")="2" then session("OrdenBusqueda")="DepartamentoBuscarPreAsc" Orden="DepartamentoBuscarPreAsc" end if 'sql = "SELECT DISTINCT(Departamento.IdDepartamento) AS IDDepartamento, [Orden], [Departamento.Codigo], [FotoBusqueda], [Razon], [Descripcion], Color,[DepartamentoTraduccion.Tarifa30],[Departamento.Superficie],[Departamento.IdAmbiente],[Departamento.CantidadPersonas] " 'sql = sql & "FROM (((Departamento LEFT JOIN DepartamentoTraduccion ON Departamento.IdDepartamento=DepartamentoTraduccion.IdDepartamento) LEFT JOIN DepartamentoFecha ON Departamento.IdDepartamento=DepartamentoFecha.IdDepartamento) INNER JOIN TipoPropiedad ON TipoPropiedad.IdTipoPropiedad=Departamento.IdTipoPropiedad) INNER JOIN Zona ON Departamento.IdZona=Zona.IdZona " 'sql = sql & "WHERE ([@IdZona] Is Null Or Departamento.IdZona=[@IdZona]) And ([@IdAmbiente] Is Null Or Departamento.IdAmbiente=[@IdAmbiente]) And ([@idIdioma] Is Null Or idIdioma=[@idIdioma]) And ([@DesdeAnio] Is Null Or (Anio>=[@DesdeAnio] Or Anio Is Null)) And ([@DesdeMes] Is Null Or (Mes>=[@DesdeMes] Or Mes Is Null)) And ([@DesdeDia] Is Null Or (Dia>=[@DesdeDia] Or Dia Is Null)) And ([@HastaAnio] Is Null Or (Anio<=[@HastaAnio] Or Anio Is Null)) And ([@HastaMes] Is Null Or (Mes<=[@HastaMes] Or Mes Is Null)) And ([@HastaDia] Is Null Or (Dia<=[@HastaDia] Or Dia Is Null)) And ([@Ocupado] Is Null Or (Ocupado<>([@Ocupado]) Or Ocupado Is Null)) And ([@IdTipoPropiedad] Is Null Or DEpartamento.IdTipoPropiedad=[@IdTipoPropiedad]) And ([Departamento.Estado]=-1) " 'if Orden="Departamento.Codigo" then 'sql = sql & "ORDER BY ["&Orden&"] ASC" 'else 'sql = sql & "ORDER BY ["&Orden&"] DESC" 'end if '************2º QUERY********************************* 'sql = "SELECT DISTINCT(Departamento.IdDepartamento) AS IDDepartamento, [Orden], [Departamento.Codigo], [FotoBusqueda], [Razon], [Descripcion], Color,[DepartamentoTraduccion.Tarifa30],[Departamento.Superficie],[Departamento.IdAmbiente],[Departamento.CantidadPersonas] " 'sql = sql & "FROM (((Departamento LEFT JOIN DepartamentoTraduccion ON Departamento.IdDepartamento=DepartamentoTraduccion.IdDepartamento) LEFT JOIN DepartamentoFecha ON Departamento.IdDepartamento=DepartamentoFecha.IdDepartamento) INNER JOIN TipoPropiedad ON TipoPropiedad.IdTipoPropiedad=Departamento.IdTipoPropiedad) INNER JOIN Zona ON Departamento.IdZona=Zona.IdZona " 'sql = sql & "WHERE (? Is Null Or Departamento.IdZona=?) And (? Is Null Or Departamento.IdAmbiente=?) And (? Is Null Or idIdioma=?) And (? Is Null Or (Anio>=? Or Anio Is Null)) And (? Is Null Or (Mes>=? Or Mes Is Null)) And (? Is Null Or (Dia>=? Or Dia Is Null)) And (? Is Null Or (Anio<=? Or Anio Is Null)) And (? Is Null Or (Mes<=? Or Mes Is Null)) And (? Is Null Or (Dia<=? Or Dia Is Null)) And (? Is Null Or (Ocupado<> ? Or Ocupado Is Null)) And (? Is Null Or DEpartamento.IdTipoPropiedad=?) And ([Departamento.Estado]=-1) " 'if Orden="Departamento.Codigo" then 'sql = sql & "ORDER BY ["&Orden&"] ASC" 'else 'sql = sql & "ORDER BY ["&Orden&"] DESC" 'end if '******************************************************* 'sql = "SELECT DISTINCT(Departamento.IdDepartamento) AS IDDepartamento, [Orden], [Departamento.Codigo], [FotoBusqueda], [Razon], [Descripcion], Color,[DepartamentoTraduccion.Tarifa30],[Departamento.Superficie],[Departamento.IdAmbiente],[Departamento.CantidadPersonas] FROM (((Departamento LEFT JOIN DepartamentoTraduccion ON Departamento.IdDepartamento=DepartamentoTraduccion.IdDepartamento) LEFT JOIN DepartamentoFecha ON Departamento.IdDepartamento=DepartamentoFecha.IdDepartamento) INNER JOIN TipoPropiedad ON TipoPropiedad.IdTipoPropiedad=Departamento.IdTipoPropiedad) INNER JOIN Zona ON Departamento.IdZona=Zona.IdZona WHERE (Null Is Null Or Departamento.IdZona=Null) And (Null Is Null Or Departamento.IdAmbiente=Null) And (1 Is Null Or idIdioma=1) And (Null Is Null Or DEpartamento.IdTipoPropiedad=Null) ORDER BY [Orden] ,[Departamento.Codigo] ASC" 'if Orden="Departamento.Codigo" then 'sql = sql & "ORDER BY [Orden] ,[Departamento.Codigo] ASC" 'else 'sql = sql & "ORDER BY [Orden] DESC" 'end if if IDZona = "" then IDZona = null end if if IDAmbiente = "" then IDAmbiente = null end if if desdeAnio = "" then desdeanio = null end if if hastaAnio ="" then hastaAnio = null end if if desdeMes = "" then desdeMes = null end if if hastaMes = "" then hastaMes = null end if if hastaDia ="" then hastaDia = null end if if desdeDia = "" then desdeDia = null end if set RsBuscar=EjecutarSP(Orden,array(IdZona,IdAmbiente,CookieIdioma,DesdeAnio,DesdeMes,DesdeDia,HastaAnio,HastaMes,HastaDia,strVer,null)) 'set RsBuscar=Ejecutartext(sql,array()) 'lngResultados = RsBuscar.recordcount 'set RsBuscar=Ejecutartext(sql,array(null,null,1,null,null,null,null,null,null,null,null,null)) %> <% Dim strCriteriosBusqueda 'Campos para levantar en la Base Dim strDomicilio, strZona DIm DescripcionTruncada Dim Sujeto, SujetoBusqueda 'if IdAmbiente <> "" then ' 'Se tiene que buscar de la base 'set strDomicilio=ejecutarText("Select Descripcion from Ambiente where IdAmbiente = ?", Array(IdAmbiente)) 'strCriteriosBusqueda = strCriteriosBusqueda & strDomicilio("Descripcion") ' end if 'if IdZona <> "" then ' 'Se tiene que buscar de la base ' set strZona=ejecutarText("Select IDZona, Nombre from Zona where IdZona = ?", Array(IdZona)) ' strCriteriosBusqueda = strCriteriosBusqueda & " " & strZona("Nombre") 'else 'set strZona = Nothing 'end if if strDesde <> "" then strCriteriosBusqueda = strCriteriosBusqueda & " - " & strDesde end if if strHasta <> "" then strCriteriosBusqueda = strCriteriosBusqueda & " - " & strHasta end if if strVer <> "" then Dim Aux If strVer = NULL then Aux="Todos" else Aux="Disponibles" end if strCriteriosBusqueda = trim(strCriteriosBusqueda & " - " & Aux) if mid(strCriteriosBusqueda,1,1) ="-" then strCriteriosBusqueda = Mid(strCriteriosBusqueda,2) end if end if %> <%dim RsDepto,IdDepto,a%> <% dim imgpersonas, imgpersonasMax,Dormitorios,baths,Ambiente '__Datos de resultados__________________________________________ dim RsdeAmbiente, RegEncontrados RegEncontrados=RsBuscar.recordcount if IdAmbiente&""="" then DescripcionAmbiente= "All Capacity" else set RsdeAmbiente=ejecutarText("Select * from Ambiente where IdAmbiente = ?", Array(IdAmbiente)) descripcionAmbiente=RsdeAmbiente("DescripcionEng") end if if IdZona&"" ="" then DescZona="All Zones" ColorZona="#19BBC4" else set RsDescZona=ejecutarText("Select IDZona, Nombre, Color from Zona where IdZona = ?", Array(IdZona)) DescZona= RsDescZona("Nombre") ColorZona= RsDescZona("Color") end if '______________ if RsBuscar.eof then%>
   0 Result(s).
<%=descripcionAmbiente%>
<%if strdesde&""<>"" or strhasta&""<>""then%><%=strDesde&" - "&strHasta%><%end if%>

<%end if '_____________PAGINACION DEL RESULTADO dim PaginaSize, PaginaActual, PaginaCount, registros Paginasize = PaginadoBusqueda If Request.QueryString("page") = "" Then PaginaActual = 1 Else PaginaActual = CInt(Request.QueryString("page")) End If RsBuscar.PageSize = PaginaSize RsBuscar.CacheSize = PaginaSize PaginaCount = RsBuscar.PageCount If PaginaActual > PaginaCount Then PaginaActual = PaginaCount If PaginaActual < 1 Then PaginaActual = 1 If PaginaCount > 0 Then RsBuscar.AbsolutePage = PaginaActual '______Para Controlar el paginado_______________________________________________________________________________________________ '____________________________________________________________________________________________________ %>
  Click on numbers to select an apartment <%=DescZona%> <%=RegEncontrados%> Result(s).
<%=descripcionAmbiente%>
<%if strdesde&""<>"" or strhasta&""<>""then%><%=strDesde&" - "&strHasta%><%end if%>
  Ordenar apartamentos por: &IdZona=<%=IdZona%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image141','','imagenes/seleccionar-por-ovr_02-eng.gif',1)">"imagenes/seleccionar-por-ovr_02-eng.gif"<%else%>"imagenes/seleccionar-por_01-eng.gif"<%end if%> name="Image141" width="150" height="37" border="0"> &IdZona=<%=IdZona%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image142','','imagenes/seleccionar-por-ovr_03-eng.gif',1)">"imagenes/seleccionar-por-ovr_03-eng.gif"<%else%>"imagenes/seleccionar-por_02-eng.gif"<%end if%> name="Image142" width="146" height="37" border="0">
<%dim RsZona set RsZona=ejecutartext("SELECT * FROM Zona Order By Codigo",array())%>

<% registros=1 Do while registros= <%if not RsBuscar.eof then set IdDepto=RsBuscar("IdDepartamento") set RsDepto= EjecutarText("Select * from Departamento where IdDepartamento=?", array(IdDepto)) set RsDeptoTraduccionTraer= EjecutarSP("DepartamentoTraduccionTraer",array(IdDepto,CookieIdioma)) IF len(RsDeptoTraduccionTraer("Descripcion")) >150 then Descripcion=left(RsDeptoTraduccionTraer("Descripcion"),150) caracteres=instr(right(Descripcion,40), ".") if caracteres=0 then caracteres=instr(right(Descripcion,40), "•") if caracteres<>0 then caracteres= caracteres-1 end if end if if caracteres=0 then caracteres=instr(right(Descripcion,40), " ") end if Descripcion=left(RsDeptoTraduccionTraer("Descripcion"),110+caracteres) else Descripcion=RsDeptoTraduccionTraer("Descripcion") end if '________Para cargar las imagenes de Cantidad de Personas IdAmbiente=RsDepto("IdAmbiente") set imgpersonas=RsDepto("CantidadPersonas") if imgpersonas > 5 then imgpersonas=5 else if imgpersonas=0 or imgpersonas&""=""then imgpersonas=3 end if end if imgpersonasMax=5-imgpersonas set RsAmbiente= EjecutarText("Select * from Ambiente where IdAmbiente=?",array(IdAmbiente)) '_____Capturo la descripcion del Ambiente para mostrar en la tabla BAÑOS Y DORMITORIOS desde la Tabla segun el caracter / if cookieIdioma=1 then Ambiente=RsAmbiente("Descripcion") else Ambiente=RsAmbiente("DescripcionEng") end if posicion=instr(Ambiente,"/") caracteres=len(Ambiente) if posicion <> 0 then dormitorios=left(""&Ambiente&"",posicion-2)&"ed" baths=Right(Ambiente,caracteres-posicion)&"ath" else dormitorios=Ambiente Baths="" end if '_______CORTE DE LA DESCRIPCION _____________________________________________- '_______CORTE DE LA DESCRIPCION _____________________________________________- IF len(RsDeptoTraduccionTraer("Razon")) >31 then RazonDepto=left(RsDeptoTraduccionTraer("Razon"),29)&".." else RazonDepto=RsDeptoTraduccionTraer("Razon") end if '_________________________________________________________________________________ '______COLOR DE LA CELDA DE RAZON_______________________ set RsColor= EjecutarText("Select Color from Zona where IdZona=?",array(RsDepto("IdZona"))) if RsColor.eof then Color="#FF9900" else Color = RsColor("Color") end if '___________________________________________________________ %> <%RsBuscar.Movenext end if registros=registros+1%>
&IdAmbiente=<%=RsDepto("IdAmbiente")%>">" width="342" height="255" border="0" id="Central"alt="">
&IdAmbiente=<%=RsDepto("IdAmbiente")%>" class="resultado-busqueda-FICHA-APART"><%=RazonDepto%>
<%=Descripcion%>..
<%if baths<>""then%> <%end if%>
• <%dim p, h if imgpersonas >0 then For p=1 to imgpersonas%><%next%> <%if imgpersonasmax >0 then For h=1 to imgpersonasMax%><%next end if end if%> • <%=RsDepto("Codigo")%>  
• <%=CINT(RsDepto("Superficie")*10.76)%> Sq.Ft    
• <%=Dormitorios%>    
• <%=Baths%>
<% dim cat set cat=RsDepto("Categoria") if cat =0 or cat&""="" or cat="" then cat=3 end if For a=1 to cat%> <%next%> <%if RsDeptoTraduccionTraer("Tarifa30")&""<>"" then %>• U$ <%=RsDeptoTraduccionTraer("Tarifa30")%>/Month<%end if%>
 
<%loop ConexionFinalizar() %>
<% End If If PaginaActual < PaginaCount Then %>
<%If PaginaActual > 1 Then %>
 
<%End If%>
<% end if %> <%'______VALORES DE LOS MENÚES_______ dim apartamentos, Hoteles, Estancias,Otros, Alquileres, Alojamientos, ventas, Contactos if CookieIdioma=1 then apartamentos="Apartamentos" Hoteles="Hoteles" Estancias="Estancias" Otros="Otras Alternativas" Alquileres="Alquileres períodos largos" Alojamientos="ALOJAMIENTOS" ventas="Ventas" contacto="Contactos" fin=".asp" else apartamentos="Apartments Buenos Aires" Hoteles="Hotels Buenos Aires" Estancias="Country Houses" Otros="Other alternatives" Alquileres="Long Term Rental" alojamientos="LODGING" Ventas="Real state" Contacto="Contact" fin="-eng.asp" END IF%>

 

 
 

LivinginBaires
Apartment Rentals in Buenos Aires. All rights reserved.
To list your apartment with us, please email: apartments@livinginbaires.com