<%@ 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 & "
" & 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 %> DeCastro Tours, your gateway to Egypt .... www.decastrotours.com

shadow

home

sitemap

contact
 
 
 
<%=sTxt%>

 

 
<% 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") %> <% if DayNo = 1 then %> <% else %> <% 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 %> <% End if %> <% end if %>

<%if sPacCode<>"" then%><%=sPacCode%> - <%end if%><%=sPacTitle%> - <%=sPacDesc%>

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, "
") %> <% rsDayDesc.MoveNext Loop rsDayDesc.close End if end if rsPacDay.MoveNext Loop rsPacDay.close end if %> >
<%=sPacDayName%>
<%=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 %>
Package Includes  
<% DO while not rsPacInc.eof sPacInclude=rsPacInc("PacInclude") sPacInclude=Replace(sPacInclude, vbCrLf, "
") %> <% rsPacInc.MoveNext Loop rsPacInc.close %>
- <%=sPacInclude%>
 
<% End if %>
<% set rsPacExc=Server.CreateObject("ADODB.Recordset") sql="SELECT * FROM PacExc where PacId="&sPacID rsPacExc.Open sql,OBJdbConnection,1,1 IF not rsPacExc.eof then %>
 Package Excludes  
<% DO while not rsPacExc.eof sPacExclude=rsPacExc("PacExclude") sPacExclude=Replace(sPacExclude, vbCrLf, "
") %> <% rsPacExc.MoveNext Loop %>
- <%=sPacExclude%>
 
<% rsPacExc.close End if %>
<% set rsPacExc=Server.CreateObject("ADODB.Recordset") sql="SELECT * FROM Pacterm where PacId="&sPacID rsPacExc.Open sql,OBJdbConnection,1,1 IF not rsPacExc.eof then %>
 Package Terms  
<% DO while not rsPacExc.eof sPacExclude=rsPacExc("Pacterm") sPacExclude=Replace(sPacExclude, vbCrLf, "
") %> <% rsPacExc.MoveNext Loop %>
- <%=sPacExclude%>
 
<% rsPacExc.close End if %>
 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") %> <% rsPacPr.MoveNext Loop %> <% rsPacPr.MoveFirst DO while not rsPacPr.eof sPrc=rsPacPr("Prc") %> <% rsPacPr.MoveNext Loop rsPacPr.close %>
<%=sPrcDesc%>  
<% if sPrc <>"" then%> <%=sPrc%> <%end if%>  
 
 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") %> <% 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") %> <% rsHotPr.MoveNext r=r+1 Loop rsHotPr.close %> <% if r<>6 then DO while r<6 %> <% r=r+1 Loop end if%>
<%=sHotPrcDesc%> 
<% if sHotPrc<>"" then%> <%=sHotPrc%> <%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  
First Name:
Last Name:
Address:
City:
Zip/Postal Code:
Country:
Telephone:
Fax:
E-mail:
Comments:
  <% if DayNo <> 1 then %> <% set rsHotel=Server.CreateObject("ADODB.Recordset") sql="SELECT * FROM Hotel where PacId="&sPacID rsHotel.Open sql,OBJdbConnection,1,1 IF not rsHotel.eof then %> <% end if end if%> <% if DayNo >1 then %> <% else %> <% end if %> <% set rsPacOpt=Server.CreateObject("ADODB.Recordset") sql="SELECT * FROM Optional where PacId="&sPacID rsPacOpt.Open sql,OBJdbConnection,1,1 Optno=0 IF not rsPacOpt.eof then %> <% end if %>

Package Price choice

>

No. Of Travelers

Sgl room Dbl room Trp room Child (A) Child (B)
Adult Child

Preferred date for the trip

Preferred payment method

Wire transfer    Check    Collect

Optional Tours

<% DO while not rsPacOpt.eof Optno=Optno+1 sOptId=rsPacOpt("OptId") sOptName=rsPacOpt("OptName") sOptDesc=rsPacOpt("OptDesc") %> <% rsPacOpt.MoveNext Loop rsPacOpt.close %>
  Optional name No of People
<%=sOptDesc%>