% @Language=VBScript %> <% insertBrowserdata("articles") %> <% Dim Rs, RsString If Request.ServerVariables("QUERY_STRING") <> "" Then ' Ota yhteys tietokantaan %> <% Set Rs = Server.CreateObject("ADODB.Recordset") RsString = "SELECT * FROM artikkelit WHERE artikkelinro = " & Trim(Request.QueryString("Article")) Rs.Open RsString, Conn Rs.MoveFirst %>
| <%= Rs("otsikko") %> |
|
<%= Replace(Trim(Rs("teksti")), vbcrlf, " " & vbcrlf) %> <% If (Rs("email") <> "EI") Then %> "><%= Rs("kirjoittaja") %> - <% Else %> <%= Rs("kirjoittaja") %> - <% End If If Session("Kendo_Finnish") = True then Response.write(DatePart("d", Rs("luontipvm")) & "." & DatePart("m", Rs("luontipvm")) & "." & DatePart("yyyy", Rs("luontipvm"))) If (Rs("muokkauspvm") <> "") Then Response.write(" (muokattu " & DatePart("d", Rs("muokkauspvm")) & "." & DatePart("m", Rs("muokkauspvm")) & "." & DatePart("yyyy", Rs("muokkauspvm")) & ")") End If %> ">Takaisin artikkelivalikkoon <% Else Response.write(Rs("luontipvm")) If (Rs("muokkauspvm") <> "") Then Response.write(" (modified " & Rs("muokkauspvm") & ")") End If %> ">Back to articles <% End If %> |
| Valitse luettava artikkeli | <% Else %>Choose an article to read | <% End If %>
|
?Article=<%= Rs("artikkelinro") %>"><%= Rs("otsikko") %> <% If (Rs("kuvaus") <> "EI") Then %> <%= Replace(Trim(Rs("kuvaus")), vbcrlf, " " & vbcrlf) %> <% End If Response.write("" & Rs("kirjoittaja") & " - ") If Session("Kendo_finnish") = True then Response.write(DatePart("d", Rs("luontipvm")) & "." & DatePart("m", Rs("luontipvm")) & "." & DatePart("yyyy", Rs("luontipvm"))) If (Rs("muokkauspvm") <> "") Then Response.write(" (muokattu " & DatePart("d", Rs("muokkauspvm")) & "." & DatePart("m", Rs("muokkauspvm")) & "." & DatePart("yyyy", Rs("muokkauspvm")) & ")") End If Else Response.write(Rs("luontipvm")) If (Rs("muokkauspvm") <> "") Then Response.write(" (modified " & Rs("muokkauspvm") & ")") End If End If %> |