%@ Language=VBScript%> <% wantSub = Request.QueryString( "sub" ) wantMain = Request.QueryString( "main" ) wantID = Request.QueryString( "ID" ) if wantMain = "" then Response.Redirect ( "index.asp" ) end if if wantSub = "" then image = wantMain else image = wantSub end if isDefault = ( wantMain = "non-www" and wantSub = "info") or ( wantMain = "www" and wantSub = "info" ) or ( wantMain = "info" and wantSub = "aboutspeedway" ) or ( wantsub="" ) connstr = f_getConnString( server.MapPath( "databas/db1.mdb" ) ) %>
<%
select case wantMain
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
case "news"
if wantID = "" then
sql = "SELECT news.newsID AS newsID, news.newsDate AS dte, news.header AS header "&_
"FROM news "&_
"ORDER BY news.newsDate DESC"
rs.Open sql, connStr
Response.Write( "
<%= rs( "body" ) %> <% call showNavigation( "news" ) end if end if ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' case "info" if isDefault then Response.Write( f_readFile( "inc/info_index.txt" ) ) else Response.Write( f_readFile( "inc/eotm.txt" ) ) end if ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' case "www", "non-www" category = wantMain & "_" & wantSub '''''''''''''''''''''''''''''' if isDefault then Response.Write( f_readFile( "inc/" & wantMain & "_index.txt" ) ) '''''''''''''''''''''''''''''' elseif wantID = "" then sql = "SELECT clients.clientName AS client, work.indexText AS indxTxt, work.header AS projName, work.workID AS workID "&_ "FROM categories INNER JOIN (clients INNER JOIN work ON clients.clientID = work.clientID) ON categories.categoryID = work.categoryID "&_ "WHERE categories.categoryName = '" & category & "' "&_ "ORDER BY clients.clientName, work.header" rs.Open sql, connstr Response.Write( "
<% if category <> "www_projects" then %> Client: <%= rs( "client" ) %> <% end if %> <% if not isNull( rs( "img" ) ) and trim( rs( "img" ) ) <> "" then %>
" Response.Write " " end if %> |