echo $year;
?>
)</h3></div>
	<div class="box-body">
	<table class="table"> 
		<thead><tr> 
			<th>&nbsp;</th>
			<th>Imprim&eacute;</th>
			<th >Cr&eacute;dit</th>
			<th >Noir & blanc</th>
			<th>Couleur</th></tr></thead>
		
<?php 
//retrouver l'ensemble des tarifs NB
for ($i = 1; $i <= $month; ++$i) {
    $row = getStatPages($i, $year, $epn);
    $pagesimprime = $row["pages"];
    $credit = $row["montant"];
    //boucler sur les tarifs
    $rowtarifsNB = selectPrintTarif(0);
    while ($tarifn = mysqli_fetch_array($rowtarifsNB)) {
        $mNoir = $mNoir + getStatNCbyM($i, $year, $tarifn['id_tarif'], $epn);
    }
    //retrouver l'ensemble des tarifs pour la couleur
    $rowtarifscoul = selectPrintTarif(1);
    while ($tarifc = mysqli_fetch_array($rowtarifscoul)) {
        $mcouleur = $mcouleur + getStatNCbyM($i, $year, $tarifc['id_tarif'], $epn);
    }
    //calcul des totaux
    $totalNoirBlanc = $totalNoirBlanc + $mNoir;
    $totalcouleur = $totalcouleur + $mcouleur;
Exemplo n.º 2
0
    echo $nbsessionstat;
    ?>
 <small>Sessions</small></span>
                </div><!-- /.info-box-content -->
              </div><!-- /.info-box -->
            </div><!-- /.col -->

            <!-- fix for small devices only -->
            <div class="clearfix visible-sm-block"></div>

            <div class="col-md-3 col-sm-6 col-xs-12">
              <div class="info-box">
                <span class="info-box-icon bg-green" style="padding-top:18px"><i class="ion ion-printer"></i></span>
                <div class="info-box-content">
								<?php 
    $rowstatimpression = getStatPages(date('m'), date('Y'), $_SESSION["idepn"]);
    $pages = $rowstatimpression["pages"];
    $montant = $rowstatimpression["montant"];
    ?>
                  <span class="info-box-text">Impressions</span>
                  <span class="info-box-number"><?php 
    echo $pages;
    ?>
 pages (<?php 
    echo $montant;
    ?>
 &euro;)</span>
                </div><!-- /.info-box-content -->
              </div><!-- /.info-box -->
            </div><!-- /.col -->
            <div class="col-md-3 col-sm-6 col-xs-12">