X-Git-Url: http://git.euphorik.ch/?p=cl7.git;a=blobdiff_plain;f=php%2Fpages%2Finscription.php;h=dd603acaca4a41da53976f60669f7a557cc09262;hp=cfdd1e702bae3eeab265ab47bad3e39d06e508ce;hb=23bc2016d5fbd8f7daa9b7ba5c7fa862709ff7a7;hpb=75d6e5d29bfe332d68c617d26e3a8b1828a57893 diff --git a/php/pages/inscription.php b/php/pages/inscription.php index cfdd1e7..dd603ac 100644 --- a/php/pages/inscription.php +++ b/php/pages/inscription.php @@ -6,7 +6,7 @@ if ($config->get("inscription_terminees")) return; } -if ($participant->valide) +if ($participant->existe()) echo '

Modification de mes infos

'; else echo'

Les personnes inscrites s\'engagent à être présentes à la LAN et à payer la somme convenue.

Elles peuvent se désinscrirent en cas d\'empèchements majeurs.

'; @@ -14,7 +14,7 @@ else
valide) + if($participant->existe()) echo '

'; else echo '

'; @@ -29,7 +29,7 @@ else pseudo (login) - " /> + " /> @@ -37,8 +37,8 @@ else password (pour pouvoir par la suite modifier mes infos) - " /> - re: " /> + " /> + re: " /> @@ -46,16 +46,14 @@ else clan name - " /> + " /> @@ -64,7 +62,7 @@ else clan tag - + @@ -72,7 +70,7 @@ else nom - + @@ -80,7 +78,7 @@ else prénom - + @@ -88,7 +86,7 @@ else age - + @@ -96,7 +94,7 @@ else email (non-public) - + @@ -105,17 +103,15 @@ else valide ? $participant->info->id : "0")." + AND participations.participant_id = $1 ORDER BY periodes.id - "); - while($periode = mysql_fetch_object($res)) - { - echo '

valide && (!$_POST['periodes'] || in_array($periode->id, $_POST['periodes']))) || $periode->participant_id ? 'checked="checked"' : '').' id="periode'.$periode->id.'" type="checkbox" />

'; - } + ", array(($participant->existe() ? $participant->info->id : "0"))); + while($periode = pg_fetch_object($res)) + echo '

existe() && (!$_POST['periodes'] || in_array($periode->id, $_POST['periodes']))) || $periode->participant_id ? 'checked="checked"' : '').' id="periode'.$periode->id.'" type="checkbox" />

'; ?> @@ -132,11 +128,11 @@ else remarques - + valide) + if (!$participant->existe()) echo'