From 0c6353232c80c56a21aa443ee7622ab109cd81bb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 23 Oct 2004 14:48:05 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Correction=20tableau=20html=20mal=20ferm?= =?UTF-8?q?=E9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/adherents/type.php | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php index aa2e7d0504d..4989d21688f 100644 --- a/htdocs/adherents/type.php +++ b/htdocs/adherents/type.php @@ -38,10 +38,10 @@ if ($_POST["action"] == 'add' && $user->admin) $adht = new AdherentType($db); $adht->libelle = $_POST["libelle"]; - $adht->cotisation = $_POST["cotisation"]; + $adht->cotisation = $yesno[$_POST["cotisation"]]; $adht->commentaire = $_POST["comment"]; $adht->mail_valid = $_POST["mail_valid"]; - $adht->vote = $_POST["vote"]; + $adht->vote = $yesno[$_POST["vote"]]; if ($_POST["libelle"]) { $adht->create($user->id); } } @@ -54,10 +54,10 @@ if ($_POST["action"] == 'update' && $user->admin) $adht = new AdherentType($db); $adht->id = $_POST["rowid"];; $adht->libelle = $_POST["libelle"]; - $adht->cotisation = $_POST["cotisation"]; + $adht->cotisation = $yesno[$_POST["cotisation"]]; $adht->commentaire = $_POST["comment"]; $adht->mail_valid = $_POST["mail_valid"]; - $adht->vote = $_POST["vote"]; + $adht->vote = $yesno[$_POST["vote"]]; $adht->update($user->id); } @@ -148,26 +148,25 @@ else if ($_GET["action"] == 'create') { + $htmls = new Form($db); print_titre("Nouveau type"); print '
'; print "
"; - print ''; + print '
'; print ''; print ''; print ''; print ''; print '"; @@ -190,6 +189,7 @@ if ($_GET["action"] == 'create') { /* ************************************************************************** */ if ($_GET["rowid"] > 0 && $_GET["action"] == 'edit') { + $htmls = new Form($db); $adht = new AdherentType($db); $adht->id = $_GET["rowid"]; @@ -198,21 +198,14 @@ if ($_GET["rowid"] > 0 && $_GET["action"] == 'edit') print_titre("Edition de la fiche"); print '
'; - /* - * - * - */ print ''; print ''; print ''; - print '
'.$langs->trans("Label").'
Soumis à cotisation'; - - print ''; + $htmls->selectyesno("cotisation",""); + print '
Droit de vote'; - - print ''; + $htmls->selectyesno("vote",""); + print '
'.$langs->trans("Comments").' :'; print "
'; + print '
'; print ''; print '';
'.$langs->trans("Label").'
Soumis à cotisation'; - - $htmls = new Form($db); - $htmls->selectyesno("cotisation",$adht->cotisation); print '