%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
dim KT_relPath
KT_relPath = "../../"
%>
<%
function ConvertTextDate(str_date)
if str_date <> "" then
dim date_array
date_array = split(str_date,"-")
dim str_month
Select Case date_array(1)
case "Jan"
str_month = "01"
case "Feb"
str_month = "02"
case "Mar"
str_month = "03"
case "Apr"
str_month = "04"
case "May"
str_month = "05"
case "Jun"
str_month = "06"
case "Jul"
str_month = "07"
case "Aug"
str_month = "08"
case "Sep"
str_month = "09"
case "Oct"
str_month = "10"
case "Nov"
str_month = "11"
case "Dec"
str_month = "12"
end select
ConvertTextDate = date_array(2) & "-" & str_month & "-" & date_array(0)
else
ConvertTextDate = ""
end if
end function
%>
<%
dim objXML, objXSL, strURL
if request("altcurrency") <> "" then
session("altcurrency") = request("altcurrency")
end if
strURL = "https://secure.supercontrol.co.uk/xml/property_xml.asp?id=" & request.querystring("id") & "&startdate=" & ConvertTextDate(session("startdate")) & "&numbernights=" & session("numbernights") & "&altcurrency=" & session("altcurrency") & "&desc_detail=" & request("desc_detail") & "&tid=" & request.cookies("tid") & "&siteID=84"
set objXML=server.CreateObject("MSXML2.DOMDocument")
set objXSL=server.CreateObject("MSXML2.DOMDocument")
objXML.async=False
objXSL.async=False
objXML.setProperty "ServerHTTPRequest",true
objXML.load strURL
objXSL.load Server.MapPath("xsl/property_detail.xsl")
'objXSL.load Server.MapPath("../../xsl/xmldisplay.xsl")
'Response.write strURL
dim str_content
str_content = objXML.transformNode(objXSL)
dim str_title
str_title = objXML.selectSingleNode("//scdata/property/propertyname").text
dim propertycode
propertycode = objXML.selectSingleNode("//scdata/property/propertycode").text
dim str_overview
str_overview = "
<%
dim str_action
str_action = "index.asp"
%>
<%=str_content%>
<% if str_postcode <> "" then %>
Location map
<% end if %>
|
|