Hej
På opfordring har jeg nu reduceret databasen til, at indeholde 10 poster og den er desuden blevet komprimeret.
Koder til de forskellige kald er vist nedenfor (hver ny kode-fil starter med *****
Tak fordi I allerede har taget jer tid til, at svare os
*****HER ER KODEN FOR index.asp:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Smalsporede industribanelokomotiver</title>
<meta name="description" content="Giver overblik over eksistensen af smalsporslokomotiver i DK">
<!-- Smalsporede industribanelokomotiver -->
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="keywords" content="demag, deutz, diema, henschel, industribane, jenbach, jung, kastrup, krauss, lokomotiv, orenstein, o&k, pm, schöma, smalspor, tog, tipvogn">
<%@LANGUAGE="VBSCRIPT"%>
<%Session.LCID = 1030
Response.Charset = "iso-8859-1"%>
<!--#include file="dbconnect4.asp" -->
<%
soeg = Request.QueryString("soeg")
If soeg = "" Then
soegestreng = "'%'"
Else
soegestreng = "'%" & soeg & "%'"
End If
Set list = Server.CreateObject ("ADODB.Recordset")
list.Open "SELECT * FROM smalspor WHERE Smalspor_Status =1 ORDER BY LiveTime DESC" , Conn
strSQL1 = "SELECT TOP 1 Smalspor.LiveTime, Smalspor.Ejer, Smalspor.LokomotivNavn, Smalspor.LbNr, Smalspor.Status, Smalspor.BilledLink1, BilledText1, Fotograf1 FROM Smalspor ORDER BY Smalspor.LiveTime DESC"
Set rs1 = Conn.Execute(strSQL1)
%>
<script language="JavaScript">
<!--
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
// -->
</script>
</head>
<body onload="FP_preloadImgs(/*url*/'../Buttons/buttona2.jpg')" link="#000000" vlink="#666666" alink="#000000">
<div align="center">
<table border="0" width="713" id="table1" style="border-collapse: collapse">
<tr>
<td colspan="5">
<p align="center"><b><font size="6">
<a target="_top" href="
http://www.smalspor.dk/"> <img border="0" src="
http://www.smalspor.dk/forum/includes/skinnesymbol01.gif" width="23" height="23"></a></font></b>
<b><font size="6"> Smalsporede industribanelokomotiver<br>
</font></b></p></td>
</tr>
<tr>
<td align="center" valign="top" width="165">
<div align="center">
<table border="0" id="table2" cellspacing="0" cellpadding="0" width="133">
<tr>
<td width="139" align="center">
<p><b><font face="MS Sans Serif" size="2">
<br>
Menu</font></b></p>
<p align="left"><font size="2"><b>
</b>
<a target="_top" title="Find lokomotiver i lokomotivdatabasen" href="../search_drivkraftlokomotivfabrikat01.asp">Lokomotiver</a></font></p>
<p align="left">
<font size="2">
<b>
</b>
<a target="_top" title="Fritekst søgning i lokomotivdatabasen" href="../search_alt001.asp">Fri søg</a></font></p>
<p align="left">
<font size="2">
<b>
</b>
<a target="_blank" href="
http://www.smalspor.dk/forum/default.asp">Forum</a></font></p> <p align="left">
<font size="2">
<a target="_blank" title="Fritekst søgning i Forum" href="
http://www.smalspor.dk/forum/search_form.asp?FID=0"> Forum Søg</a></font></p>
<p align="left">
<font size="2">
<a title="Flere udfordringer på udflugten - geocaching med smalspor´s tema" target="_blank" href="
http://www.geocaching.com/seek/nearest.aspx?u=www.smalspor.dk"> Geocaching</a></font></p>
<p align="left">
<font size="2">
<b>
</b>
<a target="_blank" href="
http://www.smalspor.dk/forum/forum_posts.asp?TID=76">Spot´s</a></font></p> <p align="left">
<font size="2">
<b> </b>
<a target="_blank" href="
http://www.smalspor.dk/forum/forum_posts.asp?TID=271&PID=595">Køreplaner</a></font></p> <p align="left">
<font size="2"><span style="background-color: #FFFFFF">
</span><span style="background-color: #FFFF00">
<a target="_blank" href="
http://www.flickr.com/smalspor"> Fotoalbum</a></span></font></p>
<p align="left">
<font size="2">
<span style="background-color: #FF6600">
<a target="_blank" title="Kort og godt..." href="
https://twitter.com/_TKH/media">Smalfilm</a></span></font></p> <p align="left">
<font size="2">
<b>
</b>
<a href="../kontaktind.htm" target="_top">Kontakt</a></font></p>
<p align="left"><font size="2"><b>
</b>
<a href="../kilder.htm" target="_top">Kilder</a></font></p>
<p align="left"><font size="2"><b>
</b>
<a href="../links.htm" target="_top">Link´s</a></font></p>
<p align="left"><font size="2"><b>
</b>
<a href="../baggrund.htm" target="_top">Baggrund</a></font><font face="Times New Roman" size="2"><b>
<br>
</b></font><b>
<font face="Times New Roman" size="2"> </font>
</b></p><tr>
<td align="left">
<p align="center"><font size="2">
<a target="_blank" href="
https://twitter.com/smalspor"> #smalspor </a></font><b>
<a target="_blank" title="TKH på twitter" href="
https://twitter.com/_TKH"> <img border="0" src="twitter-bird-blue-on-white_small.png" width="82" height="81"></a></b></p>
<b>
</p></td>
</tr>
</table></div>
<p><b><p></p>
<p> </td>
<td align="center" valign="top" width="4"> </td>
<td align="center" valign="top" width="534">
<font SIZE="2"><br>
<font face="MS Sans Serif">
<b> Seneste opdatering i
lokomotiv-databasen: <% Response.Write ("<a target=_top href='search_seneste01.asp" & "'target=>" & list.Fields("Opd") & "</a>")%></b></font><p align="left"></th>
<a target="_top" OnMouseOver="window.status='Se seneste opdatering i databasen'; return true" title="Seneste opdatering i lokomotiv-databasen" href="../search_seneste01.asp">
<img src="
http://www.smalspor.dk/foto/<% =rs1("BilledLink1") %>" size="0" border="0" width="475" height="353" style="position: relative"></a><font face="Microsoft Sans Serif">
<br>
</font>
</p>
<div align="center">
<table border="0" width="467" id="table3" cellpadding="0" bordercolor="#000000" style="border-collapse: collapse">
<tr>
<td align="center">
<p align="left"><font size="2" face="MS Sans Serif"><b>Fotograf:</b></a> </th><% = rs1("Fotograf1")%>
<b> Lokomotiv:</b></a> </th><% = rs1("LokomotivNavn")%><b> Status:</b></a></b> </th><% = rs1("Status")%> </b><tr>
<td align="center">
<p align="left">
<font face="MS Sans Serif"><b><font size="2">FotoTekst:</font></b><font size="2"></a></b></font></font><font size="2" face="MS Sans Serif"> </th><% = rs1("BilledText1")%></font></a><font SIZE="2"><font face="MS Sans Serif"><b> Ejer:</b></b></font><font size="2" face="MS Sans Serif"> </th><% = rs1("Ejer")%></font></a></font></tr>
<tr>
<td align="center">
<p align="left">
<font face="MS Sans Serif" size="2"><b>
<span style="background-color: #FFFFFF">
<font color="#FFFFFF">D</font><a target="_top" OnMouseOver="window.status='Se seneste opdatering i databasen'; return true" title="Seneste opdatering i databasen" href="../search_seneste01.asp" style="text-decoration: none"><font color="#FFFFFF">i</font></a><font color="#FFFFFF">verse
Indlæg fra Forum: </font> </span></b></font>
<tr>
<td align="center">
<p align="left">
</table>
<p align="left"><br>
</div>
<a target="_top" OnMouseOver="window.status='Se seneste opdatering i databasen'; return true" title="Seneste opdatering i databasen" href="../search_seneste01.asp">
<p align="left"></font></td>
<td align="center" valign="top" width="25"> </td>
<td align="center" valign="top" width="1">
<%
Response.Buffer = True
dim Side_B
Side_B = "
http://www.smalspor.dk/Forum/TH_43.asp" Dim objXMLHTTP, xml
' Create an xmlhttp object:
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
' Or, for version 3.0 of XMLHTTP, use:
' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
' Opens the connection to the remote server.
xml.Open "GET", Side_B, False
' Actually Sends the request and returns the data:
xml.Send
'Display the HTML both as HTML and as text
'Response.Write "<h1>The HTML text</h1><xmp>"
'Response.Write xml.responseText
'Response.Write "</xmp><p><hr><p><h1>The HTML Output</h1>"
%>
<%Response.Write xml.responseText
Set xml = Nothing
%>
</td>
</tr>
<!-- </table> -->
<!-- </div> -->
</body>
</html>
*****HER ER KODEN FOR dbconnect4.asp:
<%
Set Conn = Server.CreateObject("ADODB.Connection")
DSN = "DRIVER={Microsoft Access Driver (*.mdb)}; "
DSN = DSN & "DBQ=" & Server.MapPath("/fpdb/smalspor.mdb")
Conn.Open DSN
%>
*****HER ER KODEN FOR HER ER KODEN FOR TH_43.asp:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Anvendelse</title>
</head>
<%@LANGUAGE="VBSCRIPT"%>
<%Session.LCID = 1030
Response.Charset = "iso-8859-1"%>
<!--#include file="THdbconnectForum.asp" -->
<%
Set list = Server.CreateObject ("ADODB.Recordset")
list.Open "SELECT TOP 9 tblAuthor.Username, tblTopic.Topic_ID, tblTopic.Subject, tblThread.Message_date, tblThread.Message FROM tblTopic INNER JOIN (tblAuthor INNER JOIN tblThread ON tblAuthor.Author_ID = tblThread.Author_ID) ON tblTopic.Topic_ID = tblThread.Topic_ID ORDER BY tblThread.Thread_ID DESC ", Conn
%>
<html>
<head>
<title>Anvendelse</title>
</head>
<body style="text-align: right">
<div align="center">
<table style="border-left-color: #000000; border-top-color: #000000" cellspacing="0" bordercolorlight="#000000" bordercolordark="#000000" border="0" cellpadding="0" width="314">
<tr>
<td valign="top" width="18" align="left" bordercolor="#FFFFFF"> </td>
<td valign="top" width="296" align="left" bordercolor="#FFFFFF" colspan="2">
<p align="center">
<b><font face="MS Sans Serif" size="2"><br>Seneste nyheder på Forum</font><br> </b></td>
</tr>
<tr>
<td valign="top" width="18" align="left" bordercolor="#FFFFFF"> </td>
<td valign="top" width="97" align="left" bordercolor="#FFFFFF">
<font face="MS Sans Serif" size="2">Forfatter:</font></td>
<td valign="top" width="238" bordercolor="#FFFFFF" align="left">
<p><font face="MS Sans Serif" size="2">Emne:</font></td>
</tr>
<%
While NOT list.EOF
%>
<td valign="top" width="18" align="left" bordercolor="#FFFFFF"> </td>
<td valign="top" width="97" align="left" bordercolor="#FFFFFF">
<font size="2" face="Times New Roman"><% = list.Fields("Username")%> </font></td>
<td valign="top" width="238" align="left" bordercolor="#FFFFFF">
<font size="2" face="Times New Roman"><% Response.Write ("<a target=_blank href='
http://www.smalspor.dk/forum/forum_posts.asp?TID=" & list.Fields("Topic_ID") & ("&PD=0") & "'target=>" & list.Fields("Subject") & "</a>")%></td>
</tr>
<%
list.MoveNext
Wend
%>
</table>
<table border="0" width="314" id="table1" style="border-collapse: collapse">
<tr>
<td align="center">
<p align="center"><br>
<b><font face="MS Sans Serif" size="2">Blog´s, temasider, etc.<br>
</font><font face="MS Sans Serif" size="1" color="#FFFFFF">_</font></b><table border="0" width="100%" id="table2" style="border-collapse: collapse">
<tr>
<td width="76" style="line-height: 150%"> </td>
<td width="172" style="line-height: 150%"><b>
<font face="MS Sans Serif" size="4" color="#00FF00">*</font></b><font face="MS Sans Serif" size="2" color="#000000">
</font>
<font face="Times New Roman" size="2" color="#000000">
<a title="60 år er ingen alder for et lokomotiv" target="_blank" href="
http://www.smalspor.dk/forum/forum_posts.asp?TID=173&PD=0"> <font color="#000000">Danske lok. i Letland</font></a></font><br>
<b><font face="MS Sans Serif" size="4" color="#009900">*</font></b><font face="MS Sans Serif" size="2" color="#000000">
</font><font color="#000000" face="Times New Roman" size="2">
<a title="Flere udfordringer på udflugten" target="_blank" href="
http://www.smalspor.dk/forum/forum_posts.asp?TID=190"> <font color="#000000">GPS - Skattejagt</font></a></font><br>
<b><font face="MS Sans Serif" size="4" color="#008080">*</font></b>
<font color="#000000" face="Times New Roman" size="2"> <a target="_blank" href="
http://bloustroedbrickyard.blogspot.dk/"><font color="#000000">Nyt
- BloustrødBanen</font></a></font><br>
<b><font face="MS Sans Serif" size="4" color="#333300">*</font></b><font face="MS Sans Serif" color="#000000">
</font><font size="2" color="#000000">
<font face="Times New Roman"> </font>
<a title="Industribaneklubbens arbejde i Maskinafdelingen og Baneafdelingen" target="_blank" href="
http://www.maskinafdelingsnyt.blogspot.com/"> <font color="#000000" face="Times New Roman">Nyt - IBK Mafd & Bafd</font></a><font face="Times New Roman">.</font></font><br>
<b><font face="MS Sans Serif" size="4" color="#CC0000">*</font></b><font face="MS Sans Serif" color="#000000">
</font>
<font face="Times New Roman" size="2" color="#000000">
<a target="_blank" href="
http://www.m.dk/~/media/Metro/Metrobyggeriet/Tunnelboring/Tunnelboring-Eva-v-NO.jpg"> <font color="#000000">Så langt er de 4 TBM´er</font></a></font><br>
</td>
<td> </td>
</tr>
</table>
<table border="0" width="100%" id="table3" style="border-collapse: collapse">
<tr>
<td width="40%" align="center"> </td>
<td>
<p align="center"><a target="_blank" href="
http://www.smalspor.dk/forum/RSS_topic_feed.asp"> <img border="0" src="Forum/rss.gif" width="36" height="14"></a></a></font><font color="#800000" size="2" face="Times New Roman"><a href="
http://www.addthis.com/bookmark.php?v=250&username=xa-4b50f22f2988a9e1" class="addthis_button_compact"></a></th></script><script type="text/javascript" src="
http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4b50f22f2988a9e1"></script><script type="text/javascript">
var addthis_config = {
services_compact: 'email, favorites, googletranslate, pdf online, print, twitter',
services_exclude: '',
services_expanded: 'delicious, google'
}
</script><!-- AddThis Button END --></p></td>
<td width="25%"> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<font size="2">
</table>
</form>
</font>
<p>
</b>
</p>
<p style="text-align: left"></p>
</body>
</html>
<%
list.close
set list = nothing
%>
*****HER ER KODEN FOR THdbconnectForum.asp:
<%
Set Conn = Server.CreateObject("ADODB.Connection")
DSN = "DRIVER={Microsoft Access Driver (*.mdb)}; "
DSN = DSN & "DBQ=" & Server.MapPath("/Forum/dennyebasse/dennyebasse.mdb")
Conn.Open DSN
%>