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
|
<!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" xml:lang="fr" lang="fr">
<head>
<title>Mapage</title>
</head>
<div>
<body>
<table align ="center" border>
<tr><th><b>champ1</b></th><th><b>champ2</b></th></tr>
</table>
<div id="member_login" style=" margin : auto; height: 400px; overflow-x:auto; overflow-y:scroll; ">
<table align ="center" border>
<?php
$sql1 = mysql_query("select champ1,champ2 from matable");
$change = mysql_fetch_array ($sql1);
if (mysql_num_rows($sql1)==0)
{echo ' <tr><td align ="center"><br>Pas de données!!<br><br></td></tr>';}
else
{
for ($i=0; $i < mysql_num_rows($sql1); ++$i)
{ echo('<tr> <a name='.$change[0].'>');
mysql_data_seek($sql1, $i);
$change = mysql_fetch_array($sql1);
for ($col=1; $col<14; ++$col)
echo '<td>'.$change[$col].'</td>';
echo '<td width=70><a href="modif_site.php?'.'id_site='.$change[0].'#'.$change[0].'" >Modification</a></td>';
echo '</a></tr>';
}
}
mysql_close($db);
?>
</table>
</div>
<div style="overflow: auto">
<table CELLSPACING=0 align ="center" border>
<form method="POST" action="valider_site.php">
<h3 class="bar">Modification des informations sur le site </h3>
<input name="id_site" type= "hidden" value="<?php echo $recu_id_site; ?>">
<tr>
<td>champ1</td>
<td>champ2</td>
</tr>
<tr>
<td><input name="champ1" type="text" size="5" value="<?php echo $change['champ1']; ?>"></td>
<td><input name="champ2" type="text" size="5" value="<?php echo $change['champ2']; ?>"></td>
</tr>
</div>
</body>
</html> |