"._("passees"); $tab_title = _("Demandes d'avis passées"); $selection=' WHERE (consultation.avis_consultation IS NOT NULL OR consultation.date_limite < current_date) AND om_utilisateur.login=\''.$_SESSION['login'].'\''; $champAffiche = array( 'consultation.consultation as "'._("consultation").'"', 'to_char(consultation.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"', 'dossier.dossier_libelle as "'._("dossier").'"', // date de depots de piece complementaire 'TRIM(CONCAT(donnees_techniques.am_projet_desc,\' \',donnees_techniques.co_projet_desc)) as "'._("Nature des travaux").'"', 'TRIM(CONCAT(dossier.terrain_adresse_voie_numero,\' \',dossier.terrain_adresse_voie, \' \', dossier.terrain_adresse_lieu_dit, \' \', dossier.terrain_adresse_code_postal,\' \', dossier.terrain_adresse_localite)) as "'._("Adresse du terrain").'"', 'TRIM(CONCAT(personne_morale_denomination,\' \',personne_morale_nom,\' \',demandeur.particulier_nom)) as "'._("petitionaire").'"', '-- Si une valeur est saisie dans la deuxième version du tableau des surfaces -- alors on récupère seulement ses valeurs CASE WHEN su2_avt_shon1 IS NOT NULL OR su2_avt_shon2 IS NOT NULL OR su2_avt_shon3 IS NOT NULL OR su2_avt_shon4 IS NOT NULL OR su2_avt_shon5 IS NOT NULL OR su2_avt_shon6 IS NOT NULL OR su2_avt_shon7 IS NOT NULL OR su2_avt_shon8 IS NOT NULL OR su2_avt_shon9 IS NOT NULL OR su2_avt_shon10 IS NOT NULL OR su2_avt_shon11 IS NOT NULL OR su2_avt_shon12 IS NOT NULL OR su2_avt_shon13 IS NOT NULL OR su2_avt_shon14 IS NOT NULL OR su2_avt_shon15 IS NOT NULL OR su2_avt_shon16 IS NOT NULL OR su2_avt_shon17 IS NOT NULL OR su2_avt_shon18 IS NOT NULL OR su2_avt_shon19 IS NOT NULL OR su2_avt_shon20 IS NOT NULL OR su2_cstr_shon1 IS NOT NULL OR su2_cstr_shon2 IS NOT NULL OR su2_cstr_shon3 IS NOT NULL OR su2_cstr_shon4 IS NOT NULL OR su2_cstr_shon5 IS NOT NULL OR su2_cstr_shon6 IS NOT NULL OR su2_cstr_shon7 IS NOT NULL OR su2_cstr_shon8 IS NOT NULL OR su2_cstr_shon9 IS NOT NULL OR su2_cstr_shon10 IS NOT NULL OR su2_cstr_shon11 IS NOT NULL OR su2_cstr_shon12 IS NOT NULL OR su2_cstr_shon13 IS NOT NULL OR su2_cstr_shon14 IS NOT NULL OR su2_cstr_shon15 IS NOT NULL OR su2_cstr_shon16 IS NOT NULL OR su2_cstr_shon17 IS NOT NULL OR su2_cstr_shon18 IS NOT NULL OR su2_cstr_shon19 IS NOT NULL OR su2_cstr_shon20 IS NOT NULL OR su2_chge_shon1 IS NOT NULL OR su2_chge_shon2 IS NOT NULL OR su2_chge_shon3 IS NOT NULL OR su2_chge_shon4 IS NOT NULL OR su2_chge_shon5 IS NOT NULL OR su2_chge_shon6 IS NOT NULL OR su2_chge_shon7 IS NOT NULL OR su2_chge_shon8 IS NOT NULL OR su2_chge_shon9 IS NOT NULL OR su2_chge_shon10 IS NOT NULL OR su2_chge_shon11 IS NOT NULL OR su2_chge_shon12 IS NOT NULL OR su2_chge_shon13 IS NOT NULL OR su2_chge_shon14 IS NOT NULL OR su2_chge_shon15 IS NOT NULL OR su2_chge_shon16 IS NOT NULL OR su2_chge_shon17 IS NOT NULL OR su2_chge_shon18 IS NOT NULL OR su2_chge_shon19 IS NOT NULL OR su2_chge_shon20 IS NOT NULL OR su2_demo_shon1 IS NOT NULL OR su2_demo_shon2 IS NOT NULL OR su2_demo_shon3 IS NOT NULL OR su2_demo_shon4 IS NOT NULL OR su2_demo_shon5 IS NOT NULL OR su2_demo_shon6 IS NOT NULL OR su2_demo_shon7 IS NOT NULL OR su2_demo_shon8 IS NOT NULL OR su2_demo_shon9 IS NOT NULL OR su2_demo_shon10 IS NOT NULL OR su2_demo_shon11 IS NOT NULL OR su2_demo_shon12 IS NOT NULL OR su2_demo_shon13 IS NOT NULL OR su2_demo_shon14 IS NOT NULL OR su2_demo_shon15 IS NOT NULL OR su2_demo_shon16 IS NOT NULL OR su2_demo_shon17 IS NOT NULL OR su2_demo_shon18 IS NOT NULL OR su2_demo_shon19 IS NOT NULL OR su2_demo_shon20 IS NOT NULL OR su2_sup_shon1 IS NOT NULL OR su2_sup_shon2 IS NOT NULL OR su2_sup_shon3 IS NOT NULL OR su2_sup_shon4 IS NOT NULL OR su2_sup_shon5 IS NOT NULL OR su2_sup_shon6 IS NOT NULL OR su2_sup_shon7 IS NOT NULL OR su2_sup_shon8 IS NOT NULL OR su2_sup_shon9 IS NOT NULL OR su2_sup_shon10 IS NOT NULL OR su2_sup_shon11 IS NOT NULL OR su2_sup_shon12 IS NOT NULL OR su2_sup_shon13 IS NOT NULL OR su2_sup_shon14 IS NOT NULL OR su2_sup_shon15 IS NOT NULL OR su2_sup_shon16 IS NOT NULL OR su2_sup_shon17 IS NOT NULL OR su2_sup_shon18 IS NOT NULL OR su2_sup_shon19 IS NOT NULL OR su2_sup_shon20 IS NOT NULL THEN donnees_techniques.su2_tot_shon_tot ELSE donnees_techniques.su_tot_shon_tot END as "'._("surface").'"', 'service.abrege as "'._("service").'"', $case_type_consultation.' as "'._("type_consultation").'"', 'avis_consultation.libelle as "'._("avis rendu").'"', ); ?>