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 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Structure</title>
<!-- chargement des feuilles de style -->
<style type="text/css">
<!--
.Style3 {color: #FFFFFF; font-weight: bold; }
-->
</style>
<!-- Création du style pour l'info bulle-->
<style>
/* Règle de base pour le lien */
a{
color:#4c0ed8;
}
a:hover,a:focus{
color:#000;
}
/* Position et couleur bulle */
a span{
position:absolute;
margin-top:25px;
margin-left:-25px;
color:#fff;
background:rgba(0, 0, 0, 1);
padding:25px;
border-radius:3px;
/* Faire disparaire infobulle par défaut */
/* On determine l'origine de la rotation */
transform:scale(0) rotate(-180deg);
/* Faire durer l'effet */
transition:all .25s;
/* Effet sur la transparence */
opacity:0;
}
/* Apparition de la bulle avec le scale à 1 */
a:hover span, a:focus span{
transform:scale(1) rotate(0);
/* Effet sur la transparence */
opacity:1;
}
.Style4 {color: #FFFFFF}
</style>
</head>
<body background="">
<?php
try
{
// On se connecte à MySQL
$bdd = new PDO('mysql:host=*******;dbname=*********;charset=utf8', '********', '********');
}
catch(Exception $e)
{
// En cas d'erreur, on affiche un message et on arrête tout
die('Erreur : '.$e->getMessage());
}
// Si tout va bien, on peut continuer
// On récupère tout le contenu de la table
$reponse = $bdd->query('SELECT * FROM entrainementSAL order by Date DESC');
// On affiche chaque entrée une à une
while ($donnees = $reponse->fetch())
{
?>
<br />
<table width="882" border="1" align="center" bgcolor="#990000">
<tr>
<td width="104"><div align="center" class="Style3">INFO</div></td>
<td width="107"><div align="center" class="Style3">DATE</div></td>
<td width="145"><div align="center" class="Style3">HEURE</div></td>
<td width="149"><div align="center" class="Style3">LIEU</div></td>
<td width="116"><div align="center" class="Style3">PROFONDEUR</div></td>
<td width="101"><div align="center" class="Style3">DP</div></td>
<td width="114"><div align="center" class="Style3">STATUT</div></td>
</tr>
</table>
<table width="882" border="1" align="center" bgcolor="#FFFFFF">
<tr>
<td width="103"><div align="center"><a href="#" ><img src="images/info.png" alt="" width="15" height="15" align="top" />
<!--- texte de l'info bulle --->
<span style="left: 218px; top: 117px;">
<div id="texte" class="texte">
<table width="416" border="1" align="center">
<div>
Coef : <?php echo $donnees['Coef']; ?> - PM : <?php echo $donnees['PM']; ?> - BM : <?php echo $donnees['BM']; ?></div>
<br />
<tr>
<td width="200" bgcolor="#333333"><?php echo $donnees['Plongeur1']; ?></td>
<td width="200" bgcolor="#333333"><?php echo $donnees['Plongeur5']; ?></td>
</tr>
<tr>
<td bgcolor="#333333"><?php echo $donnees['Plongeur2']; ?></td>
<td bgcolor="#333333"><?php echo $donnees['Plongeur6']; ?></td>
</tr>
<tr>
<td bgcolor="#333333"><?php echo $donnees['Plongeur3']; ?></td>
<td bgcolor="#333333"><?php echo $donnees['Plongeur7']; ?></td>
</tr>
<tr>
<td bgcolor="#333333"><?php echo $donnees['Plongeur4']; ?></td>
<td bgcolor="#333333"><?php echo $donnees['Plongeur8']; ?></td>
</tr>
</table>
</div></span>
<td width="109"><div align="center"><?php echo $donnees['Date']; ?></div></td>
<td width="145"><div align="center"><?php echo $donnees['HD']; ?></div></td>
<td width="149"><div align="center"><?php echo $donnees['Lieu']; ?></div></td>
<td width="115"><div align="center"><strong><?php echo $donnees['Prof']; ?></strong></div></td>
<td width="100"><div align="center"><strong><?php echo $donnees['DP']; ?></strong></div></td>
<td width="115"> </td>
</tr>
</table>
<script type="text/javascript">
//<!--
afficher_cacher('texte');
//-->
</script>
<?php
}
$reponse->closeCursor(); // Termine le traitement de la requête
?>
</body>
</html> |
Partager