Exemplo n.º 1
0
				<?php 
				}
				}
				endwhile; 
				}?>
       </select>

    </p>
  </div>
  <div class="floatleft">
    <p>
      <label>Cat&eacute;gorie</label>
      <select onchange="this.form.submit();" name="filtre_categorie" id="filtre_categorie" style="width:145px;">
        <option value="%%">Tout</option>
		<?php
		$filtre_commune_=CFunctions::remove($filtre_commune);
		$zSql  = " SELECT DISTINCT cat.* FROM cat INNER JOIN entreprise on  cat.id_cat = entreprise.categorie_ent  where id_cat <> 0 ".$filtre_groupe." AND commune_alias LIKE '" . $filtre_commune_ . "' AND secteur_cat LIKE '".$filtre_secteur."' ORDER BY nom_cat"; 
		$oRes_ = CBdd::select($zSql) ;
		while ($oCat = mysql_fetch_assoc($oRes_)): ?>
		<option value="<?php echo $oCat['id_cat'] ?>" <?php if ($filtre_categorie!='%%%') { 
																	if($filtre_categorie == $oCat['id_cat'])  echo "selected"; 
																	}?>><?php echo utf8_encode($oCat['nom_cat']) ?></option>
         <?php endwhile; ?>
       </select>	   

    </p>
  </div>  
  <div class="floatleft">
    <p>
      <label style="width:80px;">Abonnement</label>
      <select onchange="this.form.submit();" name="filtre_vignette" id="filtre_vignette" style="width:145px;">