$transac = $_GET["idtransac"];
     $annuler = "index.php?a=6&iduser="******"Modifier/Encaisser un forfait pour " . $nom . " " . $prenom;
         $tariforfaits = getTarifsbyCat(5);
         $rowf = getForfait($transac);
         $nbrforfait = $rowf["nbr_forfait"];
         $datef = $rowf["date_transac"];
         $forfait_user = $rowf["id_tarif"];
         $url_redirect = "index.php?a=21&b=3&idtransac=" . $transac . "&typetransac=" . $typeTransac . "&iduser="******"Encaisser un forfait pour " . $nom . " " . $prenom;
         $tariforfaits = getTarifsbyCat(5);
         $forfait_user = getAllForfaitUser($id_user, "for");
         $nbf = mysqli_num_rows($forfait_user);
         $datef = date("Y-m-d");
         $nbrforfait = 1;
         $url_redirect = "index.php?a=21&b=3&typetransac=" . $typeTransac . "&iduser="******"temps":
     $transac = $_GET["idtransac"];
     $titre = "Ajouter du temps de consultation pour " . $nom . " " . $prenom;
     if (isset($transac)) {
         $url_redirect = "index.php?a=21&b=3&idtransac=" . $transac . "&typetransac=" . $typeTransac . "&iduser="******"index.php?a=21&b=3&typetransac=" . $typeTransac . "&iduser=" . $id_user;
	&nbsp;&nbsp;&nbsp;&nbsp;<a href="index.php?a=5&b=6&iduser=<?php 
    echo $row["id_user"];
    ?>
" class="btn btn-primary btn-xs">Voir les inscriptions</a></p><?php 
}
?>
	<p>Inscription validées hors forfait : <b><?php 
echo $nbHorsForfait;
?>
</b></p>
	
	
	<?php 
/// forfait atelier utilisateur
$tariforfaits = getTarifsbyCat(5);
$rowtransaction = getAllForfaitUser($id_user, "for");
$nbf = mysqli_num_rows($rowtransaction);
if ($nbf == 0) {
    echo "<p>l'adhérent n'a souscrit à aucun forfait atelier</p>";
} else {
    ?>
	
	<div class="table"><table class="table"><thead><th>Nom du Tarif</th><th>Date d'achat</th><th>Nbr</th><th>Dépensé</th><th>Statut</th><th></th><th></th></thead>
	<?php 
    for ($f = 0; $f < $nbf; $f++) {
        $rowf = mysqli_fetch_array($rowtransaction);
        $nomTarif = getNomTarif($rowf["id_tarif"]);
        //**** le chiffre issu de la table rel
        $rowforfait = getForfaitDonnesbyID($rowf['id_transac'], $id_user);
        $achete = $rowforfait["total_atelier"];
        $depense = $rowforfait["depense"];