1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
function &choixInfos($db) {
//if (isset($task)){$task = 'truc';}else{$task = 'truc';}
echo "<form method=post action='index2.php?option=com_informations'>";
//&task=".$_POST['typeOfUser']."
if (isset($_POST['typeOfUser'])){
if ($_POST['typeOfUser'] == 'tous') {InformationsScreens::voirLesGens($db, 'tous');}
if ($_POST['typeOfUser'] == 'children') {InformationsScreens::voirLesGens($db, 'children');}
if ($_POST['typeOfUser'] == 'godfathers') { InformationsScreens::voirLesGens($db, 'godfathers');}
if ($_POST['typeOfUser'] == 'givers') { InformationsScreens::voirLesGens($db, 'givers');}
if ($_POST['typeOfUser'] == 'correspondants') { InformationsScreens::voirLesGens($db, 'correspondants');}
} else {
echo "<center><br />Recherche d'informations sur un groupe:<br /><br /></center>"
."<SELECT name='typeOfUser' size=\"1\" >
<OPTION SElECTED>tous
<OPTION value=\"children\">children
<OPTION value=\"godfathers\">godfathers
<OPTION value=\"donateurs\">givers
<OPTION value=\"correspondants\">correspondants
</SELECT>";
echo "<input type=\"submit\" value=\"Voir\" <br /></form>";}
} |