L'ancien dépot du générateur de sites d'Antopie https://antopie.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

99 lines
3.1 KiB

<?php include "inc/debut.php";
head("cave.navigateur.php"); ?>
<article>
<h1>Navigateurs web</h1>
<p>
Voici une liste de navigateurs web, destinée à ce que vous trouviez celui qui vous convienne.
<p>
<h2>Menu</h2>
<div class="table-wrapper">
<table class="alt">
<thead>
<tr>
<th>Nom</th>
<th>Editeur</th>
<th>Libre</th>
<th>Basé sur</th>
<th>Bibliothèque de modules</th>
</tr>
</thead>
<tbody>
<?php
include "inc/loginsbdd.php";
try {
$bdd = new PDO('mysql:host=localhost;dbname=anternet;charset=utf8', $userBDD, $mdpBDD, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));
}
catch (Exception $e) {
die('Erreur PHP / MySQL : ' . $e->getMessage()); }
$reponse = $bdd->query('SELECT * FROM navigateur');
while ($donnees = $reponse->fetch()) { ?>
<tr>
<td><a href="#<?php echo $donnees['nomDeCode']; ?>"><?php echo $donnees['nomComplet']; ?></a></td>
<td><?php echo $donnees['editeur']; ?></td>
<td class="<?php echo $donnees['libre']; ?>"></td>
<td><?php echo $donnees['source']; ?></td>
<td><?php echo $donnees['bibliModule']; ?></td>
</tr>
<?php } $reponse->closeCursor(); ?>
</tbody>
</table>
</div>
</p>
<?php
// Afficher les commentaires de la base de données
include "inc/loginsbdd.php";
try {
$bdd = new PDO('mysql:host=localhost;dbname=anternet;charset=utf8', $userBDD, $mdpBDD, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));
}
catch (Exception $e) {
die('Erreur PHP / MySQL : ' . $e->getMessage()); }
$reponse = $bdd->query("SELECT * FROM navigateur ORDER BY 'num' DESC");
while ($donnees = $reponse->fetch()) { ?>
<div>
<img src="media/nav/<?php echo $donnees['nomDeCode']; ?>.png" alt="Logo <?php echo $donnees['nomComplet']; ?>"/><span class="nomNavigateur" id="<?php echo $donnees['nomDeCode']; ?>"> <?php echo $donnees['nomComplet']; ?></span>
<div class="descriptionNavigateur">
<?php echo $donnees['description']; ?>
<br>
<div class="monAvis">
<span class="fin-it">Mon avis :</span>
<?php echo $donnees['monAvis']; ?>
</div>
<img src="media/onglet/<?php echo $donnees['nomDeCode']; ?>.png" alt="Interface de <?php echo $donnees['nomComplet']; ?>" class="img"/>
<a href="<?php echo $donnees['lienTelecharger']; ?>" title="Télécharger <?php echo $donnees['nomComplet']; ?> depuis le site officiel" class="button small icon fa-cloud-download">
Télécharger <?php echo $donnees['nomComplet']; ?>
</a>
<a href="<?php echo $donnees['lienWikipedia']; ?>" title="Voir l'article Wikipédia de ce navigateur" class="button small icon fa-wikipedia-w ">
Voir <?php echo $donnees['nomDeCode']; ?> sur Wikipédia
</a>
</div>
</div>
<?php } $reponse->closeCursor(); ?>
</article>
<?php include "inc/footer.php"; ?>