Affichage en fonction des cases cochées - php
                    
        
     
             
                    geoslim0
    
        
    
                    Messages postés
            
                
     
             
            10
        
            
                                    Statut
            Membre
                    
                -
                                     
geoslim0 Messages postés 10 Statut Membre -
        geoslim0 Messages postés 10 Statut Membre -
        Bonjour, 
bonjour,
j'ai un tableau avec un num, nom, service, tel ... extrait d'une base mysql
j'y ai ajouter une case a choser a cote du num.
je voudrais que en selectionnant les num voulu cela m'envoie vers un autre tableau identique reprenant la selection
 
ci dessous les pages php correspondant.
impression.php
********************************
**************************************
page liste_demande_travaux_selection.php
**************************************
*******************************
cela m'affiche que la premiere ligne du tableau
merci par avance de votre aide
bonne journée
                
            
                
    
    
    
        bonjour,
j'ai un tableau avec un num, nom, service, tel ... extrait d'une base mysql
j'y ai ajouter une case a choser a cote du num.
je voudrais que en selectionnant les num voulu cela m'envoie vers un autre tableau identique reprenant la selection
ci dessous les pages php correspondant.
impression.php
********************************
<html> 
<head> 
<TABLE WIDTH=100%><TR> 
<TD><A HREF=administration_bon.php><IMG SRC="images/logo.gif" ALIGN=left BORDER=0></A></TD>
 <TD width=95% align=center VALIGN=TOP><b><font size=8>LISTE DE VOS NOUVELLES DEMANDES</font></b></TD>
 </TR> 
<TR><TD align=center><b>Retour<b></TD><TR></TABLE> 
</head> 
<body> 
<br> 
<form method="POST" action="liste_demande_travaux_selection.php"> 
<input type="submit" name="Envoyer" value="Envoyer"><img border="0" src="images/imprimer.gif" width="70" height="70"></a></p>
 
<br> 
<center> 
<br><br> 
<table border=1 width=100%><TR BGCOLOR=#BBBBBB> 
<TD align=center width=10%><font size=5><b>Intervention</b></TD> 
<TD align=center width=10%><font size=5><b>Date appel</b></TD> 
<TD align=center width=5%><font size=5><b>Heure</b></TD> 
<TD align=center width=50%><font size=5><b>Probleme</b></TD> 
<TD align=center width=10%><font size=5><b>Nom</b></TD> 
<TD align=center width=10%><font size=5><b>Service</b></TD> 
<TD align=center width=5%><font size=5><b>Tél.</b></TD> 
</TR> 
<?php 
include("z_root.php"); 
$link= mysql_connect($serveur,$login,$pass); 
mysql_select_db($database,$link); 
$sql ='SELECT phone,num_travaux,date_appel,heure_appel,probleme,tfi2003_cat.nom AS service,tfi2003_contacts.nom AS nom_interloc FROM tfi2003_cat,tfi2003_contacts,type_travaux,travaux WHERE tfi2003_cat.id_cat=travaux.num_service AND type_travaux.id_type=travaux.num_type AND travaux.id_contact_inter=tfi2003_contacts.id_contact and num_statut=1';
 $req = mysql_query($sql) or die("Erreur Requete".mysql_error()); 
while ($data = mysql_fetch_assoc($req)){ 
@ereg("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $data['date_appel'], $date); 
$date_appel=$date[3]."/".$date[2]."/".$date[1]; 
?> 
<TR> 
<input type="hidden" name="envoi" value="yes"> 
<TD align=center><font size=4><input type="checkbox" name="checkbox[]" value="<?php echo $data['num_travaux'];?>" /><?php echo $data['num_travaux'];?></font></TD>
 <TD align=center><font size=4><input type="text" name="date_appel" value="<?php echo $date_appel;?>"></font></TD>
 <TD><font size=4><input type="text" name="heure_appel" value="<?php echo $data['heure_appel'];?>"></font></TD>
 <TD><font size=4><input type="text" name="probleme" value="<?php echo $data['probleme'];?>"></font></TD>
 <TD><font size=4><input type="text" name="nom_interloc" value="<?php echo $data['nom_interloc'];?>"></font></TD>
 <TD><font size=4><input type="text" name="service" value="<?php echo $data['service'];?>"></font></TD>
 <TD><font size=4><input type="text" name="phone" value="<?php echo $data['phone'];?>"></font></TD>
 
</form> 
</TR> 
<?php } ?> 
</TABLE> 
</body> 
</html> 
**************************************
page liste_demande_travaux_selection.php
**************************************
<html> <head> <?php $num_travaux = $_POST['num_travaux']; $date_appel = $_POST['date_appel']; $heure_appel = $_POST['heure_appel']; $probleme = $_POST['probleme']; $nom_interloc = $_POST['nom_interloc']; $service = $_POST['service']; $phone = $_POST['phone']; ?> </head> <body onLoad="window.print();"> <center> <br><br> <table border=1 width=100%> <TR BGCOLOR=#BBBBBB> <TD align=center width=10%><font size=5><b>Intervention</b></TD> <TD align=center width=10%><font size=5><b>Date appel</b></TD> <TD align=center width=5%><font size=5><b>Heure</b></TD> <TD align=center width=50%><font size=5><b>Probleme</b></TD> <TD align=center width=10%><font size=5><b>Nom</b></TD> <TD align=center width=10%><font size=5><b>Service</b></TD> <TD align=center width=5%><font size=5><b>Tél.</b></TD> </TR> <TR> <input type="hidden" name="envoi" value="yes"> <TD align=center><font size=4><input type="checkbox" value="<?php echo $num_travaux;?>"></font></TD> <TD align=center><font size=4><input type="text" name="date_appel" value="<?php echo $date_appel;?>"></font></TD> <TD><font size=4><input type="text" name="heure_appel" value="<?php echo $heure_appel;?>"></font></TD> <TD><font size=4><input type="text" name="probleme" value="<?php echo $probleme;?>"></font></TD> <TD><font size=4><input type="text" name="nom_interloc" value="<?php echo $nom_interloc;?>"></font></TD> <TD><font size=4><input type="text" name="service" value="<?php echo $service;?>"></font></TD> <TD><font size=4><input type="text" name="phone" value="<?php echo $phone;?>"></font></TD> </form> </TR> </TABLE> </body> </html>
*******************************
cela m'affiche que la premiere ligne du tableau
merci par avance de votre aide
bonne journée
        A voir également:         
- Affichage en fonction des cases cochées - php
- Fonction si et - Guide
- Affichage double ecran - Guide
- Easy php - Télécharger - Divers Web & Internet
- Windows 11 affichage classique - Guide
- Fonction miroir - Guide
