<%
set rs = server.createobject("ADODB.Recordset")
strSql = "select top 1 A.Event_ID_PK, B.Img_Path from tblEvent A, tblImage B where A.Event_ID_PK = B.ID_FK"
strSql = strSql & " and A.theDate >= date() and A.IsFeature = 1 and A.PagePosition = 'L1'"
rs.open strSql, Conn
if not rs.eof then
%>
"> " WIDTH=165 HEIGHT=245 ALT="" border=0>
<%
else 'show a default image if there's no available featured event
response.write " "
end if
rs.close
%>
|
<%
strSql = "select top 1 A.Event_ID_PK, B.Img_Path from tblEvent A, tblImage B where A.Event_ID_PK = B.ID_FK"
strSql = strSql & " and A.theDate >= date() and A.IsFeature = 1 and A.PagePosition = 'R1'"
rs.open strSql, Conn
if not rs.eof then
%>
"> " WIDTH=260 HEIGHT=120 ALT="" border=0>
<%
else 'show a default image if there's no available featured event
response.write " "
end if
rs.close
%>
|
<%
strSql = "select top 1 A.Event_ID_PK, B.Img_Path from tblEvent A, tblImage B where A.Event_ID_PK = B.ID_FK"
strSql = strSql & " and A.theDate >= date() and A.IsFeature = 1 and A.PagePosition = 'R2'"
rs.open strSql, Conn
if not rs.eof then
%>
"> " WIDTH=260 HEIGHT=125 ALT="" border=0>
<%
else 'show a default image if there's no available featured event
response.write " "
end if
rs.close
%>
|
|
|
 |
|