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 152 153 154 155 156 157 158 159 160 161 162 163 164
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
include ("BDSQL.class.php");
$objSQL=new BDSQL();
//Connexion au serveur
$res=$objSQL->connexion("localhost","root","");
if($res!=0)
{
echo $objSQL->erreur();
}
// Connexion a la base de données
mysql_select_db("rat") or die("erreur de connexion a la base de donnees");
$query = "SELECT * FROM rat1";
$result = mysql_query($query);
while($donnee = mysql_fetch_row($result))
{
$tempteterat1 = $donnee[0];
$tempcorpsrat1 = $donnee[1];
$tempqueurat1 = $donnee[2];
$poidsrat1 = $donnee[3];
}
$query = "SELECT * FROM rat2";
$result = mysql_query($query);
while($donnee = mysql_fetch_row($result))
{
$tempteterat2 = $donnee[0];
$tempcorpsrat2 = $donnee[1];
$tempqueurat2 = $donnee[2];
$poidsrat2 = $donnee[3];
}
$query = "SELECT * FROM rat3";
$result = mysql_query($query);
while($donnee = mysql_fetch_row($result))
{
$tempteterat3 = $donnee[0];
$tempcorpsrat3 = $donnee[1];
$tempqueurat3 = $donnee[2];
$poidsrat3 = $donnee[3];
}
$query = "SELECT * FROM rat4";
$result = mysql_query($query);
while($donnee = mysql_fetch_row($result))
{
$tempteterat4 = $donnee[0];
$tempcorpsrat4 = $donnee[1];
$tempqueurat4 = $donnee[2];
$poidsrat4 = $donnee[3];
}
$query = "SELECT * FROM rat5";
$result = mysql_query($query);
while($donnee = mysql_fetch_row($result))
{
$tempteterat5 = $donnee[0];
$tempcorpsrat5 = $donnee[1];
$tempqueurat5 = $donnee[2];
$poidsrat5 = $donnee[3];
}
$query = "SELECT * FROM rat6";
$result = mysql_query($query);
while($donnee = mysql_fetch_row($result))
{
$tempteterat6 = $donnee[0];
$tempcorpsrat6 = $donnee[1];
$tempqueurat6 = $donnee[2];
$poidsrat6 = $donnee[3];
}
$query = "SELECT * FROM rat7";
$result = mysql_query($query);
while($donnee = mysql_fetch_row($result))
{
$tempteterat7 = $donnee[0];
$tempcorpsrat7 = $donnee[1];
$tempqueurat7 = $donnee[2];
$poidsrat7 = $donnee[3];
}
$query = "SELECT * FROM rat8";
$result = mysql_query($query);
while($donnee = mysql_fetch_row($result))
{
$tempteterat8 = $donnee[0];
$tempcorpsrat8 = $donnee[1];
$tempqueurat8 = $donnee[2];
$poidsrat8 = $donnee[3];
}
mysql_close();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="Refresh" CONTENT="60; URL=tableaux.php">
<title>RAT</title>
</head>
<body>
<form action="" method="POST">
<table width="805" height="200" border="1">
<tr>
<th width="100" height="28" scope="col"> </th>
<th width="106" scope="col">RAT1 <input type="checkbox" name="C1" id="C1" checked></th>
<th width="106" scope="col">RAT2 <input type="checkbox" name="C2" id="C2" checked></th>
<th width="106" scope="col">RAT3 <input type="checkbox" name="C3" id="C3" checked></th>
<th width="106" scope="col">RAT4 <input type="checkbox" name="C4" id="C4" checked></th>
<th width="106" scope="col">RAT5 <input type="checkbox" name="C5" id="C5" checked></th>
<th width="106" scope="col">RAT6 <input type="checkbox" name="C6" id="C6" checked></th>
<th width="106" scope="col">RAT7 <input type="checkbox" name="C7" id="C7" checked></th>
<th width="106" scope="col">RAT8 <input type="checkbox" name="C8" id="C8" checked></th>
</tr>
<tr>
<th height="30" width="100" scope="row">tete<input type="checkbox" name="T1" value="ON" id="T1" checked></th>
<td><div align="center"><?php echo $tempteterat1 ?></div></td>
<td><div align="center"><?php echo $tempteterat2 ?></div></td>
<td><div align="center"><?php echo $tempteterat3 ?></div></td>
<td><div align="center"><?php echo $tempteterat4 ?></div></td>
<td><div align="center"><?php echo $tempteterat5 ?></div></td>
<td><div align="center"><?php echo $tempteterat6 ?></div></td>
<td><div align="center"><?php echo $tempteterat7 ?></div></td>
<td><div align="center"><?php echo $tempteterat8 ?></div></td>
</tr>
<tr>
<th height="30" width="100" scope="row">corps<input type="checkbox" name="T2" value="ON" id="T2" checked></th>
<td><div align="center"><?php echo $tempcorpsrat1 ?></div></td>
<td><div align="center"><?php echo $tempcorpsrat2 ?></div></td>
<td><div align="center"><?php echo $tempcorpsrat3 ?></div></td>
<td><div align="center"><?php echo $tempcorpsrat4 ?></div></td>
<td><div align="center"><?php echo $tempcorpsrat5 ?></div></td>
<td><div align="center"><?php echo $tempcorpsrat6 ?></div></td>
<td><div align="center"><?php echo $tempcorpsrat7 ?></div></td>
<td><div align="center"><?php echo $tempcorpsrat8 ?></div></td>
</tr>
<tr>
<th height="30" width="100" scope="row">queu<input type="checkbox" name="T3" value="ON" id="T3" checked></th>
<td><div align="center"><?php echo $tempqueurat1 ?></div></td>
<td><div align="center"><?php echo $tempqueurat2 ?></div></td>
<td><div align="center"><?php echo $tempqueurat3 ?></div></td>
<td><div align="center"><?php echo $tempqueurat4 ?></div></td>
<td><div align="center"><?php echo $tempqueurat5 ?></div></td>
<td><div align="center"><?php echo $tempqueurat6 ?></div></td>
<td><div align="center"><?php echo $tempqueurat7 ?></div></td>
<td><div align="center"><?php echo $tempqueurat8 ?></div></td>
</tr>
<tr>
<th height="30" width="100" scope="row">poids<input type="checkbox" name="T4" value="ON" id="T4" checked></th>
<td><div align="center"><?php echo $poidsrat1 ?></div></td>
<td><div align="center"><?php echo $poidsrat2 ?></div></td>
<td><div align="center"><?php echo $poidsrat3 ?></div></td>
<td><div align="center"><?php echo $poidsrat4 ?></div></td>
<td><div align="center"><?php echo $poidsrat5 ?></div></td>
<td><div align="center"><?php echo $poidsrat6 ?></div></td>
<td><div align="center"><?php echo $poidsrat7 ?></div></td>
<td><div align="center"><?php echo $poidsrat8 ?></div></td>
</tr>
</table>
</form>
</body>
</html> |