correction d'un bug remettant l'attribut publioc a 0 lors de l'edition d'un adherent

This commit is contained in:
jlb 2003-01-28 17:34:15 +00:00
parent 9f726f3eb6
commit dd38c3cde0
2 changed files with 10 additions and 1 deletions

View File

@ -56,8 +56,9 @@ if ($action == 'update')
$adh->typeid = $HTTP_POST_VARS["type"];
$adh->commentaire = $HTTP_POST_VARS["comment"];
$adh->morphy = $HTTP_POST_VARS["morphy"];
// recuperation du statut
// recuperation du statut et public
$adh->statut = $HTTP_POST_VARS["statut"];
$adh->public = $HTTP_POST_VARS["public"];
if ($adh->update($user->id) )
{
@ -133,6 +134,7 @@ if ($rowid)
print "<input type=\"hidden\" name=\"action\" value=\"update\">";
print "<input type=\"hidden\" name=\"rowid\" value=\"$rowid\">";
print "<input type=\"hidden\" name=\"statut\" value=\"".$adh->statut."\">";
print "<input type=\"hidden\" name=\"public\" value=\"".$adh->public."\">";
$htmls = new Form($db);

View File

@ -295,6 +295,13 @@ if ($rowid > 0)
print '<tr><td>Pass</td><td class="valeur">'.$adh->pass.'&nbsp;</td></tr>';
print '<tr><td>Date de Naissance</td><td class="valeur">'.$adh->naiss.'&nbsp;</td></tr>';
print '<tr><td>URL Photo</td><td class="valeur">'.$adh->photo.'&nbsp;</td></tr>';
print '<tr><td>Public ?</td><td class="valeur">';
if ($adh->public==1){
print 'Yes';
}else{
print "No";
}
print '&nbsp;</td></tr>';
print "</table>\n";