X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=php%2Fpanel.php;h=d07bb6c554f10a3a3796607db6d1b3c89eeb05b4;hb=c75da06bb039de2a43f21b6e853a72745f753dca;hp=21c2fa4f50041e52723f7e020817556fb6c5011d;hpb=72508fb3290057e8afd090d06e5763ee8ff68cd7;p=cl7.git diff --git a/php/panel.php b/php/panel.php index 21c2fa4..d07bb6c 100644 --- a/php/panel.php +++ b/php/panel.php @@ -12,34 +12,30 @@ 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) + if($this->participant->existe()) { echo'
@@ -48,20 +44,18 @@ class Panel
'; } else - { - if (isset($log)) echo '[erreur de loggation]'; - + { echo'

login / pass

-

+

';