From c2a76fa77d38ad3170c7de314dde7b60318c0f1a Mon Sep 17 00:00:00 2001 From: jlb Date: Mon, 13 Jan 2003 21:56:24 +0000 Subject: [PATCH] rajout d'un message indiquant que l'utilsateur a bien ete enregistre --- htdocs/adherents/public/new.php | 111 ++++++++++++++------------------ 1 file changed, 49 insertions(+), 62 deletions(-) diff --git a/htdocs/adherents/public/new.php b/htdocs/adherents/public/new.php index 5b9b99fc54b..b3e422cab89 100644 --- a/htdocs/adherents/public/new.php +++ b/htdocs/adherents/public/new.php @@ -54,29 +54,12 @@ if ($HTTP_POST_VARS["action"] == 'add') { $adh->cotisation(mktime(12, 0 , 0, $remonth, $reday, $reyear), $cotisation); } - Header("Location: new.php"); + Header("Location: new.php?action=added"); } } llxHeader(); -// Header -/* -print ""; -print ''; -print ''; -print "\n"; -print 'Dolibarr'; -print "\n"; - -print "\n"; - -print ''; - -print ''; - -print ''; +print "\n"; +print "
'; -*/ /* ************************************************************************** */ /* */ /* Création d'une fiche */ @@ -84,64 +67,68 @@ print '
'; /* ************************************************************************** */ - $sql = "SELECT s.nom,s.idp, f.amount, f.total, f.facnumber"; - $sql .= " FROM societe as s, llx_facture as f WHERE f.fk_soc = s.idp"; - $sql .= " AND f.rowid = $facid"; +$sql = "SELECT s.nom,s.idp, f.amount, f.total, f.facnumber"; +$sql .= " FROM societe as s, llx_facture as f WHERE f.fk_soc = s.idp"; +$sql .= " AND f.rowid = $facid"; - $result = $db->query($sql); - if ($result) { - $num = $db->num_rows(); - if ($num) { - $obj = $db->fetch_object( 0); - - $total = $obj->total; - } +if (isset($action) && $action== 'added'){ + print "Nouvel Adhérent ajouté. En attente de validation
\n"; +} +$result = $db->query($sql); +if ($result) { + $num = $db->num_rows(); + if ($num) { + $obj = $db->fetch_object( 0); + + $total = $obj->total; } - print_titre("Nouvel adhérent"); - print "
\n"; - print ''; - - print ''; +} +print_titre("Nouvel adhérent"); - $htmls = new Form($db); - $adht = new AdherentType($db); +print "\n"; +print '
'; - print '\n"; +print ''; - print ''; +$htmls = new Form($db); +$adht = new AdherentType($db); - $morphys["phy"] = "Physique"; - $morphys["mor"] = "Morale"; +print '\n"; - print "\n"; - - print ''; +print ''; - print ''; - +$morphys["phy"] = "Physique"; +$morphys["mor"] = "Morale"; + +print "\n"; + +print ''; + +print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; + +print ''; +print ''; +print ''; +print ''; +print ''; +print ''; +print ''; +print ''; - print ''; - print "\n"; - print "
Type'; - $htmls->select_array("type", $adht->liste_array()); - print "Commentaires :
Type'; +$htmls->select_array("type", $adht->liste_array()); +print "
Personne\n"; - $htmls->select_array("morphy", $morphys); - print "
Commentaires :
Prénom
Personne\n"; +$htmls->select_array("morphy", $morphys); +print "
Prénom
Nom
Societe
Adresse'; - print '
CP Ville
Pays
Email
Login
Password
Nom
Societe
Adresse'; +print '
CP Ville
Pays
Email
Login
Password
\n"; - +print '
\n"; + $db->close();