test3

<div align="center"> <p class="titolo">CALCOLO CIFRA DI AUTOCONTROLLO della marcatura UIC</p> <p>&nbsp;</p> <p>Marcatura del rotabile:</p> <form action="autocontrollo.php" method="post" name="f" onSubmit="return controlloForm(this)"> <p> <?php switch ($tipo){ case "loco6": ?> <input name="prima" type="text" size="1" maxlength="1" value="<?php echo $prima; ?>"> <input name="seconda" type="text" size="1" maxlength="1" value="<?php echo $seconda; ?>"> <input name="terza" type="text" size="1" maxlength="1" value="<?php echo $terza; ?>"> &nbsp; <input name="quarta" type="text" size="1" maxlength="1" value="<?php echo $quarta; ?>"> <input name="quinta" type="text" size="1" maxlength="1" value="<?php echo $quinta; ?>"> <input name="sesta" type="text" size="1" maxlength="1" value="<?php echo $sesta; ?>"> <?php break; case "loco11": ?> 9&nbsp; <input name="prima" type="hidden" value="9"> <input name="seconda" type="text" size="1" maxlength="1" value="<?php echo $seconda; ?>"> &nbsp; <input name="terza" type="text" size="1" maxlength="1" value="<?php echo $terza; ?>"> <input name="quarta" type="text" size="1" maxlength="1" value="<?php echo $quarta; ?>"> &nbsp; <input name="quinta" type="text" size="1" maxlength="1" value="<?php echo $quinta; ?>"> <input name="sesta" type="text" size="1" maxlength="1" value="<?php echo $sesta; ?>"> <input name="settima" type="text" size="1" maxlength="1" value="<?php echo $settima; ?>"> <input name="ottava" type="text" size="1" maxlength="1" value="<?php echo $ottava; ?>"> &nbsp; <input name="nona" type="text" size="1" maxlength="1" value="<?php echo $nona; ?>"> <input name="decima" type="text" size="1" maxlength="1" value="<?php echo $decima; ?>"> <input name="undicesima" type="text" size="1" maxlength="1" value="<?php echo $undicesima; ?>"> <?php break; case "carri": ?> <input name="prima" type="text" size="1" maxlength="1" value="<?php echo $prima; ?>"> <input name="seconda" type="text" size="1" maxlength="1" value="<?php echo $seconda; ?>"> &nbsp; <input name="terza" type="text" size="1" maxlength="1" value="<?php echo $terza; ?>"> <input name="quarta" type="text" size="1" maxlength="1" value="<?php echo $quarta; ?>"> &nbsp; <input name="quinta" type="text" size="1" maxlength="1" value="<?php echo $quinta; ?>"> <input name="sesta" type="text" size="1" maxlength="1" value="<?php echo $sesta; ?>"> <input name="settima" type="text" size="1" maxlength="1" value="<?php echo $settima; ?>"> &nbsp; <input name="ottava" type="text" size="1" maxlength="1" value="<?php echo $ottava; ?>"> &nbsp; <input name="nona" type="text" size="1" maxlength="1" value="<?php echo $nona; ?>"> <input name="decima" type="text" size="1" maxlength="1" value="<?php echo $decima; ?>"> <input name="undicesima" type="text" size="1" maxlength="1" value="<?php echo $undicesima; ?>"> </p> <?php break; case "carrozze": ?> <table width="200" border="0" cellspacing="0" cellpadding="4"> <tr> <td> <input name="prima" type="text" size="1" maxlength="1" value="<?php echo $prima; ?>"> </td> <td> <input name="seconda" type="text" size="1" maxlength="1" value="<?php echo $seconda; ?>"> </td> <td>&nbsp;</td> <td> <input name="terza" type="text" size="1" maxlength="1" value="<?php echo $terza; ?>"> </td> <td> <input name="quarta" type="text" size="1" maxlength="1" value="<?php echo $quarta; ?>"> </td> <td>&nbsp;</td> <td class="sottolineato"> <input name="quinta" type="text" size="1" maxlength="1" value="<?php echo $quinta; ?>"> </td> <td class="sottolineato"> <input name="sesta" type="text" size="1" maxlength="1" value="<?php echo $sesta; ?>"> </td> <td class="sottolineato"> - </td> <td class="sottolineato"> <input name="settima" type="text" size="1" maxlength="1" value="<?php echo $settima; ?>"> </td> <td class="sottolineato"> <input name="ottava" type="text" size="1" maxlength="1" value="<?php echo $ottava; ?>"> </td> <td class="sottolineato">&nbsp;</td> <td class="sottolineato"> <input name="nona" type="text" size="1" maxlength="1" value="<?php echo $nona; ?>"> </td> <td class="sottolineato"> <input name="decima" type="text" size="1" maxlength="1" value="<?php echo $decima; ?>"> </td> <td class="sottolineato"> <input name="undicesima" type="text" size="1" maxlength="1" value="<?php echo $undicesima; ?>"> </td> </tr> </table> <?php } ?> <p> <input name="calcola" type="hidden" value="si"> <input name="tipo" type="hidden" value="<?php echo $tipo; ?>"> <input name="invia" type="submit" value="Calcola autocontrollo"> </p> </form> <?php if (isset($calcola)){ echo "<p>Cifra di autocontrollo: $autocontrollo</p>"; echo "<p>Marcatura completa: $marcatura-$autocontrollo</p>"; } ?> <p>&nbsp;</p> <p>&nbsp;</p> <p><a href="../extra.htm">Indietro</a></p> </div>

  • Ultima modifica: 2021/05/14 21:31