Ejemplo n.º 1
0
                        if ($errmsg) {
                            $errmsg .= '<br>';
                        }
                        $errmsg .= $error;
                    }
                }
                $action = '';
            }
        } else {
            $db->rollback();
        }
    }
}
if ($_REQUEST["action"] == 'confirm_delete' && $_REQUEST["confirm"] == 'yes' && $user->rights->adherent->cotisation->creer) {
    $result = $subscription->fetch($rowid);
    $result = $subscription->delete($user);
    if ($result > 0) {
        header("Location: card_subscriptions.php?rowid=" . $subscription->fk_adherent);
        exit;
    } else {
        $mesg = $adh->error;
    }
}
/*
 * View
 */
llxHeader('', $langs->trans("SubscriptionCard"), 'EN:Module_Foundations|FR:Module_Adh&eacute;rents|ES:M&oacute;dulo_Miembros');
$form = new Form($db);
dol_htmloutput_errors($errmsg);
if ($user->rights->adherent->cotisation->creer && $action == 'edit') {
    /********************************************