<html>
<head>
<title>Nyhedsting</title>
<link rel=stylesheet type=\"text/css\" href=\"css-script/styles.css\">
<link rel=stylesheet type=\"text/css\" href=\"../style/stylenormal.css\">
</head>
<body bgcolor=\"#000000\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">
<table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<!-- HER STARTER OVERSKRIFTEN -->
<td width=\"100%\" height=\"70\" align=\"left\" valign=\"middle\"><img border=\"0\" src=\"gfx/adgangskontrol.gif\"></td>
<!-- HER SLUTTER OVERSKRIFTEN -->
</tr>
<tr>
<td width=\"100%\" height=\"1\" align=\"left\" valign=\"top\">
<table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"100%\" height=\"1\" align=\"left\" valign=\"top\" bgcolor=\"#17354A\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=\"100%\" height=\"1\" align=\"left\" valign=\"top\">
<table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"100%\" height=\"1\" align=\"left\" valign=\"top\" bgcolor=\"#96B3C8\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- HER STARTER FORMULAREN -->
<td width=\"100%\" height=\"22\" align=\"center\" valign=\"middle\">
<div><a href=\"tilfojnyhed.asp\" target=\"_top\">Tilføj Nyhed</a>
<a href=\"sletnyhed.asp\" target=\"_top\">Slet Nyhed</a>
<a href=\"tilfojseniorspiller.asp\" target=\"_top\">Tilføj Senior Spiller</a>
<a href=\"sletseniorspiller.asp\" target=\"_top\">Slet
Senior Spiller</a> <a href=\"tilfojjuniorspiller.asp\" target=\"_top\">Tilføj
Junior Spiller</a> <a href=\"sletjuniorspiller.asp\" target=\"_top\">Slet
Junior Spiller</a> <a href=\"logout.asp\" target=\"_top\">Log
Ud<b> </b></a></div>
</td>
<!-- HER SLUTTER FORMULAREN -->
</tr>
<tr>
<td width=\"100%\" height=\"1\" align=\"left\" valign=\"top\">
<table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"100%\" height=\"1\" align=\"left\" valign=\"top\" bgcolor=\"#17354A\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=\"100%\" height=\"1\" align=\"left\" valign=\"top\">
<table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"100%\" height=\"1\" align=\"left\" valign=\"top\" bgcolor=\"#96B3C8\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- HER STARTER INDHOLDET -->
<td width=\"100%\" height=\"100%\" align=\"left\" valign=\"top\">
<div class=\"indhold\"><%
Response.Buffer = True
\' Funktion der fikser quotes...
FUNCTION fixQuotes( theString )
fixQuotes = Replace( theString, \"\'\", \"\'\'\" )
END FUNCTION
\' Hent data fra formular
Nyhed = Request( \"Nyhed\" )
Forfatter = Request( \"Forfatter\" )
\' Connection til database.
Set Con = Server.CreateObject( \"ADODB.Connection\" )
DBPath = \"DBQ=\" & server.mappath(\"../database.mdb\")
Con.Open \"DRIVER={Microsoft Access Driver (*.mdb)}; \" & DBPath
\' ... Ogsaa saetter vi vores data fra formularen ind i databasen
IF Request.Servervariables(\"Content_Length\") > 0 THEN
Sql = \"INSERT INTO nyheder (Dato, Nyhed, Forfatter) VALUES(\'\" & Date() & \"\',\'\" & fixQuotes( Nyhed ) & \"\',\'\" & fixQuotes( Forfatter ) & \"\')\"
Con.Execute Sql
\' Og her skriver vi lige en lille besked om at nu er nyheden tilfoejet
Response.Write \"<strong>Tak for din nyhed. Den er blevet tilføjet til databasen. </strong>\"
END IF
%> <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<div align=\"center\">
<p> </p>
<p><font color=\"#FFFFFF\" size=\"3\" face=\"Courier New, Courier, mono\">NYHEDER</font><br>
<br>
<br>
</p>
</div>
<form action=\"tilfojnyhed.asp\" method=\"POST\" target=\"_self\">
<div align=\"center\">
<table border=\"0\" width=\"600\">
<tr>
<td valign=\"top\" width=\"104\">
<div align=\"left\"><font color=\"#FFFFFF\" size=\"3\" face=\"Courier New, Courier, mono\">Nyhed</font></div>
</td>
<td width=\"486\">
<div align=\"left\">
<textarea cols=\"90\" rows=\"15\" name=\"Nyhed\"></textarea>
</div>
</td>
</tr>
<tr>
<td width=\"104\">
<div align=\"left\"><font color=\"#FFFFFF\" size=\"3\" face=\"Courier New, Courier, mono\">Forfatter</font></div>
</td>
<td width=\"486\">
<input type=\"text\" name=\"Forfatter\">
</td>
</tr>
<tr>
<td colspan=\"2\" align=\"center\">
<div align=\"left\">
<p> </p>
<p align=\"center\">
<input type=\"submit\" value=\"Tilføj Nyhed\" name=\"submit\">
</p>
</div>
</td>
</tr>
</table>
</div>
</form>
</div>
</td>
<!-- HER SLUTTER INDHOLDET -->
</tr>
<tr>
<td width=\"100%\" height=\"1\" align=\"left\" valign=\"top\">
<table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"100%\" height=\"1\" align=\"left\" valign=\"top\" bgcolor=\"#17354A\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=\"100%\" height=\"1\" align=\"left\" valign=\"top\">
<table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"100%\" height=\"1\" align=\"left\" valign=\"top\" bgcolor=\"#96B3C8\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- HER STARTER COPYRIGHT -->
<td width=\"100%\" height=\"20\" align=\"center\" valign=\"middle\">
<div><b>Lavet af <a href=\"
http://www.athena.as\" target=\"_blank\">AthenA Communications</a>
- Copyright 2000 © <a href=\"
http://www.athena.as\" target=\"_blank\">AthenA
Communications</a> - All rights
reserved</b></div>
</td>
<!-- HER SLUTTER COPYRIGHT -->
</tr>
</table>
</body>
</html>