ASP: formular udtræk med mulighed for at rette
Jeg har et udtræk fra en database som ser nogenlunde sådan ud:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="da">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ventek A/S - Tidsregistrering</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<script language="javascript1.2">
function createWindow( fil, overskrift, w, h ){
var centerX = (screen.availWidth-w)/2;
var centerY = (screen.availHeight-h)/2;
var aWindow = window.open( fil , overskrift, 'width=' + w + ',height=' + h );
aWindow.moveTo( centerX, centerY );
}
</script>
<div align="center">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td><img border="0" src="images/dot.gif" width="25" height="25"></td>
</tr>
</table>
<table border="1" width="1095px" cellspacing="0" cellpadding="5px" bordercolorlight="#000000" bordercolordark="#000000">
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td style="text-align:left;">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td class="overskrift">
<table border="0" width="720px" cellpadding="0" style="border-collapse: collapse">
<tr>
<td style="width:75px;" class="overskrift">Montør:</td>
<td style="width:100px;" class="overskrift">
<input type="text" name="Montor" size="20" value="Ventek"></td>
<td style="width:5px;"><img border="0" src="images/dot.gif" width="5" height="5"></td>
<td style="width:50px;" class="overskrift">Uge:</td>
<td style="width:50px;" class="overskrift">
<input type="text" name="Uge" size="5" value="21"></td>
<td style="width:5px;"><img border="0" src="images/dot.gif" width="5" height="5"></td>
<td style="width:50px;" class="overskrift">År:</td>
<td style="width:385px;" class="overskrift"><input type="text" name="Aar" size="5" value="2012"></td>
</tr>
<tr>
<td colspan="8"></td>
</tr>
</table>
</td>
<td class="overskrift" style="text-align:right;">
<table border="0" width="375px" cellpadding="0" style="border-collapse: collapse">
<tr>
<td style="text-align:right;" class="overskrift"><img src="images/ventek_logo.png" width="199" height="75"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><hr noshade></td>
</tr>
<tr>
<td>
<table border="0" width="1090px" cellpadding="0" style="border-collapse: collapse">
<tr>
<td class="leftcenter" style="width:50px;">Dato:</td>
<td class="leftcenter" style="width:70px;">Ordre nr:</td>
<td class="leftcenter" style="width:125px;">Sted:</td>
<td class="leftcenter" style="width:175px;">Arbejdets art:</td>
<td class="overskrift" style="width:200px;">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td class="overskrift" style="width:200px;" colspan="4" style="text-align:center;">Arbejdstimer:</td>
</tr>
<tr>
<td class="overskrift" colspan="4" style="text-align:center; width: 200px;"><hr></td>
</tr>
<tr>
<td class="overskrift" style="width:50px;" style="text-align:center;">Normal</td>
<td class="overskrift" style="width:50px;" style="text-align:center;">Overtid</td>
<td class="overskrift" style="width:50px;" style="text-align:center;">Sjælland</td>
<td class="overskrift" style="width:50px;" style="text-align:center;">Smuds</td>
</tr>
</table>
</td>
<td class="overskrift" style="width:100px;">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td class="overskrift" style="width:100px;" colspan="2" style="text-align:center;">Kørsel, km:</td>
</tr>
<tr>
<td class="overskrift" colspan="2" style="text-align:center;"><hr></td>
</tr>
<tr>
<td class="overskrift" style="width:50px;" style="text-align:center;">Firmabil</td>
<td class="overskrift" style="width:50px;" style="text-align:center;">Privatbil</td>
</tr>
</table>
</td>
<td class="overskrift" style="width:100px;">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td class="overskrift" style="width:100px;" colspan="2" style="text-align:center;">Persontransport:</td>
</tr>
<tr>
<td class="overskrift" colspan="2" style="text-align:center;"><hr></td>
</tr>
<tr>
<td class="overskrift" style="width:50px;" style="text-align:center;">Km</td>
<td class="overskrift" style="width:50px;" style="text-align:center;">Timer</td>
</tr>
</table>
</td>
<td class="overskrift" style="width:100px;">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td class="overskrift" style="width:100px;" colspan="2" style="text-align:center;">Diæter dage:</td>
</tr>
<tr>
<td class="overskrift" colspan="2" style="text-align:center;"><hr></td>
</tr>
<tr>
<td class="overskrift" style="width:50px;" style="text-align:center;">u. ov.</td>
<td class="overskrift" style="width:50px;" style="text-align:center;">m. ov.</td>
</tr>
</table>
</td>
<td class="overskrift" style="width:70px;">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td class="overskrift" style="width:70px;" style="text-align:center;">Fortæring:</td>
</tr>
<tr>
<td class="overskrift" colspan="2" style="text-align:center;"><hr></td>
</tr>
<tr>
<td class="overskrift" style="width:70px;" style="text-align:center;">Timer</td>
</tr>
</table>
</td>
<td style="width: 25px;" class="overskrift"> </td>
<td style="width: 50px;" class="overskrift"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td><hr></td>
</tr>
<tr>
<td>
<input type="hidden" name="ID-39" value="39">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td class="leftcenter" style="width: 50px;">
<input type="text" name="Dato" size="4" value="21-05-2012"></td>
<td class="leftcenter" style="width: 70px;">
<input type="text" name="OrdreNr" size="4" value="1234"></td>
<td class="leftcenter" style="width: 125px;">
<input type="text" name="Sted" size="15" value=""></td>
<td class="leftcenter" style="width: 175px;">
<input type="text" name="ArbejdsArt" size="20" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="TidNormal" size="3" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="TidOvertid" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="TidSjaelland" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="TidSmuds" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="KMFirmaBil" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="KMPrivatBil" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="PersontransportKM" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="PersontransportTid" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="DiaeterUOV" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="DiaeterMOV" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 70px;">
<input type="text" name="FortaeringTid" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 25px;"><a href="java script:createWindow('/LinjeTillaeg.asp','', 565, 650 )"><img src="images/note.png" alt="Kørsel - Strækning" border="0"></a></td>
<td class="centercenter" style="width: 50px;"></td>
</tr>
<tr>
<td class="leftcenter" style="width: 50px;">
<input type="text" name="Dato" size="4" value="22-05-2012"></td>
<td class="leftcenter" style="width: 70px;">
<input type="text" name="OrdreNr" size="4" value="2345"></td>
<td class="leftcenter" style="width: 125px;">
<input type="text" name="Sted" size="15" value=""></td>
<td class="leftcenter" style="width: 175px;">
<input type="text" name="ArbejdsArt" size="20" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="TidNormal" size="3" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="TidOvertid" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="TidSjaelland" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="TidSmuds" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="KMFirmaBil" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="KMPrivatBil" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="PersontransportKM" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="PersontransportTid" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="DiaeterUOV" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 50px;">
<input type="text" name="DiaeterMOV" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 70px;">
<input type="text" name="FortaeringTid" size="2" class="indtast" value=""></td>
<td class="centercenter" style="width: 25px;"><a href="java script:createWindow('/LinjeTillaeg.asp','', 565, 650 )"><img src="images/note.png" alt="Kørsel - Strækning" border="0"></a></td>
<td class="centercenter" style="width: 50px;"></td>
</tr>
</table>
<form name="Linje" action="?target=opretlinje" method="post">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td class="leftcenter" style="width: 50px;"><input type="text" name="Dato" size="4"></td>
<td class="leftcenter" style="width: 70px;"><input type="text" name="OrdreNr" size="4"></td>
<td class="leftcenter" style="width: 125px;"><input type="text" name="Sted" size="15"></td>
<td class="leftcenter" style="width: 175px;"><input type="text" name="ArbejdsArt" size="20"></td>
<td class="centercenter" style="width: 50px;"><input type="text" name="TidNormal" size="2" class="indtast"></td>
<td class="centercenter" style="width: 50px;"><input type="text" name="TidOvertid" size="2" class="indtast"></td>
<td class="centercenter" style="width: 50px;"><input type="text" name="TidSjaelland" size="2" class="indtast"></td>
<td class="centercenter" style="width: 50px;"><input type="text" name="TidSmuds" size="2" class="indtast"></td>
<td class="centercenter" style="width: 50px;"><input type="text" name="KMFirmaBil" size="2" class="indtast"></td>
<td class="centercenter" style="width: 50px;"><input type="text" name="KMPrivatBil" size="2" class="indtast"></td>
<td class="centercenter" style="width: 50px;"><input type="text" name="PersontransportKM" size="2" class="indtast"></td>
<td class="centercenter" style="width: 50px;"><input type="text" name="PersontransportTid" size="2" class="indtast"></td>
<td class="centercenter" style="width: 50px;"><input type="text" name="DiaeterUOV" size="2" class="indtast"></td>
<td class="centercenter" style="width: 50px;"><input type="text" name="DiaeterMOV" size="2" class="indtast"></td>
<td class="centercenter" style="width: 70px;"><input type="text" name="FortaeringTid" size="2" class="indtast"></td>
<td class="centercenter" style="width: 25px;"><a href="java script:createWindow('/LinjeTillaeg.asp','', 565, 650 )"><img src="images/note.png" alt="Kørsel - Strækning" border="0"></a></td>
<td class="centercenter" style="width: 50px;"><input type="submit" value="OK" name="OK"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>
Hvis der udfyldes i den sidste linje tilføjes den til listen.
Jeg vil gerne kunne rette i alle felterne samtidig.