Ajout des filtres pour la génération des pdf
This commit is contained in:
parent
9289871691
commit
c3064b2b11
@ -5,6 +5,7 @@ require_once 'common/curl.php';
|
||||
|
||||
isset($_REQUEST['q'])? $nomFic = $_REQUEST['q'] : $nomFic = '';
|
||||
isset($_REQUEST['page'])? $page = $_REQUEST['page'] : $page = '';
|
||||
isset($_REQUEST['filtre'])? $filtre = $_REQUEST['filtre'] : $filtre = '';
|
||||
|
||||
$nbAnnoncesMin = ($page-1)*100;
|
||||
$nbAnnoncesMax = $nbAnnoncesMin+100;
|
||||
@ -30,7 +31,7 @@ if($nomFic == ''){
|
||||
bzclose($bz);
|
||||
}
|
||||
|
||||
$annonces = readann($file, '');
|
||||
$annonces = readann($file, $filtre);
|
||||
|
||||
$output = '';
|
||||
$count = 0;
|
||||
|
@ -81,7 +81,7 @@ else{
|
||||
//On souhaite afficher 100 annonces par PDF
|
||||
$nbPDF = ceil($nbAnnonces/100);
|
||||
for($i=0;$i<$nbPDF;$i++){ ?>
|
||||
<a href="./html2pdf.php?q=<?=$nomFic?>&page=<?=$i+1?>"><?=$i+1?></a>
|
||||
<a href="./html2pdf.php?q=<?=$nomFic?>&page=<?=$i+1?>&filtre=<?=$filtre?>"><?=$i+1?></a>
|
||||
<?php if($i!=$nbPDF-1) print "-"; ?>
|
||||
<?php } ?>
|
||||
</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user