Ajout des filtres pour la génération des pdf

This commit is contained in:
Michael RICOIS 2009-07-06 14:06:01 +00:00
parent 9289871691
commit c3064b2b11
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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>