stiml
Messages postés
132
Date d'inscription
mardi 21 juin 2005
Statut
Membre
Dernière intervention
18 juin 2009
3 mars 2006 à 11:36
il est un peu lourd le code un peu long et pas encore commenté mais si ca peut t'aider...
<form name="frmdeslot" id="frmdeslot" action="saisirdeslot.php" method="post">
Voici le premier tableau qui a plusieurs champs dont un qui demande le nombre de tableau qu'on veut
...
----
Voici le champs qui demande le nombre de tableau qu'on veut
Nombre de lots? ,
<?php
Voici le test pour afficher la page avec les tableau en plus
if($_POST['valider'] == "ok")
{?>
Voici le deuxième tableau qui qui doit être affiché en fonction du nombre entrer dans le champ au dessus
Numéro du lot : ,
,
----
Nom du lot : ,
,
----
Procédure:,
<label>
<select name="Procedure2" id="select2">
<?php
do {
?>
<option value="<?php echo $row_rsPro['CODEPRO']?>"><?php echo $row_rsPro['CODEPRO']?></option>
<?php
} while ($row_rsPro = mysql_fetch_assoc($rsPro));
$rows = mysql_num_rows($rsPro);
if($rows > 0) {
mysql_data_seek($rsPro, 0);
$row_rsPro = mysql_fetch_assoc($rsPro);
}
?>
</select>
</label>
,
----
Date de notification : ,
<label>
<?php saisie_calendrier("frmunlot","txtDateNot2","id_ddn");?>
</label>
,
----
Date de début : ,
<label>
<?php saisie_calendrier("frmunlot","txtDateDeb2","id_ddn");?>
</label>
,
----
Date de fin : ,
<label>
<?php saisie_calendrier("frmunlot","txtDateFin2","id_ddn");?>
</label>
,
----
Date de solde : ,
<label>
<?php saisie_calendrier("frmunlot","txtDateSolde2","id_ddn");?>
</label>
,
----
Marché à bon de commande ? ,
<label>
Oui</label>
<label>
Non</label>,
----
,
,
----
Entreprise :,
<label>
</label>
<label></label>
,
----
Département :,
<label>
<select name="Dep2" id="select3">
<?php
do {
?>
<option value="<?php echo $row_rsDep['NUMDEP']?>"><?php echo $row_rsDep['NUMDEP']?></option>
<?php
} while ($row_rsDep = mysql_fetch_assoc($rsDep));
$rows = mysql_num_rows($rsDep);
if($rows > 0) {
mysql_data_seek($rsDep, 0);
$row_rsDep = mysql_fetch_assoc($rsDep);
}
?>
</select>
</label>
,
----
Ville :,
,
----
Commentaire sur l'entreprise : ,
<label></label>
<label>
<textarea name="txtComEnt2" cols="50" rows="5" id="txtComEnt2"></textarea>
</label>
</form>
Voila j'ai essayé de commenter un peu merci d'avance !
--------------------
StimL.