= '[moisdebut]' and to_char(date_depot,'MM') <= '[moisfin]' and typeavis like '[avis_decision]' order by [tri]"; $reqmo['selection']= array('PCI','PCA','PD','DP','PA','CU','AZ','DAT'); $reqmo['avis_decision']= "select distinct(typeavis), typeavis from ".DB_PREFIXE."avis_decision where typeavis <> ''"; $reqmo['tri']= array('dossier','etat','demandeur_nom','date_depot', 'date_decision', 'date_chantier', 'date_achevement', 'date_conformite'); $reqmo['annee']= array(date('Y'),date('Y')-1,date('Y')-2,date('Y')-3); $reqmo['moisdebut']= array('01','02','03','04','05','06','07','08','09','10','11','12'); $reqmo['moisfin']= array('12','11','10','09','08','07','06','05','04','03','02','01'); $reqmo['nature']="checked"; $reqmo['etat']="checked"; $reqmo['date_demande']="checked"; $reqmo['date_complet']="checked"; $reqmo['date_rejet']="checked"; $reqmo['date_notification_delai']="checked"; $reqmo['delai']="checked"; $reqmo['date_limite']="checked"; $reqmo['accord_tacite']="checked"; // pour eviter le tri en francais = erreur dans le tri //$reqmo['date_depot']="checked"; //$reqmo['date_decision']="checked"; $reqmo['date_validite']="checked"; //$reqmo['date_chantier']="checked"; //$reqmo['date_achevement']="checked"; //$reqmo['date_conformite']="checked"; $reqmo['parcelle']="checked"; $reqmo['batiment_nombre']="checked"; $reqmo['logement_nombre']="checked"; $reqmo['shon']="checked"; $reqmo['shon_calcul']="checked"; $reqmo['shob']="checked"; $reqmo['lot']="checked"; $reqmo['hauteur']="checked"; $reqmo['piece_nombre']="checked"; $reqmo['amenagement']="checked"; $reqmo['pos']="checked"; $reqmo['temp1']="checked"; ?>