%@ Language = 'VbScript' LCID=1049 CodePage=1251 EnableSessionState=True%>
<% Option Explicit %>
<%
Response.CharSet = "windows-1251"
%>
<%
cnn.Open Application("ConnectionString")
Randomize
'defining the global variables
dim site_id, page_id, strSQL
site_id=50
page_id=191
Dim QP_IsInStageMode
QP_IsInStageMode = False
'define response properties
Response.AddHeader "publisher", "Quantum Art's Q-Publishing 7.6 Wed, 16 Sep 2009 11:22:33 GMT"
Response.Expires = -1000
Response.CacheControl = "Private"
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "cache-control", "no-cache, no-store, must-revalidate"
dim upload_url, base_upload_url, published_status_type_id, object_call_depth
Dim AbsUploadURL, UploadURLPrefix, PublishedStatusName
Dim QP_IsInFrontend
QP_IsInFrontend = True
dim object_call_stack(20)
upload_url = "/upload/images"
site_url = "/live/"
base_upload_url = "/upload/"
object_call_depth = 0
published_status_type_id=GetMaximumWeightStatusTypeId(50)
PublishedStatusName=GetMaximumWeightStatusTypeName(50)
FillValues
Private Sub object822O()
err.clear
%><% dim position, url, myArray
position = InStrRev(Request.ServerVariables("URL"), "/")
url = Right(Request.ServerVariables("URL"),Len(Request.ServerVariables("URL"))-position)
if url = "page.asp" then
if IsNumeric(Value("page_id")) then
AddValue "current_page_filter", "[content_item_id] = " & Value("page_id")
else
AddValue "current_page_filter", "1 = 0"
end if
AddValue "current_page_url", "default.asp"
else
AddValue "current_page_filter", "[Ссылка] = '" & url & "'"
AddValue "current_page_url", url
end if
%><%
If Err.Number <> 0 Then
Response.write("Unable to display object 'получить фильтр страницы' correctly! Details: " & err.description)
End If
End Sub
Private Sub object823O()
err.clear
Dim FieldValuesDictionaryLocal, FieldNamesDictionaryLocal, ContainerInfoLocal
Dim FieldValuesDictionaryBackup, FieldNamesDictionaryBackup, ContainerInfoBackup
Set FieldValuesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set FieldNamesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set ContainerInfoLocal = New ContainerInfoClass
If IsObject(FieldValuesDictionary) Then Set FieldValuesDictionaryBackup = FieldValuesDictionary
If IsObject(FieldNamesDictionary) Then Set FieldNamesDictionaryBackup = FieldNamesDictionary
If IsObject(ContainerInfo) Then Set ContainerInfoBackup = ContainerInfo
Set FieldValuesDictionary = FieldValuesDictionaryLocal
Set FieldNamesDictionary = FieldNamesDictionaryLocal
Set ContainerInfo = ContainerInfoLocal
ContainerInfo.ContentID = 334
ContainerInfo.ContentName = "Разделы сайта"
AddValue "dynamicContentNameSource", "CONTENT_334 AS c WITH (NOLOCK)"
Dim cmd
Set cmd = GetContainerCommand(cnn, "c.*" & "" , Value("dynamicContentNameSource") & "" , "c.visible = 1 " & "AND c.status_type_id = 131 " &" and c.archive = 0" & GetContainerFilterExpression(Values("current_page_filter")), GetContainerOrderExpressionNew("",""), 1, 0,0)
Set ContainerInfo.RecordSet = Server.CreateObject("ADODB.Recordset")
With ContainerInfo.RecordSet
.CursorLocation = adUseClient
.Open cmd,, adOpenForwardOnly, adLockReadOnly
If .State <> adStateClosed Then
If Not .EOF Then
AppendFieldToDictionary "Картинка", 1191, 8, False, 334
End If
ContainerInfo.Init cmd, 50, 334, 1, 0
While Not .EOF
ContainerInfo.Adjust
InitFieldValues ContainerInfo.RecordSet
ContainerInfo.AdjustUploadUrl
%><%
AddValue "current_page_name", Field("Заголовок")
AddValue "current_page_text", Field("Текст")
AddValue "current_page_image", ContainerInfo.UploadUrl & "/" & Field("Картинка")
AddValue "current_page_id", Field("content_item_id")
AddValue "current_page_parent", Field("Родитель")
%><%
.MoveNext
Wend
.Close
End If
End With
Set ContainerInfo.RecordSet = Nothing
Set cmd = Nothing
DisposeContainer
If IsObject(FieldValuesDictionaryBackup) Then Set FieldValuesDictionary = FieldValuesDictionaryBackup
If IsObject(FieldNamesDictionaryBackup) Then Set FieldNamesDictionary = FieldNamesDictionaryBackup
If IsObject(ContainerInfoBackup) Then Set ContainerInfo = ContainerInfoBackup
Set FieldValuesDictionaryLocal = Nothing
Set FieldNamesDictionaryLocal = Nothing
Set ContainerInfoLocal = Nothing
If Err.Number <> 0 Then
Response.write("Unable to display object 'параметры страницы' correctly! Details: " & err.description)
End If
End Sub
Private Sub object806O()
err.clear
%>
<%
If Err.Number <> 0 Then
Response.write("Unable to display object 'css' correctly! Details: " & err.description)
End If
End Sub
Private Sub object807O()
err.clear
%>
<%
If Err.Number <> 0 Then
Response.write("Unable to display object 'javascript' correctly! Details: " & err.description)
End If
End Sub
Private Sub object828O()
err.clear
%>
<%
If Err.Number <> 0 Then
Response.write("Unable to display object 'body javascript' correctly! Details: " & err.description)
End If
End Sub
Private Sub object808O()
err.clear
%>
<%
If Err.Number <> 0 Then
Response.write("Unable to display object 'шапка' correctly! Details: " & err.description)
End If
End Sub
Private Sub object809O()
err.clear
%>
<%Object("akdal.Пункты меню")%>
<%
If Err.Number <> 0 Then
Response.write("Unable to display object 'меню' correctly! Details: " & err.description)
End If
End Sub
Private Sub object810O()
err.clear
%>
<%Object("Лучшие виды из иллюминаторов")%>
<% if Value("current_page_parent") <> "" then
AddValue "parent_filter" , "[Родитель] = " & Value("current_page_parent")
else
AddValue "parent_filter" , "[Родитель] = " & Value("current_page_id")
end if
'AddValue "parent_filter" , Value("parent_filter") & " and [content_item_id] <> " & Value("current_page_id")
AddValue "parent_filter" , Value("parent_filter") & " and [Показывать в меню] = 1 "
Object("Братья раздела")%>
<% Object("Основной блок") %>
<%
If Err.Number <> 0 Then
Response.write("Unable to display object 'центральная часть' correctly! Details: " & err.description)
End If
End Sub
Private Sub object811O()
err.clear
%>
<%
If Err.Number <> 0 Then
Response.write("Unable to display object 'нижний колонтитул' correctly! Details: " & err.description)
End If
End Sub
Private Sub object829O()
err.clear
Dim FieldValuesDictionaryLocal, FieldNamesDictionaryLocal, ContainerInfoLocal
Dim FieldValuesDictionaryBackup, FieldNamesDictionaryBackup, ContainerInfoBackup
Set FieldValuesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set FieldNamesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set ContainerInfoLocal = New ContainerInfoClass
If IsObject(FieldValuesDictionary) Then Set FieldValuesDictionaryBackup = FieldValuesDictionary
If IsObject(FieldNamesDictionary) Then Set FieldNamesDictionaryBackup = FieldNamesDictionary
If IsObject(ContainerInfo) Then Set ContainerInfoBackup = ContainerInfo
Set FieldValuesDictionary = FieldValuesDictionaryLocal
Set FieldNamesDictionary = FieldNamesDictionaryLocal
Set ContainerInfo = ContainerInfoLocal
ContainerInfo.ContentID = 334
ContainerInfo.ContentName = "Разделы сайта"
AddValue "dynamicContentNameSource", "CONTENT_334 AS c WITH (NOLOCK)"
Dim cmd
Set cmd = GetContainerCommand(cnn, "c.*" & "" , Value("dynamicContentNameSource") & "" , "c.visible IS NOT NULL " & "AND c.status_type_id = 131 " &" and c.archive = 0" & GetContainerFilterExpression("[Родитель] is null and [Показывать в меню] = 1"), GetContainerOrderExpressionNew("[Порядок] asc",""), 1, 0,0)
Set ContainerInfo.RecordSet = Server.CreateObject("ADODB.Recordset")
With ContainerInfo.RecordSet
.CursorLocation = adUseClient
.Open cmd,, adOpenForwardOnly, adLockReadOnly
If .State <> adStateClosed Then
If Not .EOF Then
AppendFieldToDictionary "Картинка", 1191, 8, False, 334
End If
ContainerInfo.Init cmd, 50, 334, 1, 0
While Not .EOF
ContainerInfo.Adjust
InitFieldValues ContainerInfo.RecordSet
ContainerInfo.AdjustUploadUrl
%>HM_Array<%=ContainerInfo.CurrentRecord %>=[[150,\"getLeft(<%=ContainerInfo.CurrentRecord%>,e)\",194,,,,,,,,,,,,,,,,,,]<%
AddValue "menu_filter", "[Родитель]=" & Field("content_item_id")
Object("HM_ArrayItems")
%>];<%
AddValue "array_name", ContainerInfo.CurrentRecord
AddValue "menu_filter", "[Родитель]=" & Field("content_item_id")
'Object("HM_Arrays Other Levels")
%><%
.MoveNext
Wend
.Close
End If
End With
Set ContainerInfo.RecordSet = Nothing
Set cmd = Nothing
DisposeContainer
If IsObject(FieldValuesDictionaryBackup) Then Set FieldValuesDictionary = FieldValuesDictionaryBackup
If IsObject(FieldNamesDictionaryBackup) Then Set FieldNamesDictionary = FieldNamesDictionaryBackup
If IsObject(ContainerInfoBackup) Then Set ContainerInfo = ContainerInfoBackup
Set FieldValuesDictionaryLocal = Nothing
Set FieldNamesDictionaryLocal = Nothing
Set ContainerInfoLocal = Nothing
If Err.Number <> 0 Then
Response.write("Unable to display object 'hm_arrays level 1' correctly! Details: " & err.description)
End If
End Sub
Private Sub object826TO()
err.clear
Dim FieldValuesDictionaryLocal, FieldNamesDictionaryLocal, ContainerInfoLocal
Dim FieldValuesDictionaryBackup, FieldNamesDictionaryBackup, ContainerInfoBackup
Set FieldValuesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set FieldNamesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set ContainerInfoLocal = New ContainerInfoClass
If IsObject(FieldValuesDictionary) Then Set FieldValuesDictionaryBackup = FieldValuesDictionary
If IsObject(FieldNamesDictionary) Then Set FieldNamesDictionaryBackup = FieldNamesDictionary
If IsObject(ContainerInfo) Then Set ContainerInfoBackup = ContainerInfo
Set FieldValuesDictionary = FieldValuesDictionaryLocal
Set FieldNamesDictionary = FieldNamesDictionaryLocal
Set ContainerInfo = ContainerInfoLocal
ContainerInfo.ContentID = 334
ContainerInfo.ContentName = "Разделы сайта"
AddValue "dynamicContentNameSource", "CONTENT_334 AS c WITH (NOLOCK)"
Dim cmd
Set cmd = GetContainerCommand(cnn, "c.*" & "" , Value("dynamicContentNameSource") & "" , "c.visible = 1 " & "AND c.status_type_id = 131 " &" and c.archive = 0" & GetContainerFilterExpression("[Показывать в меню] = 1 and [Родитель] is null"), GetContainerOrderExpressionNew("[Порядок] asc",""), 1, 0,0)
Set ContainerInfo.RecordSet = Server.CreateObject("ADODB.Recordset")
With ContainerInfo.RecordSet
.CursorLocation = adUseClient
.Open cmd,, adOpenForwardOnly, adLockReadOnly
If .State <> adStateClosed Then
If Not .EOF Then
AppendFieldToDictionary "Картинка", 1191, 8, False, 334
End If
ContainerInfo.Init cmd, 50, 334, 1, 0
While Not .EOF
ContainerInfo.Adjust
InitFieldValues ContainerInfo.RecordSet
ContainerInfo.AdjustUploadUrl
%><%
AddValue "first_level", "yes"
AddValue "item_id", Field("content_item_id")
AddValue "item_link", Field("Ссылка")
Object("akdal.Формирование ссылки")
%>
<%
.MoveNext
Wend
.Close
End If
End With
Set ContainerInfo.RecordSet = Nothing
Set cmd = Nothing
DisposeContainer
If IsObject(FieldValuesDictionaryBackup) Then Set FieldValuesDictionary = FieldValuesDictionaryBackup
If IsObject(FieldNamesDictionaryBackup) Then Set FieldNamesDictionary = FieldNamesDictionaryBackup
If IsObject(ContainerInfoBackup) Then Set ContainerInfo = ContainerInfoBackup
Set FieldValuesDictionaryLocal = Nothing
Set FieldNamesDictionaryLocal = Nothing
Set ContainerInfoLocal = Nothing
If Err.Number <> 0 Then
Response.write("Unable to display object 'пункты меню' correctly! Details: " & err.description)
End If
End Sub
Private Sub object812O()
err.clear
%>" border=0><%
If Err.Number <> 0 Then
Response.write("Unable to display object 'лучшие виды из иллюминаторов' correctly! Details: " & err.description)
End If
End Sub
Private Sub object827O()
err.clear
Dim FieldValuesDictionaryLocal, FieldNamesDictionaryLocal, ContainerInfoLocal
Dim FieldValuesDictionaryBackup, FieldNamesDictionaryBackup, ContainerInfoBackup
Set FieldValuesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set FieldNamesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set ContainerInfoLocal = New ContainerInfoClass
If IsObject(FieldValuesDictionary) Then Set FieldValuesDictionaryBackup = FieldValuesDictionary
If IsObject(FieldNamesDictionary) Then Set FieldNamesDictionaryBackup = FieldNamesDictionary
If IsObject(ContainerInfo) Then Set ContainerInfoBackup = ContainerInfo
Set FieldValuesDictionary = FieldValuesDictionaryLocal
Set FieldNamesDictionary = FieldNamesDictionaryLocal
Set ContainerInfo = ContainerInfoLocal
ContainerInfo.ContentID = 334
ContainerInfo.ContentName = "Разделы сайта"
AddValue "dynamicContentNameSource", "CONTENT_334 AS c WITH (NOLOCK)"
Dim cmd
Set cmd = GetContainerCommand(cnn, "c.*" & "" , Value("dynamicContentNameSource") & "" , "c.visible = 1 " & "AND c.status_type_id = 131 " &" and c.archive = 0" & GetContainerFilterExpression(Value("parent_filter")), GetContainerOrderExpressionNew("",""), 1, 0,0)
Set ContainerInfo.RecordSet = Server.CreateObject("ADODB.Recordset")
With ContainerInfo.RecordSet
.CursorLocation = adUseClient
.Open cmd,, adOpenForwardOnly, adLockReadOnly
If .State <> adStateClosed Then
If Not .EOF Then
AppendFieldToDictionary "Картинка", 1191, 8, False, 334
End If
ContainerInfo.Init cmd, 50, 334, 1, 0
While Not .EOF
ContainerInfo.Adjust
InitFieldValues ContainerInfo.RecordSet
ContainerInfo.AdjustUploadUrl
%><% if ContainerInfo.IsFirst then %>
<% end if %>
<%
AddValue "item_id", Field("content_item_id")
AddValue "item_link", Field("Ссылка")
Object("Формирование ссылки")
%>
<% end if%><%
.MoveNext
Wend
.Close
End If
End With
Set ContainerInfo.RecordSet = Nothing
Set cmd = Nothing
DisposeContainer
If IsObject(FieldValuesDictionaryBackup) Then Set FieldValuesDictionary = FieldValuesDictionaryBackup
If IsObject(FieldNamesDictionaryBackup) Then Set FieldNamesDictionary = FieldNamesDictionaryBackup
If IsObject(ContainerInfoBackup) Then Set ContainerInfo = ContainerInfoBackup
Set FieldValuesDictionaryLocal = Nothing
Set FieldNamesDictionaryLocal = Nothing
Set ContainerInfoLocal = Nothing
If Err.Number <> 0 Then
Response.write("Unable to display object 'братья раздела' correctly! Details: " & err.description)
End If
End Sub
Private Sub object821O()
err.clear
%>
<%=Value("current_page_name")%>
<%Object("Центр")%>
<%
If Err.Number <> 0 Then
Response.write("Unable to display object 'основной блок' correctly! Details: " & err.description)
End If
End Sub
Private Sub object830O()
err.clear
Dim FieldValuesDictionaryLocal, FieldNamesDictionaryLocal, ContainerInfoLocal
Dim FieldValuesDictionaryBackup, FieldNamesDictionaryBackup, ContainerInfoBackup
Set FieldValuesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set FieldNamesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set ContainerInfoLocal = New ContainerInfoClass
If IsObject(FieldValuesDictionary) Then Set FieldValuesDictionaryBackup = FieldValuesDictionary
If IsObject(FieldNamesDictionary) Then Set FieldNamesDictionaryBackup = FieldNamesDictionary
If IsObject(ContainerInfo) Then Set ContainerInfoBackup = ContainerInfo
Set FieldValuesDictionary = FieldValuesDictionaryLocal
Set FieldNamesDictionary = FieldNamesDictionaryLocal
Set ContainerInfo = ContainerInfoLocal
ContainerInfo.ContentID = 334
ContainerInfo.ContentName = "Разделы сайта"
AddValue "dynamicContentNameSource", "CONTENT_334 AS c WITH (NOLOCK)"
Dim cmd
Set cmd = GetContainerCommand(cnn, "c.*" & "" , Value("dynamicContentNameSource") & "" , "c.visible = 1 " & "AND c.status_type_id = 131 " &" and c.archive = 0" & GetContainerFilterExpression(Value("menu_filter")), GetContainerOrderExpressionNew("[Порядок] asc",""), 1, 0,0)
Set ContainerInfo.RecordSet = Server.CreateObject("ADODB.Recordset")
With ContainerInfo.RecordSet
.CursorLocation = adUseClient
.Open cmd,, adOpenForwardOnly, adLockReadOnly
If .State <> adStateClosed Then
If Not .EOF Then
AppendFieldToDictionary "Картинка", 1191, 8, False, 334
End If
ContainerInfo.Init cmd, 50, 334, 1, 0
While Not .EOF
ContainerInfo.Adjust
InitFieldValues ContainerInfo.RecordSet
ContainerInfo.AdjustUploadUrl
%><%
AddValue "item_id", Field("content_item_id")
AddValue "item_link", Field("Ссылка")
Object("Формирование ссылки")
%>,['<%=Field("Заголовок")%>', '<%=Value("result_link")%>', 1, 0, 1]<%
.MoveNext
Wend
.Close
End If
End With
Set ContainerInfo.RecordSet = Nothing
Set cmd = Nothing
DisposeContainer
If IsObject(FieldValuesDictionaryBackup) Then Set FieldValuesDictionary = FieldValuesDictionaryBackup
If IsObject(FieldNamesDictionaryBackup) Then Set FieldNamesDictionary = FieldNamesDictionaryBackup
If IsObject(ContainerInfoBackup) Then Set ContainerInfo = ContainerInfoBackup
Set FieldValuesDictionaryLocal = Nothing
Set FieldNamesDictionaryLocal = Nothing
Set ContainerInfoLocal = Nothing
If Err.Number <> 0 Then
Response.write("Unable to display object 'hm_arrayitems' correctly! Details: " & err.description)
End If
End Sub
Private Sub object863TO()
err.clear
%><%
if Len(Value("item_link")) > 0 then
if InStr(Value("item_link"),"http://") then AddValue "new_window", "1"
AddValue "result_link", Value("item_link")
else
AddValue "result_link", "page.asp?page_id=" & Value("item_id")
end if
if Value("first_level") = "yes" then
AddValue "parent_id", Value("item_id")
AddValue "has_subitems", ""
Object("akdal.Наличие подпунктов")
AddValue "first_level", ""
end if
%><%
If Err.Number <> 0 Then
Response.write("Unable to display object 'формирование ссылки' correctly! Details: " & err.description)
End If
End Sub
Private Sub object863O()
err.clear
%><%
if Len(Value("item_link")) > 0 then
if InStr(Value("item_link"),"http://") then AddValue "new_window", "1"
AddValue "result_link", Value("item_link")
else
AddValue "result_link", "page.asp?page_id=" & Value("item_id")
end if
if Value("first_level") = "yes" then
AddValue "parent_id", Value("item_id")
AddValue "has_subitems", ""
Object("akdal.Наличие подпунктов")
AddValue "first_level", ""
end if
%><%
If Err.Number <> 0 Then
Response.write("Unable to display object 'формирование ссылки' correctly! Details: " & err.description)
End If
End Sub
Private Sub object843O()
err.clear
%><%if Len(Value("air"))>0 then%>
<%end if%><%
If Err.Number <> 0 Then
Response.write("Unable to display object 'центр' correctly! Details: " & err.description)
End If
End Sub
Private Sub object832TO()
err.clear
Dim FieldValuesDictionaryLocal, FieldNamesDictionaryLocal, ContainerInfoLocal
Dim FieldValuesDictionaryBackup, FieldNamesDictionaryBackup, ContainerInfoBackup
Set FieldValuesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set FieldNamesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set ContainerInfoLocal = New ContainerInfoClass
If IsObject(FieldValuesDictionary) Then Set FieldValuesDictionaryBackup = FieldValuesDictionary
If IsObject(FieldNamesDictionary) Then Set FieldNamesDictionaryBackup = FieldNamesDictionary
If IsObject(ContainerInfo) Then Set ContainerInfoBackup = ContainerInfo
Set FieldValuesDictionary = FieldValuesDictionaryLocal
Set FieldNamesDictionary = FieldNamesDictionaryLocal
Set ContainerInfo = ContainerInfoLocal
ContainerInfo.ContentID = 334
ContainerInfo.ContentName = "Разделы сайта"
AddValue "dynamicContentNameSource", "CONTENT_334 AS c WITH (NOLOCK)"
Dim cmd
Set cmd = GetContainerCommand(cnn, "c.*" & "" , Value("dynamicContentNameSource") & "" , "c.visible = 1 " & "AND c.status_type_id = 131 " &" and c.archive = 0" & GetContainerFilterExpression("[Родитель] = " & Value("parent_id") & " and [Показывать в меню] = 1"), GetContainerOrderExpressionNew("[Порядок] asc",""), 1, 0,0)
Set ContainerInfo.RecordSet = Server.CreateObject("ADODB.Recordset")
With ContainerInfo.RecordSet
.CursorLocation = adUseClient
.Open cmd,, adOpenForwardOnly, adLockReadOnly
If .State <> adStateClosed Then
If Not .EOF Then
AppendFieldToDictionary "Картинка", 1191, 8, False, 334
End If
ContainerInfo.Init cmd, 50, 334, 1, 0
While Not .EOF
ContainerInfo.Adjust
InitFieldValues ContainerInfo.RecordSet
ContainerInfo.AdjustUploadUrl
%><%
if ContainerInfo.IsFirst then
AddValue "has_subitems", "1"
AddValue "item_id", Field("content_item_id")
AddValue "item_link", Field("Ссылка")
Object("akdal.Формирование ссылки")
end if
%><%
.MoveNext
Wend
.Close
End If
End With
Set ContainerInfo.RecordSet = Nothing
Set cmd = Nothing
DisposeContainer
If IsObject(FieldValuesDictionaryBackup) Then Set FieldValuesDictionary = FieldValuesDictionaryBackup
If IsObject(FieldNamesDictionaryBackup) Then Set FieldNamesDictionary = FieldNamesDictionaryBackup
If IsObject(ContainerInfoBackup) Then Set ContainerInfo = ContainerInfoBackup
Set FieldValuesDictionaryLocal = Nothing
Set FieldNamesDictionaryLocal = Nothing
Set ContainerInfoLocal = Nothing
If Err.Number <> 0 Then
Response.write("Unable to display object 'наличие подпунктов' correctly! Details: " & err.description)
End If
End Sub
Private Sub object851O()
err.clear
Dim FieldValuesDictionaryLocal, FieldNamesDictionaryLocal, ContainerInfoLocal
Dim FieldValuesDictionaryBackup, FieldNamesDictionaryBackup, ContainerInfoBackup
Set FieldValuesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set FieldNamesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set ContainerInfoLocal = New ContainerInfoClass
If IsObject(FieldValuesDictionary) Then Set FieldValuesDictionaryBackup = FieldValuesDictionary
If IsObject(FieldNamesDictionary) Then Set FieldNamesDictionaryBackup = FieldNamesDictionary
If IsObject(ContainerInfo) Then Set ContainerInfoBackup = ContainerInfo
Set FieldValuesDictionary = FieldValuesDictionaryLocal
Set FieldNamesDictionary = FieldNamesDictionaryLocal
Set ContainerInfo = ContainerInfoLocal
ContainerInfo.ContentID = 340
ContainerInfo.ContentName = "Фотогалерея самолетов"
AddValue "dynamicContentNameSource", "CONTENT_340 AS c WITH (NOLOCK)"
Dim cmd
Set cmd = GetContainerCommand(cnn, "c.*" & "" , Value("dynamicContentNameSource") & "" , "c.visible = 1 " & "AND c.status_type_id = 131 " &" and c.archive = 0" & GetContainerFilterExpression("[Самолет]="&Value("air")), GetContainerOrderExpressionNew("",""), 1, 0,0)
Set ContainerInfo.RecordSet = Server.CreateObject("ADODB.Recordset")
With ContainerInfo.RecordSet
.CursorLocation = adUseClient
.Open cmd,, adOpenForwardOnly, adLockReadOnly
If .State <> adStateClosed Then
If Not .EOF Then
AppendFieldToDictionary "Картинка", 1223, 8, False, 340
End If
ContainerInfo.Init cmd, 50, 340, 1, 0
While Not .EOF
ContainerInfo.Adjust
InitFieldValues ContainerInfo.RecordSet
ContainerInfo.AdjustUploadUrl
%>
<% if ContainerInfo.CurrentRecord mod 2 = 1 then%>
<% if ContainerInfo.isLast then%>
" border=0 align="center" class="airim">
<%else%>
" border=0 align="center" class="airim">
<% end if%>
<%end if%>
<% if ContainerInfo.CurrentRecord mod 2 = 0 then%>
" border=0 align="center" class="airim">
<%end if%><%
.MoveNext
Wend
.Close
End If
End With
Set ContainerInfo.RecordSet = Nothing
Set cmd = Nothing
DisposeContainer
If IsObject(FieldValuesDictionaryBackup) Then Set FieldValuesDictionary = FieldValuesDictionaryBackup
If IsObject(FieldNamesDictionaryBackup) Then Set FieldNamesDictionary = FieldNamesDictionaryBackup
If IsObject(ContainerInfoBackup) Then Set ContainerInfo = ContainerInfoBackup
Set FieldValuesDictionaryLocal = Nothing
Set FieldNamesDictionaryLocal = Nothing
Set ContainerInfoLocal = Nothing
If Err.Number <> 0 Then
Response.write("Unable to display object 'фотоархив' correctly! Details: " & err.description)
End If
End Sub
Private Sub object966O()
err.clear
Dim FieldValuesDictionaryLocal, FieldNamesDictionaryLocal, ContainerInfoLocal
Dim FieldValuesDictionaryBackup, FieldNamesDictionaryBackup, ContainerInfoBackup
Set FieldValuesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set FieldNamesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set ContainerInfoLocal = New ContainerInfoClass
If IsObject(FieldValuesDictionary) Then Set FieldValuesDictionaryBackup = FieldValuesDictionary
If IsObject(FieldNamesDictionary) Then Set FieldNamesDictionaryBackup = FieldNamesDictionary
If IsObject(ContainerInfo) Then Set ContainerInfoBackup = ContainerInfo
Set FieldValuesDictionary = FieldValuesDictionaryLocal
Set FieldNamesDictionary = FieldNamesDictionaryLocal
Set ContainerInfo = ContainerInfoLocal
ContainerInfo.ContentID = 341
ContainerInfo.ContentName = "Самолеты"
AddValue "dynamicContentNameSource", "CONTENT_341 AS c WITH (NOLOCK)"
Dim cmd
Set cmd = GetContainerCommand(cnn, "c.*" & "" , Value("dynamicContentNameSource") & "" , "c.visible = 1 " & "AND c.status_type_id = 131 " &" and c.archive = 0" & GetContainerFilterExpression("[content_item_id] = " & Value("air")), GetContainerOrderExpressionNew("",""), 1, 0,0)
Set ContainerInfo.RecordSet = Server.CreateObject("ADODB.Recordset")
With ContainerInfo.RecordSet
.CursorLocation = adUseClient
.Open cmd,, adOpenForwardOnly, adLockReadOnly
If .State <> adStateClosed Then
If Not .EOF Then
AppendFieldToDictionary "Картинка", 1254, 8, False, 341
End If
ContainerInfo.Init cmd, 50, 341, 1, 0
While Not .EOF
ContainerInfo.Adjust
InitFieldValues ContainerInfo.RecordSet
ContainerInfo.AdjustUploadUrl
%><%=Field("Описание")%><%
.MoveNext
Wend
.Close
End If
End With
Set ContainerInfo.RecordSet = Nothing
Set cmd = Nothing
DisposeContainer
If IsObject(FieldValuesDictionaryBackup) Then Set FieldValuesDictionary = FieldValuesDictionaryBackup
If IsObject(FieldNamesDictionaryBackup) Then Set FieldNamesDictionary = FieldNamesDictionaryBackup
If IsObject(ContainerInfoBackup) Then Set ContainerInfo = ContainerInfoBackup
Set FieldValuesDictionaryLocal = Nothing
Set FieldNamesDictionaryLocal = Nothing
Set ContainerInfoLocal = Nothing
If Err.Number <> 0 Then
Response.write("Unable to display object 'описание самолета' correctly! Details: " & err.description)
End If
End Sub
Private Sub object963O()
err.clear
Dim FieldValuesDictionaryLocal, FieldNamesDictionaryLocal, ContainerInfoLocal
Dim FieldValuesDictionaryBackup, FieldNamesDictionaryBackup, ContainerInfoBackup
Set FieldValuesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set FieldNamesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set ContainerInfoLocal = New ContainerInfoClass
If IsObject(FieldValuesDictionary) Then Set FieldValuesDictionaryBackup = FieldValuesDictionary
If IsObject(FieldNamesDictionary) Then Set FieldNamesDictionaryBackup = FieldNamesDictionary
If IsObject(ContainerInfo) Then Set ContainerInfoBackup = ContainerInfo
Set FieldValuesDictionary = FieldValuesDictionaryLocal
Set FieldNamesDictionary = FieldNamesDictionaryLocal
Set ContainerInfo = ContainerInfoLocal
ContainerInfo.ContentID = 365
ContainerInfo.ContentName = "Самолеты компоновка"
AddValue "dynamicContentNameSource", "CONTENT_365 AS c WITH (NOLOCK)"
Dim cmd
Set cmd = GetContainerCommand(cnn, "c.*" & "" , Value("dynamicContentNameSource") & "" , "c.visible = 1 " & "AND c.status_type_id = 131 " &" and c.archive = 0" & GetContainerFilterExpression("[Самолет] = " & Value("air")), GetContainerOrderExpressionNew("[Порядок] asc",""), 1, 0,0)
Set ContainerInfo.RecordSet = Server.CreateObject("ADODB.Recordset")
With ContainerInfo.RecordSet
.CursorLocation = adUseClient
.Open cmd,, adOpenForwardOnly, adLockReadOnly
If .State <> adStateClosed Then
If Not .EOF Then
AppendFieldToDictionary "Картинка", 1406, 8, False, 365
End If
ContainerInfo.Init cmd, 50, 365, 1, 0
While Not .EOF
ContainerInfo.Adjust
InitFieldValues ContainerInfo.RecordSet
ContainerInfo.AdjustUploadUrl
%> <%=Field("Название")%>
<%
.MoveNext
Wend
.Close
End If
End With
Set ContainerInfo.RecordSet = Nothing
Set cmd = Nothing
DisposeContainer
If IsObject(FieldValuesDictionaryBackup) Then Set FieldValuesDictionary = FieldValuesDictionaryBackup
If IsObject(FieldNamesDictionaryBackup) Then Set FieldNamesDictionary = FieldNamesDictionaryBackup
If IsObject(ContainerInfoBackup) Then Set ContainerInfo = ContainerInfoBackup
Set FieldValuesDictionaryLocal = Nothing
Set FieldNamesDictionaryLocal = Nothing
Set ContainerInfoLocal = Nothing
If Err.Number <> 0 Then
Response.write("Unable to display object 'компоновки' correctly! Details: " & err.description)
End If
End Sub
Private Sub object844O()
err.clear
Dim FieldValuesDictionaryLocal, FieldNamesDictionaryLocal, ContainerInfoLocal
Dim FieldValuesDictionaryBackup, FieldNamesDictionaryBackup, ContainerInfoBackup
Set FieldValuesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set FieldNamesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set ContainerInfoLocal = New ContainerInfoClass
If IsObject(FieldValuesDictionary) Then Set FieldValuesDictionaryBackup = FieldValuesDictionary
If IsObject(FieldNamesDictionary) Then Set FieldNamesDictionaryBackup = FieldNamesDictionary
If IsObject(ContainerInfo) Then Set ContainerInfoBackup = ContainerInfo
Set FieldValuesDictionary = FieldValuesDictionaryLocal
Set FieldNamesDictionary = FieldNamesDictionaryLocal
Set ContainerInfo = ContainerInfoLocal
ContainerInfo.ContentID = 341
ContainerInfo.ContentName = "Самолеты"
AddValue "dynamicContentNameSource", "CONTENT_341 AS c WITH (NOLOCK)"
Dim cmd
Set cmd = GetContainerCommand(cnn, "c.*" & "" , Value("dynamicContentNameSource") & "" , "c.visible = 1 " & "AND c.status_type_id = 131 " &" and c.archive = 0" & GetContainerFilterExpression(""), GetContainerOrderExpressionNew("",""), 1, 0,0)
Set ContainerInfo.RecordSet = Server.CreateObject("ADODB.Recordset")
With ContainerInfo.RecordSet
.CursorLocation = adUseClient
.Open cmd,, adOpenForwardOnly, adLockReadOnly
If .State <> adStateClosed Then
If Not .EOF Then
AppendFieldToDictionary "Картинка", 1254, 8, False, 341
End If
ContainerInfo.Init cmd, 50, 341, 1, 0
While Not .EOF
ContainerInfo.Adjust
InitFieldValues ContainerInfo.RecordSet
ContainerInfo.AdjustUploadUrl
%><% Dim nm,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13%>
<%nm = nm&"
"&Field("Название")&"
"
p1 = p1&"
"&Field("Максимальная коммерческая загрузка")&"
"
p2 = p2&"
"&Field("Взлетная масса")&"
"
p3 = p3&"
"& Field("Количество кресел для пассажиров") &"
"
p4 = p4&"
"& Field("Практическая дальность полета с максимальной загрузкой") &"
"
p6 = p6&"
"&Field("Высота полета")&"
"
p7 = p7&"
"&Field("Крейсерская скорость полета")&"
"
p8 = p8&"
"&Field("Количество двигателей")&"
"
p9 = p9&"
"&Field("Тяга взлетная каждого двигателя")&"
"
p10 = p10&"
"&Field("Длина самолета")&"
"
p11 = p11&"
"&Field("Максимальная высота")&"
"
p12 = p12&"
"&Field("Размах крыльев")&"
"
p13 = p13&"
"&Field("Колея шасси")&"
"
if ContainerInfo.IsLast then %>
Основные характеристики
<%=nm%>
Максимальная коммерческая загрузка, тонн
<%=p1%>
Взлетная масса, тонн
<%=p2%>
Количество кресел для пассажиров
<%=p3%>
Практическая дальность полета с максимальной коммерческой загрузкой, км
<%=p4%>
Высота полета, метров
<%=p6%>
Крейсерская скорость полета, километров в час
<%=p7%>
Количество двигателей
<%=p8%>
Тяга взлетная каждого двигателя, тонна-сил
<%=p9%>
Длина самолета, метров
<%=p10%>
Максимальная высота, метров
<%=p11%>
Размах крыльев, метров
<%=p12%>
Колея шасси, метров
<%=p13%>
<%end if%><%
.MoveNext
Wend
.Close
End If
End With
Set ContainerInfo.RecordSet = Nothing
Set cmd = Nothing
DisposeContainer
If IsObject(FieldValuesDictionaryBackup) Then Set FieldValuesDictionary = FieldValuesDictionaryBackup
If IsObject(FieldNamesDictionaryBackup) Then Set FieldNamesDictionary = FieldNamesDictionaryBackup
If IsObject(ContainerInfoBackup) Then Set ContainerInfo = ContainerInfoBackup
Set FieldValuesDictionaryLocal = Nothing
Set FieldNamesDictionaryLocal = Nothing
Set ContainerInfoLocal = Nothing
If Err.Number <> 0 Then
Response.write("Unable to display object 'основные характеристики' correctly! Details: " & err.description)
End If
End Sub
Private Sub object849O()
err.clear
Dim FieldValuesDictionaryLocal, FieldNamesDictionaryLocal, ContainerInfoLocal
Dim FieldValuesDictionaryBackup, FieldNamesDictionaryBackup, ContainerInfoBackup
Set FieldValuesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set FieldNamesDictionaryLocal = CreateObject("Scripting.Dictionary")
Set ContainerInfoLocal = New ContainerInfoClass
If IsObject(FieldValuesDictionary) Then Set FieldValuesDictionaryBackup = FieldValuesDictionary
If IsObject(FieldNamesDictionary) Then Set FieldNamesDictionaryBackup = FieldNamesDictionary
If IsObject(ContainerInfo) Then Set ContainerInfoBackup = ContainerInfo
Set FieldValuesDictionary = FieldValuesDictionaryLocal
Set FieldNamesDictionary = FieldNamesDictionaryLocal
Set ContainerInfo = ContainerInfoLocal
ContainerInfo.ContentID = 341
ContainerInfo.ContentName = "Самолеты"
AddValue "dynamicContentNameSource", "CONTENT_341 AS c WITH (NOLOCK)"
Dim cmd
Set cmd = GetContainerCommand(cnn, "c.*" & "" , Value("dynamicContentNameSource") & "" , "c.visible = 1 " & "AND c.status_type_id = 131 " &" and c.archive = 0" & GetContainerFilterExpression(""), GetContainerOrderExpressionNew("[Название] asc",""), 1, 0,0)
Set ContainerInfo.RecordSet = Server.CreateObject("ADODB.Recordset")
With ContainerInfo.RecordSet
.CursorLocation = adUseClient
.Open cmd,, adOpenForwardOnly, adLockReadOnly
If .State <> adStateClosed Then
If Not .EOF Then
AppendFieldToDictionary "Картинка", 1254, 8, False, 341
End If
ContainerInfo.Init cmd, 50, 341, 1, 0
While Not .EOF
ContainerInfo.Adjust
InitFieldValues ContainerInfo.RecordSet
ContainerInfo.AdjustUploadUrl
%><%AddValue "air_id", Field("content_item_id")%>
<% if ContainerInfo.CurrentRecord mod 3 = 2 then%>
<% if ContainerInfo.isLast then%>
<%end if%><%
.MoveNext
Wend
.Close
End If
End With
Set ContainerInfo.RecordSet = Nothing
Set cmd = Nothing
DisposeContainer
If IsObject(FieldValuesDictionaryBackup) Then Set FieldValuesDictionary = FieldValuesDictionaryBackup
If IsObject(FieldNamesDictionaryBackup) Then Set FieldNamesDictionary = FieldNamesDictionaryBackup
If IsObject(ContainerInfoBackup) Then Set ContainerInfo = ContainerInfoBackup
Set FieldValuesDictionaryLocal = Nothing
Set FieldNamesDictionaryLocal = Nothing
Set ContainerInfoLocal = Nothing
If Err.Number <> 0 Then
Response.write("Unable to display object 'фото самолета' correctly! Details: " & err.description)
End If
End Sub
Private Sub CallStackOverflow()
Response.Write "Object Call Stack Overflow Call Stack: "
dim i
for i=1 to 20
Response.Write object_call_stack(i)&" "
next
Response.End
End Sub
Private Function ObjectNS(name)
Object(name)
End Function
Private Function Object(name)
object_call_depth = object_call_depth + 1
if object_call_depth > 20 then CallStackOverflow
object_call_stack(object_call_depth) = name
Select Case Trim(lCase(name))
Case Trim("получить фильтр страницы")
object822O
Case Trim("параметры страницы")
object823O
Case Trim("css")
object806O
Case Trim("javascript")
object807O
Case Trim("body javascript")
object828O
Case Trim("шапка")
object808O
Case Trim("меню")
object809O
Case Trim("центральная часть")
object810O
Case Trim("нижний колонтитул")
object811O
Case Trim("hm_arrays level 1")
object829O
Case Trim("akdal.пункты меню")
object826TO
Case Trim("лучшие виды из иллюминаторов")
object812O
Case Trim("братья раздела")
object827O
Case Trim("основной блок")
object821O
Case Trim("hm_arrayitems")
object830O
Case Trim("akdal.формирование ссылки")
object863TO
Case Trim("формирование ссылки")
object863O
Case Trim("центр")
object843O
Case Trim("akdal.наличие подпунктов")
object832TO
Case Trim("фотоархив")
object851O
Case Trim("описание самолета")
object966O
Case Trim("компоновки")
object963O
Case Trim("основные характеристики")
object844O
Case Trim("фото самолета")
object849O
Case Else
Response.Write "Object " & name & " not found. "
End Select
object_call_depth = object_call_depth - 1
End Function
Function LangObject (objectName)
Dim lang
lang = Value ("lang")
if ( lang = "en" or lang = "am" ) then
Object (objectName & "_" & lang)
else
Object (objectName)
end if
End Function
%>
<% Object("Получить фильтр страницы") %>
<% Object("Параметры страницы") %>
<% if Value("wdate") <> "" then Session("wdate") = Value("wdate")
AddValue "wdate", Session("wdate") %>
Авиакомпания «Домодедовские авиалинии» - <%=Value("current_page_name")%>
<% Object("CSS") %>
<% Object("Javascript")%>
<% Object("Body Javascript")%>