<%@ Language=VBScript %> <% Option Explicit %> <% Dim strPM, PM, Im1path, Im2path, LogoMain, FSYS, Logo, strSQL, RI strPM = "SELECT * FROM PageMinder WHERE ID = 2" Set PM = CreateObject("ADODB.RecordSet") PM.Open strPM, objConn strSQL = "SELECT * FROM Restaurants" Set RI = CreateObject("ADODB.RecordSet") RI.Open strSQL, objConn Set FSYS = Server.CreateObject("Scripting.FileSystemObject") Im1path = Server.MapPath ("pageminder") & "\" & PM("Image1") Im2path = Server.MapPath ("pageminder") & "\" & PM("Image2") If Layout("LogoSub") > "" Then LogoMain = Server.MapPath ("logo") & "\" & Layout("LogoSub") If FSYS.FileExists(LogoMain) Then Logo = Layout("LogoSub") Else LogoMain = Server.MapPath ("logo") & "\" & Layout("LogoMain") If FSYS.FileExists(LogoMain) Then Logo = Layout("LogoMain") End If %> <%=PM("PageTitle")%> "> "> " marginwidth="<%=Layout("LeftMargin")%>" topmargin="<%=Layout("TopMargin")%>" marginheight="<%=Layout("TopMargin")%>"> <% If Layout("PageAlign") = "Center" Then %>
<% End If %> <% If BRC = "True" OR TRC = "True" Then %> "100%"<% Else %>"780"<% End If %>> <% If TRC = "True" Then %> <% End If %> <% If BRC = "True" Then %> <% End If %>
><% If Layout("TL") = "True" Then %><% End If %> ><% If Layout("TR") = "True" Then %><% End If %>
<% End If %><% If Layout("NavLoc") = "Horizontal" Then %> bgcolor="white"<% End If %> width=<% If Layout("PageAlign") = "Full" Then %>"100%"<% If Layout("PageHeight") = True Then %> height="100%"<% End If %><% Else %><% If TRC OR BRC = "True" Then %>"750"<% Else %>"780"<% If Layout("PageHeight") = True Then %> height="100%"<% End If %><% End If %><% End If %>> <% If Layout("LogoPos") = "Below" Then %> <% End If %><% If FSYS.FileExists(LogoMain) Then %> <% End If %><% If Layout("LogoPos") = "Above" Then %> <% End If %>
Layout("HdrImg") Then %>bgcolor="<%=Layout("HdrImg")%>"<% End If %> align="<%=Layout("NavAlign")%>">
">
<% If FSYS.FileExists(im1Path) Then %>
style="padding-right: 6px; padding-bottom: 6px; filter:shadow(color:gray, strength:4, direction:135);"<% End If %>> <% Response.Write CoName & " border='<% If PM("Img1Border") = True Then %>1<% Else %>0<% End If %>'>
<% End If %><% If PM("Headline").ActualSize > 0 Then %>
<%=PM("Headline")%>
<% End If %><% If PM("HeaderText").ActualSize > 0 Then %>
<%=PM("HeaderText")%>
<% End If %><% If PM("BodyText").ActualSize > 0 OR RI("Chef").ActualSize > 0 OR RI("ChefBio").ActualSize > 0 Then %>
<%=PM("BodyText")%> <% If RI("ChefImage").ActualSize > 1 Then %><% End If %><%=RI("Chef")%>
<%=Replace(RI("ChefBio"),vbCrLf, "
")%>
<% End If %> <% If FSYS.FileExists(im2Path) Then %>
style="padding-right: 6px; padding-bottom: 6px; filter:shadow(color:gray, strength:4, direction:135);"<% End If %>> <% Response.Write CoName & " border='<% If PM("Img2Border") = True Then %>1<% Else %>0<% End If %>'>
<% End If %><% If PM("FooterText").ActualSize > 0 Then %>
<%=PM("FooterText")%>
<% End If %>
<% If Layout("OptIn") = True Then %><% End If %>
<% Else %> bgcolor="white"<% End If %> width=<% If Layout("PageAlign") = "Full" Then %>"100%"<% If Layout("PageHeight") = True Then %> height="100%"<% End If %><% Else %><% If TRC OR BRC = "True" Then %>"750"<% Else %>"780"<% If Layout("PageHeight") = True Then %> height="100%"<% End If %><% End If %><% End If %>> <% If FSYS.FileExists(LogoMain) Then %> <% End If %>
" width="125" valign="top"> <% If FSYS.FileExists(im1Path) Then %>
style="padding-right: 6px; padding-bottom: 6px; filter:shadow(color:gray, strength:4, direction:135);"<% End If %>> <% Response.Write CoName & " border='<% If PM("Img1Border") = True Then %>1<% Else %>0<% End If %>'>
<% End If %><% If PM("Headline").ActualSize > 0 Then %>
<%=PM("Headline")%>
<% End If %><% If PM("HeaderText").ActualSize > 0 Then %>
<%=PM("HeaderText")%>
<% End If %><% If PM("BodyText").ActualSize > 0 OR RI("Chef").ActualSize > 0 OR RI("ChefBio").ActualSize > 0 Then %>
<%=PM("BodyText")%> <% If RI("ChefImage").ActualSize > 1 Then %><% End If %><%=RI("Chef")%>
<%=Replace(RI("ChefBio"),vbCrLf, "
")%>
<% End If %> <% If FSYS.FileExists(im2Path) Then %>
style="padding-right: 6px; padding-bottom: 6px; filter:shadow(color:gray, strength:4, direction:135);"<% End If %>> <% Response.Write CoName & " border='<% If PM("Img2Border") = True Then %>1<% Else %>0<% End If %>'>
<% End If %><% If PM("FooterText").ActualSize > 0 Then %>
<%=PM("FooterText")%>
<% End If %>
<% End If %><% If TRC = "True" OR BRC = "True"Then %>
><% If Layout("BL") = "True" Then %><% End If %> ><% If Layout("BR") = "True" Then %><% End If %>
<% End If %><% If Layout("PageAlign") = "Center" Then %>
<% End If %> <% PM.Close Set PM = Nothing RI.Close Set RI = Nothing Layout.Close Set Layout = Nothing siteNav.Close Set siteNav = Nothing Set FSYS = Nothing objConn.Close Set objConn = Nothing %>