<%@LANGUAGE="VBSCRIPT"%> <% MM_typography_STRING = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("../data/vykorten.mdb") Dim VykortsDB__MMColParam VykortsDB__MMColParam = "1" if (Request.QueryString("kortID") <> "") then VykortsDB__MMColParam = Request.QueryString("kortID") %> <% set VykortsDB = Server.CreateObject("ADODB.Recordset") VykortsDB.ActiveConnection = MM_typography_STRING VykortsDB.Source = "SELECT * FROM vykortlista WHERE NUMMER = " + Replace(VykortsDB__MMColParam, "'", "''") + "" VykortsDB.CursorType = 0 VykortsDB.CursorLocation = 2 VykortsDB.LockType = 3 VykortsDB.Open() VykortsDB_numRows = 0 %> <% ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters ' create the list of parameters which should not be maintained MM_removeList = "&index=" If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "=" MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone="" ' add the URL parameters to the MM_keepURL string For Each Item In Request.QueryString NextItem = "&" & Item & "=" If (InStr(1,MM_removeList,NextItem,1) = 0) Then MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item)) End If Next ' add the Form variables to the MM_keepForm string For Each Item In Request.Form NextItem = "&" & Item & "=" If (InStr(1,MM_removeList,NextItem,1) = 0) Then MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item)) End If Next ' create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1) if (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1) if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1) ' a utility function used for adding additional parameters to these strings Function MM_joinChar(firstItem) If (firstItem <> "") Then MM_joinChar = "&" Else MM_joinChar = "" End If End Function %> Retroglobe - Boring postcard <%=(VykortsDB.Fields.Item("NUMMER").Value)%>
.jpg" border="1" alt="Postcard <%=(VykortsDB.Fields.Item("NUMMER").Value)%>">

Location:
<%=(VykortsDB.Fields.Item("WEBSTAD").Value)%>, <%=(VykortsDB.Fields.Item("WEBLAND").Value)%>


Description:
<%=(VykortsDB.Fields.Item("WEBTEXT").Value)%>

Photo by:
<%=(VykortsDB.Fields.Item("WEBFOTO").Value)%>

Rate this postcard!
(as a postcard, NOT by the place)!
<% if VykortsDB.Fields.Item("vote_nej").Value > 0 or VykortsDB.Fields.Item("vote_ja").Value > 0 then vote_total=VykortsDB.Fields.Item("vote_nej").Value + VykortsDB.Fields.Item("vote_ja").Value vote_upp=VykortsDB.Fields.Item("vote_ja").Value / vote_total vote_ner=1 - VykortsDB.Fields.Item("vote_ja").Value / vote_total else vote_upp=0 vote_ner=0 end if %> &ja=1">Thumbs up! &ja=1"><%=CInt(vote_upp*100)%>%
&nej=1">Thumbs down! &nej=1">
<%=CInt(vote_ner*100)%>%
<%if vote_total>0 then%><%= vote_total %> opinions so far.<%else%>No opinions yet.<%end if%>

Return to the thumbnails

The function to send postcard has been temporarily removed.



Retroglobe home

©2002 Christian Liljeberg, Retroglobe //

 

<% VykortsDB.Close() %> <% set VykortsDB = nothing Session("kortsida")=Request.QueryString %>