game/pages/rapport_bug.php

56 lines
1.9 KiB
PHP
Raw Normal View History

2007-03-31 10:00:00 +00:00
<? session_start(); ?>
<HTML>
<HEAD>
2007-11-03 11:00:00 +00:00
<TITLE>Halo battle</TITLE>
<link rel=stylesheet media=screen type=text/css title=design href=descriptions/diz/base.css >
<meta http-equiv=pragma content=no-cache >
<meta http-equiv=content-type content=text/html;charset=iso-8869-1 >
<link rel=shortcut icon type=image/x-icon href=favicon.ico >
2007-03-31 10:00:00 +00:00
<?
2007-11-03 11:00:00 +00:00
mysql_connect("localhost", "root", "");
mysql_select_db("wars");
2007-03-31 10:00:00 +00:00
function convert_ts_fr($tstamp) {
echo date ( 'd/m/Y H:i:s' , $tstamp ); };
?>
</head>
<body>
<?
$retour = mysql_query("SELECT COUNT(*) AS nbre_entrees FROM bug");
$donnees = mysql_fetch_array($retour);
$bug = $donnees['nbre_entrees'];
if (isset($_GET['ok']) == 1) { echo "<br><talbe align=center><tr><td><font color=lime>Bug envoy<6F></font></td></tr></table>"; }
if ( $bug > 0)
{
echo "<table align=center>";
$result = mysql_query("SELECT * FROM bug");
while ($data = mysql_fetch_array($result) )
{
echo "<tr><td>Exp<78>diteur : ".$data['pseudo']."</td></tr><tr><td>Le : "; convert_ts_fr($data['temps']);
echo"</td></tr><tr><td>Page concern<72>e : ".$data['page']."</td></tr><tr><td>Description du bug : ".$data['description']."</td></tr>";
}
echo "</table>";
}
2007-11-03 11:00:00 +00:00
else { echo "<br><br><table align=center><tr><td><font color=red>Aucun bug trouv<75></font></td></tr></table>"; }
2007-03-31 10:00:00 +00:00
echo"<br><br><br><br><br>
<form method=post action=validation_bug.php>
<center>Ajouter un bug<br><br>
<table>
<tr><td colspan=2 align=left><font color=red>Attention : bien lire les bugs deja propos<EFBFBD>,<br>l'utilisation abusive ou des bugs ayant non lieus seront sanctionn<EFBFBD>s.</font></td></tr>
<tr><td>Page concern<EFBFBD>e : <td><input type=text class=zone_texte size=25 maxlength=50 name=page></td></td></tr>
2007-11-03 11:00:00 +00:00
<tr><td>Description le plus pr<EFBFBD>cise possible du bug : <td><textarea cols=30 rows=12 name=description class=zone_texte></textarea></td></td></tr>
<tr><td colspan=2><input type=submit value=Envoyer class=bouton /></td></tr>
2007-03-31 10:00:00 +00:00
</table></center></form>";
?>
</body>
</html>