%
Dim sPath, sScriptDir, sDSN
Const adOpenKeyset = 1
Const adLockPessimistic = 2
sScriptDir = Request.ServerVariables("SCRIPT_NAME")
sScriptDir = StrReverse(sScriptDir)
sScriptDir = Mid(sScriptDir, InStr(1, sScriptDir, "/"))
sScriptDir = StrReverse(sScriptDir)
sPath = Server.MapPath(sScriptDir) & "\"
sDSN="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/dados/mcruz3z.mdb")
sSQLCat = "SELECT * FROM mod4 ORDER BY texto"
set RsCat=Server.CreateObject("ADODB.Recordset")
RsCat.Open sSQLCat, sDSN, adOpenKeySet, adLockPessimistic
sSQLCatx = "SELECT * FROM home ORDER BY ordem"
set RsCatx=Server.CreateObject("ADODB.Recordset")
RsCatx.Open sSQLCatx, sDSN, adOpenKeySet, adLockPessimistic
If Not RsCatx.Bof then
RsCatx.Movefirst
End if
%>
MARCOS CRUZ || || Últ.Atual.em Jul 2011
<% if RsCatx("imgfundo")<>"" then %>
bgcolor="#000000"<% else %>bgcolor="<%= RsCatx("cor") %>"<% end if %> leftmargin="0" topmargin="0">
<% else %>
bgcolor="#000000"<% else %>bgcolor="<%= RsCatx("cor") %>"<% end if %> background="../upload/<%= RsCatx("imgfundo") %>" leftmargin="0" topmargin="0">
<% end if %>
| |
| |
" width="249" height="300"> |
|
<%
RsCatx.close
Set RsCatx = Nothing
RsCat.close
Set RsCat = Nothing
%>