1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
function newLot(){
var mess = "Remplacer Lot Manquant ? "
if(confirm(mess)){
var lot = "";
while(lot == ""){
if(lot = prompt("Reference Lot : "))
{
var annee = lot.substr(1,2);
var mois = lot.substr(3,2);
var jour = lot.substr(5,2);
var taille = lot.length;
if(annee < 9 || annee>11 || jour>31 || mois>12 || taille != 10){
alert("Le numero de Lot n'est pas valide");
lot = "";
}
} else document.location.href="scanneLot.php";
}
document.location.href="remplaceManquant.php?lotRemp="+lot+"";
}else document.location.href="scanneLot.php";
} |
Partager