1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
<html>
<head>
<title>Historique</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="historique.css" type="text/css">
<xml id="dsoversion" src="data.xml"></xml>
<Script language=javascript>
function couleur (coul, nomDuChamp)
{
document.getElementById("val").style.backgroundColor = coul;
document.getElementById("val").value = nomDuChamp;
}
</script>
</head>
<body>
<FORM NAME="form">
<table align=center border=1 class="table-ligne1" width=100% cellpadding=0 datasrc="#dsoversion" datafld="Entete">
<tr class="table-ligne1" width=100% cellpadding=0>
<td width=50%>Historique de la machine :</td>
<td width=50%><span datafld="Champ4"></span>
</td>
</tr>
<tr><td colspan=9>
<table align=center border=0 class="table-ligne2" width=100% cellpadding=0 datasrc="#dsoversion" datafld="Entete">
<tr>
<td width=10%><span datafld="Champ1"></span>
<td width=10%><span datafld="champ2"></span>
<td width=10%><span datafld="Champ3"></span>
<td width=17%><span datafld="champ5"></span>
<td width=17%><span datafld="champ6"></span>
<td width=17%><span datafld="champ7"></span>
<td width=17%><span datafld="champ8"></span>
<td><span datafld="champ9"></span>
</td>
</tr>
</table>
</td></tr>
<tr><td colspan=9>
<table align=center border=0 class="table-ligne2" width=100% cellpadding=0 datasrc="#dsoversion" datafld="Data">
<tr>
<td width=10%><span datafld="Champ1"></span>
<td width=10%><span datafld="champ2"></span>
<td width=10%><span datafld="Champ3"></span>
<td width=17%><span datafld="champ5"></span>
<td width=17%><span datafld="champ6"></span>
<td width=17%><input type="text" id="val" name="val" border="0" value="" onChange="couleur(<span datafld='champ4'></span>,<span datafld='champ9'></span>)"><span datafld ='champ7'></span><!-- <span datafld='champ4'></span>,<span datafld='champ9'></span> -->
<td width=17%><span datafld="champ8"></span>
<td><span datafld="champ9"></span>
</td>
</tr>
</table>
</td></tr>
</table>
</form>
</body>
</html> |