}
    }
    ?>
			</div>
		<div class="box-footer"><a href="index.php?a=21&b=2&act=&caisse=0&iduser=<?php 
    echo $id_user;
    ?>
"><input type="submit" value="Ajouter une transaction" class="btn btn-primary"></a></div>
		 <div class="box-footer"><a href="index.php?a=21"><button class="btn btn-default" type="submit"> <i class="fa fa-arrow-circle-left"></i> Retour à la liste des transactions</button></a></div>
		</div>
</section>
		
		
<?php 
    // ARCHIVES DES impressions
    $result = getPrintById($id_user);
    //debug(mysql_fetch_array($result));
    $credituser = getCreditPrintId($id_user);
    $nbc = mysqli_num_rows($credituser);
    if ($result != FALSE or $nbc > 0) {
        // affichage
        ?>
	<section class="col-lg-6 connectedSortable">
	<div class="box box-primary">
		<div class="nav-tabs-custom">
			<ul class="nav nav-tabs pull-right">
				<li class="active"><a href="#tab_1-1" data-toggle="tab">Debit</a></li>
				<li><a href="#tab_2-2" data-toggle="tab">Credit</a></li>
				<li class="pull-left header">Mouvements archiv&eacute;s (12 derniers mois):</li>
			</ul>
		<div class="tab-content">
                echo '<h4>Aucun cr&eacute;dit restant sur le compte</h4>';
            }
        }
    }
    ?>
			</div></div>
</section>
	
	
<section class="col-lg-6 connectedSortable">
	
	
				
<?php 
    // ARCHIVES DES IMPRESSIONS
    $result = getPrintById($_SESSION['iduser'], $month);
    $credituser = getCreditPrintId($id_user);
    if ($result != FALSE) {
        ?>
	<div class="box box-primary"><div class="box-header"><h3 class="box-title">Historique de vos impressions</h3></div>
				<div class="box-body"><table class="table"> 
				<thead><tr> 
				   <th>Date</th><th>Nbre de pages</th><th>Tarif</th><th>Prix</th>
				   </tr><tbody>
		<?php 
        while ($row = mysqli_fetch_array($result)) {
            // retrouver le tarif
            $tarif = mysqli_fetch_array(getPrixFromTarif($row['print_tarif']));
            $prix = round($row['print_debit'] * $tarif['donnee_tarif'], 2);
            $statut = $statutPrint[$row['print_statut']];
            echo "<tr><td>" . $row['print_date'] . "</td>\n\t\t\t\t  <td>" . $row['print_debit'] . "</td>\n\t\t\t\t  <td>" . $tarif['donnee_tarif'] . "</td>\n\t\t\t\t  <td>" . $prix . " &nbsp;&euro;</td>";