Esempio n. 1
0
    echo '<td><b><u>Identifiant</u></b></td>';
    echo '<td><b><u>Nom du Produit</u></b></td>';
    echo '<td><b><u>Description</u></b></td>';
    echo '<td><b><u>Prix de revient</u></b></td>';
    echo '<td><b><u>Prix de Vente</u></b></td>';
    echo '<td><b><u>Modifier</u></b></td>';
    echo '<td><b><u>Supprimer</u></b></td>';
    echo '</tr>' . "\n";
    // lecture et affichage des résultats sur 2 colonnes, 1 résultat par ligne.
    while ($row = mysql_fetch_array($result)) {
        echo '<tr>';
        echo '<td>' . $row["id_produit"] . '</td>';
        echo '<td>' . $row["detail"] . '</td>';
        echo '<td>' . $row["description"] . '</td>';
        echo '<td>' . $row["prix_revient"] . '</td>';
        echo '<td>' . $row["prix_vente"] . '</td>';
        echo '<td align="center"><form method="post" action="mod_produit.php"><input type="hidden" name="id_produit" value=' . $row["id_produit"] . ' /><input type="image" src="../img/mod.jpg" width="32" height="32" border="0" alt="modifier" name="mod"></form></td>';
        echo '<td align="center"><form method="post" action="supp_produit.php"><input type="hidden" name="id_produit" value=' . $row["id_produit"] . ' /><input type="image" src="../img/supp.png" width="32" height="32" border="0" alt="supprimer" name="del_img"></form></td>';
        echo '</tr>' . "\n";
    }
    echo '</table>' . "\n";
    // fin du tableau.
} else {
    echo 'Pas d\'enregistrements dans cette table...';
}
// on libère le résultat
mysql_free_result($result);
// On ferme la page
$piedpage = piedpage_tableau("produit");
echo $piedpage;
include "../footer.php";
Esempio n. 2
0
    echo '</tr>' . "\n";
    // lecture et affichage des résultats sur 2 colonnes, 1 résultat par ligne.
    while ($row = mysql_fetch_array($result)) {
        echo '<tr>';
        echo '<td>' . $row["id_client"] . '</td>';
        echo '<td>' . $row["nom"] . '</td>';
        echo '<td>' . $row["adresse"] . '</td>';
        echo '<td>' . $row["cp"] . '</td>';
        echo '<td>' . $row["ville"] . '</td>';
        echo '<td>' . $row["siret"] . '</td>';
        echo '<td>' . $row["tva"] . '</td>';
        echo '<td>' . $row["tel"] . '</td>';
        echo '<td>' . $row["fax"] . '</td>';
        echo '<td>' . $row["mail"] . '</td>';
        echo '<td>' . $row["contact"] . '</td>';
        echo '<td>' . $row["observation"] . '</td>';
        echo '<td align="center"><form method="post" action="mod_client.php"><input type="hidden" name="id_client" value=' . $row["id_client"] . ' /><input type="image" src="../img/mod.jpg" width="32" height="32" border="0" alt="modifier" name="mod"></form></td>';
        echo '<td align="center"><form method="post" action="supp_client.php"><input type="hidden" name="id_client" value=' . $row["id_client"] . ' /><input type="image" src="../img/supp.png" width="32" height="32" border="0" alt="supprimer" name="del_img"></form></td>';
        echo '</tr>' . "\n";
    }
    echo '</table>' . "\n";
    // fin du tableau.
} else {
    echo 'Pas d\'enregistrements dans cette table...';
}
// on libère le résultat
mysql_free_result($result);
// On ferme la page
$piedpage = piedpage_tableau("client");
echo $piedpage;
include "../footer.php";
Esempio n. 3
0
        echo '<td>' . $row["visite"] . '</td>';
        echo '<td>' . $row["entretien"] . '</td>';
        echo '<td>' . $row["observation"] . '</td>';
        echo '<td>' . $row["defaut"] . '</td>';
        echo '<td>' . $row["km"] . '</td>';
        echo '<td>';
        if ($row["etat"] == '0') {
            echo 'Libre';
        }
        if ($row["etat"] == '1') {
            echo 'Utilisé';
        }
        if ($row["etat"] == '2') {
            echo 'En panne';
        }
        echo '</td>';
        echo '<td align="center"><form method="post" action="mod_tracteur.php"><input type="hidden" name="id_tracteur" value=' . $row["id_tracteur"] . ' /><input type="image" src="../img/mod.jpg" width="32" height="32" border="0" alt="modifier" name="mod"></form></td>';
        echo '<td align="center"><form method="post" action="supp_tracteur.php"><input type="hidden" name="id_tracteur" value=' . $row["id_tracteur"] . ' /><input type="image" src="../img/supp.png" width="32" height="32" border="0" alt="supprimer" name="del_img"></form></td>';
        echo '</tr>' . "\n";
    }
    echo '</table>' . "\n";
    // fin du tableau.
} else {
    echo 'Pas d\'enregistrements dans cette table...';
}
// on libère le résultat
mysql_free_result($result);
// On ferme la page
$piedpage = piedpage_tableau("tracteur");
echo $piedpage;
include "../footer.php";
Esempio n. 4
0
    while ($row = mysql_fetch_array($result)) {
        echo '<tr>';
        echo '<td>' . $row["id_user"] . '</td>';
        echo '<td>' . $row["mail"] . '</td>';
        echo '<td>' . $row["password"] . '</td>';
        echo '<td>' . $row["nom"] . '</td>';
        echo '<td>' . $row["prenom"] . '</td>';
        echo '<td>';
        if ($row["droit"] == '1') {
            echo 'Utilisateur';
        }
        if ($row["droit"] == '2') {
            echo 'Administrateur';
        }
        echo '</td>';
        echo '<td>' . $row["logo"] . '</td>';
        echo '<td align="center"><form method="post" action="mod_user.php"><input type="hidden" name="id_user" value=' . $row["id_user"] . ' /><input type="image" src="../img/mod.jpg" width="32" height="32" border="0" alt="modifier" name="mod"></form></td>';
        echo '<td align="center"><form method="post" action="supp_user.php"><input type="hidden" name="id_user" value=' . $row["id_user"] . ' /><input type="image" src="../img/supp.png" width="32" height="32" border="0" alt="supprimer" name="del_img"></form></td>';
        echo '</tr>' . "\n";
    }
    echo '</table>' . "\n";
    // fin du tableau.
} else {
    echo 'Pas d\'enregistrements dans cette table...';
}
// on libère le résultat
mysql_free_result($result);
// On ferme la page
$piedpage = piedpage_tableau("user");
echo $piedpage;
include "../footer.php";
Esempio n. 5
0
    echo '<td><b><u>Modifier</u></b></td>';
    echo '<td><b><u>Supprimer</u></b></td>';
    echo '</tr>' . "\n";
    // lecture et affichage des résultats sur 2 colonnes, 1 résultat par ligne.
    while ($row = mysql_fetch_array($result)) {
        echo '<tr>';
        echo '<td>' . $row["id_chauffeur"] . '</td>';
        echo '<td>' . $row["nom"] . '</td>';
        echo '<td>' . $row["prenom"] . '</td>';
        echo '<td>' . $row["tel"] . '</td>';
        echo '<td>' . $row["mail"] . '</td>';
        echo '<td>' . $row["permis"] . '</td>';
        echo '<td>' . $row["expiration"] . '</td>';
        echo '<td>' . $row["fimo"] . '</td>';
        echo '<td>' . $row["matiere"] . '</td>';
        echo '<td>' . $row["ppetrolier"] . '</td>';
        echo '<td align="center"><form method="post" action="mod_chauffeur.php"><input type="hidden" name="id_chauffeur" value=' . $row["id_chauffeur"] . ' /><input type="image" src="../img/mod.jpg" width="32" height="32" border="0" alt="modifier" name="mod"></form></td>';
        echo '<td align="center"><form method="post" action="supp_chauffeur.php"><input type="hidden" name="id_chauffeur" value=' . $row["id_chauffeur"] . ' /><input type="image" src="../img/supp.png" width="32" height="32" border="0" alt="supprimer" name="del_img"></form></td>';
        echo '</tr>' . "\n";
    }
    echo '</table>' . "\n";
    // fin du tableau.
} else {
    echo 'Pas d\'enregistrements dans cette table...';
}
// on libère le résultat
mysql_free_result($result);
// On ferme la page
$piedpage = piedpage_tableau("chauffeur");
echo $piedpage;
include "../footer.php";
Esempio n. 6
0
        echo '<td>' . $row["observation"] . '</td>';
        echo '<td>' . $row["defaut"] . '</td>';
        echo '<td>' . $row["longueur"] . '</td>';
        echo '<td>' . $row["largeur"] . '</td>';
        echo '<td>' . $row["hauteur"] . '</td>';
        echo '<td>';
        if ($row["etat"] == '0') {
            echo 'Libre';
        }
        if ($row["etat"] == '1') {
            echo 'Utilisé';
        }
        if ($row["etat"] == '2') {
            echo 'En panne';
        }
        echo '</td>';
        echo '<td align="center"><form method="post" action="mod_remorque.php"><input type="hidden" name="id_remorque" value=' . $row["id_remorque"] . ' /><input type="image" src="../img/mod.jpg" width="32" height="32" border="0" alt="modifier" name="mod"></form></td>';
        echo '<td align="center"><form method="post" action="supp_remorque.php"><input type="hidden" name="id_remorque" value=' . $row["id_remorque"] . ' /><input type="image" src="../img/supp.png" width="32" height="32" border="0" alt="supprimer" name="del_img"></form></td>';
        echo '</tr>' . "\n";
    }
    echo '</table>' . "\n";
    // fin du tableau.
} else {
    echo 'Pas d\'enregistrements dans cette table...';
}
// on libère le résultat
mysql_free_result($result);
// On ferme la page
$piedpage = piedpage_tableau("remorque");
echo $piedpage;
include "../footer.php";