X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;ds=sidebyside;f=php%2Fpanel.php;h=f65705f9560bbec81a778c0af1ff6bd2ba1cc318;hb=6b9eac51629ad6fcec7da5f48b92f4c2b54c5901;hp=21c2fa4f50041e52723f7e020817556fb6c5011d;hpb=72508fb3290057e8afd090d06e5763ee8ff68cd7;p=cl7.git diff --git a/php/panel.php b/php/panel.php index 21c2fa4..f65705f 100644 --- a/php/panel.php +++ b/php/panel.php @@ -12,26 +12,26 @@ class Panel function Panel($participant) { - $this->participant; + $this->participant = $participant; } function rendre() { # selection de tous les participants - $res_SQL = mysql_query("SELECT pseudo FROM participants ORDER BY id"); + $res_SQL = pg_query("SELECT pseudo FROM participants ORDER BY id"); - echo '
', mysql_num_rows($res_SQL), ' inscrit', (mysql_num_rows($res_SQL) > 1 ? 's' : ''), '
'; + echo '
', pg_num_rows($res_SQL), ' inscrit', (pg_num_rows($res_SQL) > 1 ? 's' : ''), '
'; # affichage des participants - if (mysql_num_rows($res_SQL) > 0) + if (pg_num_rows($res_SQL) > 0) echo ''; if($this->participant->valide) @@ -39,7 +39,7 @@ class Panel echo'
@@ -48,13 +48,11 @@ class Panel
'; } else - { - if (isset($log)) echo '[erreur de loggation]'; - + { echo'