X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=php%2Fpanel.php;h=54b1b53450e768dc25028afc20fd473cec83a818;hb=23bc2016d5fbd8f7daa9b7ba5c7fa862709ff7a7;hp=21c2fa4f50041e52723f7e020817556fb6c5011d;hpb=72508fb3290057e8afd090d06e5763ee8ff68cd7;p=cl7.git diff --git a/php/panel.php b/php/panel.php index 21c2fa4..54b1b53 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,13 +44,11 @@ class Panel
'; } else - { - if (isset($log)) echo '[erreur de loggation]'; - + { echo'