<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% on error resume next %> [an error occurred while processing this directive] [an error occurred while processing this directive] <% Dim MantleAdsRS Dim MantleAdsRS_numRows Set MantleAdsRS = Server.CreateObject("ADODB.Recordset") MantleAdsRS.ActiveConnection = MM_cessnaflyer_STRING MantleAdsRS.Source = "SELECT * FROM MantleAdsDB ORDER BY SortOrder ASC" MantleAdsRS.CursorType = 0 MantleAdsRS.CursorLocation = 2 MantleAdsRS.LockType = 1 MantleAdsRS.Open() MantleAdsRS_numRows = 0 %> <% Dim MemberInfo__MMColParam MemberInfo__MMColParam = "1" If (Session("MM_Username") <> "") Then MemberInfo__MMColParam = Session("MM_Username") End If %> <% Dim MemberInfo Dim MemberInfo_numRows Set MemberInfo = Server.CreateObject("ADODB.Recordset") MemberInfo.ActiveConnection = MM_cessnaflyer_STRING MemberInfo.Source = "SELECT * FROM MemberDB WHERE EmailAddress = '" + Replace(MemberInfo__MMColParam, "'", "''") + "'" MemberInfo.CursorType = 0 MemberInfo.CursorLocation = 2 MemberInfo.LockType = 1 MemberInfo.Open() MemberInfo_numRows = 0 %> <% Dim Recordset1__MMColParam Recordset1__MMColParam = "500+" If (Request("MM_EmptyValue") <> "") Then Recordset1__MMColParam = Request("MM_EmptyValue") End If %> <% Dim Recordset1 Dim Recordset1_numRows Set Recordset1 = Server.CreateObject("ADODB.Recordset") Recordset1.ActiveConnection = MM_cessnaflyer_STRING Recordset1.Source = "SELECT * FROM ModelNumbers WHERE ModelNumber <> '" + Replace(Recordset1__MMColParam, "'", "''") + "' ORDER BY ModelNumber ASC" Recordset1.CursorType = 0 Recordset1.CursorLocation = 2 Recordset1.LockType = 1 Recordset1.Open() Recordset1_numRows = 0 %> <% Dim Recordset2__MMColParam Recordset2__MMColParam = "1" If (Request.QueryString("modelnumber") <> "") Then Recordset2__MMColParam = Request.QueryString("modelnumber") End If %> <% Dim Recordset2 Dim Recordset2_numRows Set Recordset2 = Server.CreateObject("ADODB.Recordset") Recordset2.ActiveConnection = MM_cessnaflyer_STRING Recordset2.Source = "SELECT * FROM ModelNumbersDetails WHERE ModelNumber LIKE '%" + Replace(Recordset2__MMColParam, "'", "''") + "%' ORDER BY ModelOption ASC" Recordset2.CursorType = 0 Recordset2.CursorLocation = 2 Recordset2.LockType = 3 Recordset2.Open() Recordset2_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 MantleAdsRS_numRows = MantleAdsRS_numRows + Repeat1__numRows %> <% Dim Repeat2__numRows Dim Repeat2__index Repeat2__numRows = -1 Repeat2__index = 0 Recordset1_numRows = Recordset1_numRows + Repeat2__numRows %> <% Dim Repeat3__numRows Dim Repeat3__index Repeat3__numRows = -1 Repeat3__index = 0 Recordset2_numRows = Recordset2_numRows + Repeat3__numRows %> <% Dim MM_paramName %> <% ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters Dim MM_keepNone Dim MM_keepURL Dim MM_keepForm Dim MM_keepBoth Dim MM_removeList Dim MM_item Dim MM_nextItem ' create the list of parameters which should not be maintained MM_removeList = "&index=" If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "=" End If MM_keepURL="" MM_keepForm="" MM_keepBoth="" MM_keepNone="" ' add the URL parameters to the MM_keepURL string For Each MM_item In Request.QueryString MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item)) End If Next ' add the Form variables to the MM_keepForm string For Each MM_item In Request.Form MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item)) End If Next ' create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm If (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1) End If If (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1) End If If (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1) End If ' a utility function used for adding additional parameters to these strings Function MM_joinChar(firstItem) If (firstItem <> "") Then MM_joinChar = "&" Else MM_joinChar = "" End If End Function %> Cessna Flyer Association - www.cessnaflyer.org
Welcome <% If MemberInfo.EOF And MemberInfo.BOF Then %> Guest <% End If ' end MemberInfo.EOF And MemberInfo.BOF %> <% If Not MemberInfo.EOF Or Not MemberInfo.BOF Then %> <%=(MemberInfo.Fields.Item("Fname").Value)%> <% End If ' end Not MemberInfo.EOF Or NOT MemberInfo.BOF %>!
<% If MemberInfo.EOF And MemberInfo.BOF Then %> Website Login  |  Login Help <% End If ' end MemberInfo.EOF And MemberInfo.BOF %> <% If Not MemberInfo.EOF Or Not MemberInfo.BOF Then %> (Member's Only Features)
CFA Clubhouse
  |  Member Forums  |  Logout <% End If ' end Not MemberInfo.EOF Or NOT MemberInfo.BOF %>
<%=formatdatetime((now),1)%>  
 
Cessna Model Directory
<% if request.querystring("modelnumber")=nil then%> Find specifications for any Cessna model in our catalog.

Select a model series

<% While ((Repeat2__numRows <> 0) AND (NOT Recordset1.EOF)) %> <% Repeat2__index=Repeat2__index+1 Repeat2__numRows=Repeat2__numRows-1 Recordset1.MoveNext() Wend %>
" class="links"><%=(Recordset1.Fields.Item("ModelNumber").Value)%> Series  
500+ Series (Citations)  

<% else%> Select a model to view the specifications:

<% While ((Repeat3__numRows <> 0) AND (NOT Recordset2.EOF)) %> <% Repeat3__index=Repeat3__index+1 Repeat3__numRows=Repeat3__numRows-1 Recordset2.MoveNext() Wend %>
" class="links"><%=(Recordset2.Fields.Item("ModelOption").Value)%>  
<% end if%>
Back
Home  |  Join Renew  |  Forums  |  Contact Us  |  Advertise
Copyright 2007 - Cessna Flyer Association
 
<% MantleAdsRS.Close() Set MantleAdsRS = Nothing %> <% MemberInfo.Close() Set MemberInfo = Nothing %> <% ' Report Error If Err.Number <> 0 Then SendErrorEmail "ASP Error", Err.Source, Err.Number, Err.Description End If %> <% Recordset1.Close() Set Recordset1 = Nothing %> <% Recordset2.Close() Set Recordset2 = Nothing %>