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 '| '; -*/ /* ************************************************************************** */ /* */ /* 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 " |