1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../css/pages.css" rel="stylesheet" type="text/css"
<title>bibliographie</title>
</head>
<?php
/* connection */
$connection = mysql_connect("localhost","root","");
if ( ! $connection )
die ("connection impossible");
?>
<body>
<div id="content">
<div id="BanniereA">
<center><img src="../../images/banniereAccueil.png" /></center>
</div>
<!-- Début du menu déroulant-->
<div id="menu">
<ul id="menuDeroulant">
<li><a href="accueilfr.html">Accueil</a></li>
<li><a href="">Activités</a>
<ul class="sousMenu">
<li><a href="">Activités à venir </a></li>
<li><a href="activitefr.html">Activités passés </a></li>
</ul>
</li>
<li><a href="reportageslfr.html">Reportages</a></li>
<li><a href="">Média</a>
<ul class="sousMenu">
<li><a href="http://enapassion.fotopic.net/", target="_blank">Galerie photos </a></li>
<li><a href="#">Galerie vidéo </a></li>
</ul>
</li>
<li><a href="../www/EasyPHP1-8/www/projet/biblio.php">Bibliographie</a></li>
<li><a href="lienssfr.html">Liens</a></li>
<li><a href="contactfr.html">Contacts</a></li>
<li><a href="http://www.college-em.qc.ca/ena", target="_self">Site Éna</a></li>
</ul>
</div>
<?php
//récupère tous les enregistrements
$select = 'SELECT B_ID,B_auteur,B_titre,B_ISBN,B_date,B_page,B_photoinfo,B_editeur,URLlink FROM blibliographie';
$result = mysql_query() or die ('Erreur : '.mysql_error() );
$total = mysql_num_rows($result);
while($champs = mysql_fetch_array($result))
// si on a récupéré un résultat on l'affiche.
if($total>0) {
//page html
$html='<div id="contenu">';
$html.= '<div id="biblio">';
$html.= '<table width="800" border="1" cellspacing="20">';
$html.='<tr>';
$html.='<td><img src="../gestion_biblio/images/AviationInCanada-1.jpg" />'
$html.='<br />';
$html.= '<em>'.'$champs["B_titre"].'.'</em>';
$html .= '<br />';
$html.= "écrit par" '.$champs["B_auteur"].'.' <br />';
$html.= "au édition" '.$champs["B_editeur"].'.' </a>';
$html.= '<br /> </td>';
$html.= '<td>'
$html.= "Publier en" '.$champs["B_date"].'", ce livre contient" '.$champs["B_page"].' "et plus de" '.$champs[$photoinfo].';
$html.= '<br />'
$html.= "Pour plus de renseignement:" .'<a href=\"$URLlink\">Cliquez ICI</a>.'". Ce livre a été répertorié sous ce numéro:" '.$champs["B_ISBN"].'.'</td>';
$html.= '<td>';
$html.= "Lire la suite ... <a href='../gestion_biblio/bibliographie.pdf', target='_blank'>" ICI
$html.='</a><br /> </td>';
$html.= '</table>';
//fin du tableau
}
else echo 'Pas d\'enregistrements dans cette table...';
echo($html);
/* fermeture de la connection */
mysql_close($connect);
?>
</div>
</body>
</html> |