%@ Language=VBScript %> <% ' The following is the code for the scrolling news ticker. Dim sTxt, sHtml1, sHtml2, sHtml3, sHtml4, sHtml5, sHtml6, sHtml7, strSQL Set RsGuestList = Server.CreateObject ("ADODB.Recordset") RsGuestList.ActiveConnection = OBJdbConnection RsGuestList.CursorType = 1 RsGuestList.LockType = 1 RsGuestList.Open "select * from news order by NewsDate DESC" sHtml1 = "
"
sHtml2 = ""
sTxt = sTxt & sHtml1 & sHtmlDate & "
<%if sPacCode<>"" then%><%=sPacCode%> - <%end if%><%=sPacTitle%> - <%=sPacDesc%>
Copyright
© 1953-2009 DeCastro Tours. All rights
reserved. This site is designed by:
elzoghby.com
" & sHtml2 & _
RsGuestList("NewsID") & sHtml4 & sHtml6 & RsGuestList("NewsTitle") & sHtml7
RsGuestList.movenext
loop
end if
%>
<%
'============ Random Images Function =======================================================
Function RandomImage(strPath,strDefault)
On Error Resume Next
Randomize Timer
Dim objFSO, objFolder, objFiles, objFile
Dim strFiles, strImages, strPhysical, strFile
Const strValid = ".gif.jpg.png.swf"
If Right(strPath,1) <> Chr(47) Then strPath = strPath & Chr(47)
strPhysical = Server.MapPath(strPath)
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(strPhysical)
Set objFiles = objFolder.Files
For Each objFile in objFiles
strFile = LCase(objFile.Name)
If Instr(strValid,Right(strFile,4)) Then
strFiles = strFiles & strFile & vbTab
End If
Next
strImages = Split(strFiles,vbTab)
If UBound(strImages) > 1 Then
RandomImage = strPath & strImages(Int(Rnd(1)*UBound(strImages)))
Else
RandomImage = strDefault
End If
End Function
%>
![]()
![]()
![]()
![]()
![]()
![]()
![]()
home![]()
sitemap![]()
contact
![]()
![]()
![]()
![]()
<% Tpe=Request.QueryString("tpe")
subtpe=Request.QueryString("subtpe")
ptid=Request.QueryString("ptid")
%>
Packages: <%=subtpe%>
<%
pid=Request.QueryString("pid")
set rsPackage=Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM Package where PacId="&pid
rsPackage.Open sql,OBJdbConnection,1,1
IF not rsPackage.eof then
sPacID=rsPackage("PacID")
sPacCode=rsPackage("PacCode")
sPacTypeId=rsPackage("PacTypeId")
sPacDesc=rsPackage("PacDesc")
sPacPrivate=rsPackage("PacPrivate")
sPacTitle=rsPackage("PacTitle")
%>
![]()
Package Description
![]()
![]()
<%
set rsPacDay=Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM PacDay where PacId="&sPacID
rsPacDay.Open sql,OBJdbConnection,1,1
DayNo=0
IF not rsPacDay.eof then
DO while not rsPacDay.eof
DayNo=DayNo+1
sPacDayID=rsPacDay("PacDayID")
sPacDayName=rsPacDay("PacDayNam")
if sPacDayName<>"not a day" then%>
<% set rsDayDesc=Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM DayDesc where PacDayId="&sPacDayID
rsDayDesc.Open sql,OBJdbConnection,1,1
IF not rsDayDesc.eof then
DO while not rsDayDesc.eof
sPacDayDesc=rsDayDesc("PacDayDesc")
sPacDayDesc=Replace(sPacDayDesc, vbCrLf, "<%=sPacDayName%>
")
%>
<% rsDayDesc.MoveNext
Loop
rsDayDesc.close
End if
end if
rsPacDay.MoveNext
Loop
rsPacDay.close
end if
%>
>
<%=sPacDayDesc%>
![]()
![]()
![]()
<% set rsPacInc=Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM PacInc where PacId="&sPacID
rsPacInc.Open sql,OBJdbConnection,1,1
IF not rsPacInc.eof then
%>
<% End if
%>
![]()
Package
Includes
![]()
![]()
<% DO while not rsPacInc.eof
sPacInclude=rsPacInc("PacInclude")
sPacInclude=Replace(sPacInclude, vbCrLf, "
")
%>
<% rsPacInc.MoveNext
Loop
rsPacInc.close
%>
- <%=sPacInclude%>
![]()
![]()
![]()
<% set rsPacExc=Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM PacExc where PacId="&sPacID
rsPacExc.Open sql,OBJdbConnection,1,1
IF not rsPacExc.eof then
%>
<% rsPacExc.close
End if
%>
![]()
Package
Excludes
![]()
![]()
<% DO while not rsPacExc.eof
sPacExclude=rsPacExc("PacExclude")
sPacExclude=Replace(sPacExclude, vbCrLf, "
")
%>
<% rsPacExc.MoveNext
Loop
%>
- <%=sPacExclude%>
![]()
![]()
![]()
<% if DayNo = 1 then %>
<% set rsPacExc=Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM Pacterm where PacId="&sPacID
rsPacExc.Open sql,OBJdbConnection,1,1
IF not rsPacExc.eof then
%>
<% rsPacExc.close
End if
%>
![]()
Package
Terms
![]()
![]()
<% DO while not rsPacExc.eof
sPacExclude=rsPacExc("Pacterm")
sPacExclude=Replace(sPacExclude, vbCrLf, "
")
%>
<% rsPacExc.MoveNext
Loop
%>
- <%=sPacExclude%>
![]()
![]()
![]()
<% else %>
![]()
Package Price
![]()
![]()
<% set rsPacPr=Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM PacPrc where PacId="&sPacID
rsPacPr.Open sql,OBJdbConnection,1,1
IF not rsPacPr.eof then
%>
<%
End if
%>
<% DO while not rsPacPr.eof
sPrcDesc=rsPacPr("PrcDesc")
%>
<%=sPrcDesc%>
<% rsPacPr.MoveNext
Loop
%>
<%
rsPacPr.MoveFirst
DO while not rsPacPr.eof
sPrc=rsPacPr("Prc")
%>
<% if sPrc <>"" then%>
<%=sPrc%> <%end if%>
<% rsPacPr.MoveNext
Loop
rsPacPr.close
%>
![]()
![]()
![]()
<% end if %>
<% set rsPacOpt=Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM Optional where PacId="&sPacID
rsPacOpt.Open sql,OBJdbConnection,1,1
IF not rsPacOpt.eof then %>
![]()
Package Price
![]()
![]()
<% set rsHotel=Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM Hotel where PacId="&sPacID
rsHotel.Open sql,OBJdbConnection,1,1
IF not rsHotel.eof then
DO while not rsHotel.eof
sHotId=rsHotel("HotId")
sHotName=rsHotel("HotName")
sHotWeb=rsHotel("HotWeb")
if rsHotel("HotStar")<>"" then sHotStar=cint(rsHotel("HotStar")) end if
sHotArea=rsHotel("HotArea")
sHotDesc=rsHotel("HotDesc")
%>
<%
End if
%>
<%
rsHotel.MoveNext
loop
rsHotel.close
end if
%>
<% if sHotWeb <>"" then%>
<%=sHotName%>
<%else%>
<%=sHotName%>
<%end if%>
<%=sHotArea%>
<% for I= 1 to sHotStar %>*<% Next %>
<% set rsHotPr=Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM HotPrc where HotId="&sHotId
rsHotPr.Open sql,OBJdbConnection,1,1
IF not rsHotPr.eof then
r=1
DO while not rsHotPr.eof
sHotPrcDesc=rsHotPr("HotPrcDesc")
%>
<%=sHotPrcDesc%>
<% rsHotPr.MoveNext
r=r+1
Loop
%>
<% if r<>6 then
DO while r<6
%>
<% r=r+1
Loop
end if%>
<% r=1
rsHotPr.MoveFirst
DO while not rsHotPr.eof
sHotPrc=rsHotPr("HotPrc")
%>
<% if sHotPrc<>"" then%>
<%=sHotPrc%> <%end if%>
<% rsHotPr.MoveNext
r=r+1
Loop
rsHotPr.close
%>
<% if r<>6 then
DO while r<6
%>
<% r=r+1
Loop
end if%>
![]()
![]()
![]()
<% End if %>
![]()
Optional Tours
![]()
![]()
<% optnum=1
DO while not rsPacOpt.eof
sOptId=rsPacOpt("OptId")
sOptName=rsPacOpt("OptName")
sOptDesc=rsPacOpt("OptDesc")
set rsOptPr=Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM Optprc where OptId="&sOptId
rsOptPr.Open sql,OBJdbConnection,1,1
IF not rsOptPr.eof then
DO while not rsOptPr.eof
sOptPrDesc=rsOptPr("OptPrDesc")
sOptPrc=rsOptPr("OptPrc")
%>
<%
rsOptPr.MoveNext
optnum=optnum+1
Loop
rsOptPr.close
End if
rsPacOpt.MoveNext
Loop
rsPacOpt.close
%>
Option <%=optnum%>
<%=sOptDesc%>
Option Price:
<%if sOptPrc<>"" then%>
<%=sOptPrc%> <%end if%>
![]()
![]()
![]()
Reserve this package
<% end if %>
![]()