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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
| <script language="JavaScript">
<!--
function couleur(obj) {
obj.style.backgroundColor = "#FFFFFF";
}
function test() {
var msg = "";
if (document.formulaire.mail.value != "") {
indexAroba = document.formulaire.mail.value.indexOf('@');
indexPoint = document.formulaire.mail.value.indexOf('.');
if ((indexAroba < 0) || (indexPoint < 0)) {
document.formulaire.mail.style.backgroundColor = "#ff5858";
msg += "Le mail est incorrect\n";
}
}
else {
document.formulaire.mail.style.backgroundColor = "#ff5858";
msg += "Veuillez saisir votre mail\n";
}
if (document.formulaire.nom.value == "") {
msg += "Veuillez saisir votre nom\n";
document.formulaire.nom.style.backgroundColor = "#ff5858";
}
/*if (document.formulaire.commande.checked == false) {
msg += "Veuillez choisir au moins une pièce\n";
}
*/
if (msg == "") return(true);
else {
alert(msg);
return(false);
}
}
</script>
<form method="post" action="" enctype="application/x-www-form-urlencoded" name="formulaire" onSubmit="return test();">
<p><label for="nom">Votre nom:</label><br />
<input type="text" size="40" name="nom" id="nom" onKeyUp="javascript:couleur(this);" value="" />
</p>
<p><label for="mail">Votre e-mail:</label><br />
<input type="text" size="40" name="mail" id="mail" onKeyUp="javascript:couleur(this);" value="" />
</p>
<table width="660" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td width="162"> <div align="center" style="font-weight: bold">Imprimante(s)</div></td>
<td width="230"> <div align="center" style="font-weight: bold">Pièce(s)</div></td>
<td width="138"> <div align="center" style="font-weight: bold">Référence Pièce(s)</div></td>
<td width="120"> <div align="center" style="font-weight: bold">Quantité(s)</div></td>
</tr>
<tr>
<td>
<div align="left">
<input type="checkbox" name="imprimante1" value="Lexmark X850" />
Lexmark X850 </div></td>
<td><input type="checkbox" name="commande1[]" id="commande1" value="Cartouche de Toner" />
Cartouche de Toner <br />
<input type="checkbox" name="commande1[]" id="commande2" value="Photoconducteur" />
Photoconducteur<br />
<input type="checkbox" name="commande1[]" id="commande3" value="Unité de fusion + Mo" />
Unité de fusion + Mo</td>
<td>
<div align="left">
<input type="checkbox" name="refpiece1[]" id="refpiece1" value="0X850H21G" />
0X850H21G<br />
<input type="checkbox" name="refpiece1[]" id="refpiece2" value="0X850H22G" />
0X850H22G<br />
<input type="checkbox" name="refpiece1[]" id="refpiece3" value="0040X2376" />
0040X2376</div></td>
<td><input type="text" size="20" name="quantite1[]" id="quantite1" value="" />
<input type="text" size="20" name="quantite1[]" id="quantite2" value="" />
<input type="text" size="20" name="quantite1[]" id="quantite3" value="" /></td>
</tr>
<tr>
<td><div align="left">
<input type="checkbox" name="imprimante2" value="Lexmark X646" />
Lexmark X646</div></td>
<td><input type="checkbox" name="commande2[]" id="commande4" value="Cartouche de Toner" />
Cartouche de Toner<br />
<input type="checkbox" name="commande2[]" id="commande5" value="Unité de fusion + Mo" />
Unité de fusion + Mo</td>
<td><div align="left">
<input type="checkbox" name="refpiece2[]" id="refpiece4" value="0X644X11E" />
0X644X11E<br />
<input type="checkbox" name="refpiece2[]" id="refpiece5" value="0040X0101" />
0040X0101</div></td>
<td><input type="text" size="20" name="quantite2[]" id="quantite4" value="" />
<input type="text" size="20" name="quantite2[]" id="quantite5" value="" /></td>
</tr>
<tr>
<td><div align="left">
<input type="checkbox" name="imprimante3" value="E350d" />
E350d</div></td>
<td><input type="checkbox" name="commande3[]" id="commande6" value="Cartouche de Toner" />
Cartouche de Toner <br />
<input type="checkbox" name="commande3[]" id="commande7" value="Photoconducteur" />
Photoconducteur</td>
<td><div align="left">
<input type="checkbox" name="refpiece3[]" id="refpiece6" value="0E352H31E" />
0E352H31E<br />
<input type="checkbox" name="refpiece3[]" id="refpiece7" value="0E250X22G" />
0E250X22G</div></td>
<td><input type="text" size="20" name="quantite3[]" id="quantite6" value="" />
<input type="text" size="20" name="quantite3[]" id="quantite7" value="" /></td>
</tr>
<tr>
<td><div align="left">
<input type="checkbox" name="imprimante4" value="E340" />
E340 </div></td>
<td><input type="checkbox" name="commande4[]" id="commande8" value="Cartouche de Toner" />
Cartouche de Toner <br />
<input type="checkbox" name="commande4[]" id="commande9" value="Photoconducteur" />
Photoconducteur</td>
<td><div align="left">
<input type="checkbox" name="refpiece4[]" id="refpiece8" value="0034040HW" />
0034040HW<br />
<input type="checkbox" name="refpiece4[]" id="refpiece9" value="0012A8302" />
0012A8302<br />
<input type="checkbox" name="refpiece4[]" id="refpiece10" value="0034040HW" />
0034016HE<br />
<input type="checkbox" name="refpiece4[]" id="refpiece11" value="0012A8302" />
0012A8302</div></td>
<td><input type="text" size="20" name="quantite4[]" id="quantite8" value="" />
<input type="text" size="20" name="quantite4[]" id="quantite9" value="" />
<input type="text" size="20" name="quantite4[]" id="quantite10" value="" />
<input type="text" size="20" name="quantite4[]" id="quantite11" value="" /></td>
</tr>
</table>
<p><label for="nom"></label>
<label for="commentaires">Commentaires</label>
<br />
<textarea name="commentaires" id="commentaires" cols="50" rows="4">
</textarea>
<p><input type="submit" name="submit" value="Commander" />
</p>
</form> |