[openads-Commits] r5419 - in branches/contentieux: . app/js gen/sql/pgsql obj sql/pgsql tests

0 views
Skip to first unread message

nme...@adullact.net

unread,
Dec 9, 2016, 12:00:00 PM12/9/16
to openmairi...@googlegroups.com
Author: nmeucci
Date: 2016-12-09 17:59:52 +0100 (Fri, 09 Dec 2016)
New Revision: 5419

Modified:
branches/contentieux/
branches/contentieux/app/js/script.js
branches/contentieux/gen/sql/pgsql/action.inc.php
branches/contentieux/gen/sql/pgsql/affectation_automatique.inc.php
branches/contentieux/gen/sql/pgsql/architecte.inc.php
branches/contentieux/gen/sql/pgsql/arrondissement.inc.php
branches/contentieux/gen/sql/pgsql/autorite_competente.inc.php
branches/contentieux/gen/sql/pgsql/avis_consultation.inc.php
branches/contentieux/gen/sql/pgsql/avis_decision.inc.php
branches/contentieux/gen/sql/pgsql/bible.inc.php
branches/contentieux/gen/sql/pgsql/blocnote.inc.php
branches/contentieux/gen/sql/pgsql/cerfa.inc.php
branches/contentieux/gen/sql/pgsql/civilite.inc.php
branches/contentieux/gen/sql/pgsql/commission.inc.php
branches/contentieux/gen/sql/pgsql/commission_type.inc.php
branches/contentieux/gen/sql/pgsql/consultation.inc.php
branches/contentieux/gen/sql/pgsql/contrainte.inc.php
branches/contentieux/gen/sql/pgsql/demande.inc.php
branches/contentieux/gen/sql/pgsql/demande_nature.inc.php
branches/contentieux/gen/sql/pgsql/demande_type.inc.php
branches/contentieux/gen/sql/pgsql/demandeur.inc.php
branches/contentieux/gen/sql/pgsql/direction.inc.php
branches/contentieux/gen/sql/pgsql/division.inc.php
branches/contentieux/gen/sql/pgsql/document_numerise.inc.php
branches/contentieux/gen/sql/pgsql/document_numerise_type.inc.php
branches/contentieux/gen/sql/pgsql/document_numerise_type_categorie.inc.php
branches/contentieux/gen/sql/pgsql/donnees_techniques.inc.php
branches/contentieux/gen/sql/pgsql/dossier.inc.php
branches/contentieux/gen/sql/pgsql/dossier_autorisation.inc.php
branches/contentieux/gen/sql/pgsql/dossier_autorisation_parcelle.inc.php
branches/contentieux/gen/sql/pgsql/dossier_autorisation_type.inc.php
branches/contentieux/gen/sql/pgsql/dossier_autorisation_type_detaille.inc.php
branches/contentieux/gen/sql/pgsql/dossier_commission.inc.php
branches/contentieux/gen/sql/pgsql/dossier_contrainte.inc.php
branches/contentieux/gen/sql/pgsql/dossier_geolocalisation.inc.php
branches/contentieux/gen/sql/pgsql/dossier_instruction_type.inc.php
branches/contentieux/gen/sql/pgsql/dossier_message.inc.php
branches/contentieux/gen/sql/pgsql/dossier_parcelle.inc.php
branches/contentieux/gen/sql/pgsql/etat.inc.php
branches/contentieux/gen/sql/pgsql/etat_dossier_autorisation.inc.php
branches/contentieux/gen/sql/pgsql/evenement.inc.php
branches/contentieux/gen/sql/pgsql/genre.inc.php
branches/contentieux/gen/sql/pgsql/groupe.inc.php
branches/contentieux/gen/sql/pgsql/instructeur.inc.php
branches/contentieux/gen/sql/pgsql/instructeur_qualite.inc.php
branches/contentieux/gen/sql/pgsql/instruction.inc.php
branches/contentieux/gen/sql/pgsql/lien_demande_demandeur.inc.php
branches/contentieux/gen/sql/pgsql/lien_demande_type_etat.inc.php
branches/contentieux/gen/sql/pgsql/lien_document_numerise_type_instructeur_qualite.inc.php
branches/contentieux/gen/sql/pgsql/lien_donnees_techniques_moyen_retenu_juge.inc.php
branches/contentieux/gen/sql/pgsql/lien_donnees_techniques_moyen_souleve.inc.php
branches/contentieux/gen/sql/pgsql/lien_dossier_autorisation_demandeur.inc.php
branches/contentieux/gen/sql/pgsql/lien_dossier_demandeur.inc.php
branches/contentieux/gen/sql/pgsql/lien_dossier_dossier.inc.php
branches/contentieux/gen/sql/pgsql/lien_dossier_instruction_type_evenement.inc.php
branches/contentieux/gen/sql/pgsql/lien_lot_demandeur.inc.php
branches/contentieux/gen/sql/pgsql/lien_om_profil_groupe.inc.php
branches/contentieux/gen/sql/pgsql/lien_om_utilisateur_groupe.inc.php
branches/contentieux/gen/sql/pgsql/lien_service_om_utilisateur.inc.php
branches/contentieux/gen/sql/pgsql/lien_service_service_categorie.inc.php
branches/contentieux/gen/sql/pgsql/lot.inc.php
branches/contentieux/gen/sql/pgsql/moyen_retenu_juge.inc.php
branches/contentieux/gen/sql/pgsql/moyen_souleve.inc.php
branches/contentieux/gen/sql/pgsql/objet_recours.inc.php
branches/contentieux/gen/sql/pgsql/om_collectivite.inc.php
branches/contentieux/gen/sql/pgsql/om_dashboard.inc.php
branches/contentieux/gen/sql/pgsql/om_droit.inc.php
branches/contentieux/gen/sql/pgsql/om_etat.inc.php
branches/contentieux/gen/sql/pgsql/om_lettretype.inc.php
branches/contentieux/gen/sql/pgsql/om_logo.inc.php
branches/contentieux/gen/sql/pgsql/om_parametre.inc.php
branches/contentieux/gen/sql/pgsql/om_profil.inc.php
branches/contentieux/gen/sql/pgsql/om_requete.inc.php
branches/contentieux/gen/sql/pgsql/om_sig_extent.inc.php
branches/contentieux/gen/sql/pgsql/om_sig_flux.inc.php
branches/contentieux/gen/sql/pgsql/om_sig_map.inc.php
branches/contentieux/gen/sql/pgsql/om_sig_map_comp.inc.php
branches/contentieux/gen/sql/pgsql/om_sig_map_flux.inc.php
branches/contentieux/gen/sql/pgsql/om_sousetat.inc.php
branches/contentieux/gen/sql/pgsql/om_utilisateur.inc.php
branches/contentieux/gen/sql/pgsql/om_widget.inc.php
branches/contentieux/gen/sql/pgsql/phase.inc.php
branches/contentieux/gen/sql/pgsql/quartier.inc.php
branches/contentieux/gen/sql/pgsql/rapport_instruction.inc.php
branches/contentieux/gen/sql/pgsql/regle.inc.php
branches/contentieux/gen/sql/pgsql/service.inc.php
branches/contentieux/gen/sql/pgsql/service_categorie.inc.php
branches/contentieux/gen/sql/pgsql/signataire_arrete.inc.php
branches/contentieux/gen/sql/pgsql/taxe_amenagement.inc.php
branches/contentieux/gen/sql/pgsql/transition.inc.php
branches/contentieux/obj/dossier.class.php
branches/contentieux/sql/pgsql/dossier.form.inc.php
branches/contentieux/tests/
Log:
Merge vue DI recours & infraction


Index: branches/contentieux
===================================================================
--- branches/contentieux 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux 2016-12-09 16:59:52 UTC (rev 5419)

Property changes on: branches/contentieux
___________________________________________________________________
Modified: svn:mergeinfo
## -16,7 +16,7 ##
/branches/contentieux-wf-suivi:5236-5250
/branches/contentieux_filtre_groupe:5196-5281
/branches/contentieux_form_di_infraction:5316-5391
-/branches/contentieux_vue_recours:5319-5394
+/branches/contentieux_vue_recours:5319-5418
/branches/correction-export-sitadel:4822-4837
/branches/correction-lots:4821-5154
/branches/etat-des-lieux-nouvellles-actions:4480-5253
Modified: branches/contentieux/app/js/script.js
===================================================================
--- branches/contentieux/app/js/script.js 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/app/js/script.js 2016-12-09 16:59:52 UTC (rev 5419)
@@ -1069,6 +1069,11 @@
*/
function formatFieldReferenceCadastrale(){

+ // Vérification que le champ n'est pas masqué
+ if ($('input#terrain_references_cadastrales').attr('type') === 'hidden') {
+ return;
+ }
+
addNewFieldReferencesCadastrales();
$('#terrain_references_cadastrales').parent().parent().hide();

@@ -1854,7 +1859,7 @@
$(this).show();
}
);
- formatFieldReferenceCadastrale(1);
+ formatFieldReferenceCadastrale();
$('.field-type-text').show();
$('input[type=submit]').show();
$('.terrain_references_cadastrales_custom').hide();

Modified: branches/contentieux/gen/sql/pgsql/action.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/action.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/action.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}

Modified: branches/contentieux/gen/sql/pgsql/affectation_automatique.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/affectation_automatique.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/affectation_automatique.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}
@@ -85,10 +100,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["arrondissement"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (affectation_automatique.arrondissement = '".$idx."') ";
+ $selection = " WHERE (affectation_automatique.arrondissement = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (affectation_automatique.om_collectivite = '".$_SESSION["collectivite"]."') AND (affectation_automatique.arrondissement = '".$idx."') ";
+ $selection = " WHERE (affectation_automatique.om_collectivite = '".$_SESSION["collectivite"]."') AND (affectation_automatique.arrondissement = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - dossier_autorisation_type_detaille
@@ -95,10 +110,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["dossier_autorisation_type_detaille"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (affectation_automatique.dossier_autorisation_type_detaille = '".$idx."') ";
+ $selection = " WHERE (affectation_automatique.dossier_autorisation_type_detaille = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (affectation_automatique.om_collectivite = '".$_SESSION["collectivite"]."') AND (affectation_automatique.dossier_autorisation_type_detaille = '".$idx."') ";
+ $selection = " WHERE (affectation_automatique.om_collectivite = '".$_SESSION["collectivite"]."') AND (affectation_automatique.dossier_autorisation_type_detaille = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - instructeur
@@ -105,10 +120,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["instructeur"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (affectation_automatique.instructeur = '".$idx."') ";
+ $selection = " WHERE (affectation_automatique.instructeur = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (affectation_automatique.om_collectivite = '".$_SESSION["collectivite"]."') AND (affectation_automatique.instructeur = '".$idx."') ";
+ $selection = " WHERE (affectation_automatique.om_collectivite = '".$_SESSION["collectivite"]."') AND (affectation_automatique.instructeur = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - om_collectivite
@@ -115,10 +130,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (affectation_automatique.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (affectation_automatique.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (affectation_automatique.om_collectivite = '".$_SESSION["collectivite"]."') AND (affectation_automatique.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (affectation_automatique.om_collectivite = '".$_SESSION["collectivite"]."') AND (affectation_automatique.om_collectivite = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - quartier
@@ -125,10 +140,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["quartier"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (affectation_automatique.quartier = '".$idx."') ";
+ $selection = " WHERE (affectation_automatique.quartier = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (affectation_automatique.om_collectivite = '".$_SESSION["collectivite"]."') AND (affectation_automatique.quartier = '".$idx."') ";
+ $selection = " WHERE (affectation_automatique.om_collectivite = '".$_SESSION["collectivite"]."') AND (affectation_automatique.quartier = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/architecte.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/architecte.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/architecte.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}

Modified: branches/contentieux/gen/sql/pgsql/arrondissement.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/arrondissement.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/arrondissement.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}

Modified: branches/contentieux/gen/sql/pgsql/autorite_competente.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/autorite_competente.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/autorite_competente.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}

Modified: branches/contentieux/gen/sql/pgsql/avis_consultation.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/avis_consultation.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/avis_consultation.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}

Modified: branches/contentieux/gen/sql/pgsql/avis_decision.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/avis_decision.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/avis_decision.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}

Modified: branches/contentieux/gen/sql/pgsql/bible.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/bible.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/bible.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}
@@ -80,10 +95,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["dossier_autorisation_type"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (bible.dossier_autorisation_type = '".$idx."') ";
+ $selection = " WHERE (bible.dossier_autorisation_type = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (bible.om_collectivite = '".$_SESSION["collectivite"]."') AND (bible.dossier_autorisation_type = '".$idx."') ";
+ $selection = " WHERE (bible.om_collectivite = '".$_SESSION["collectivite"]."') AND (bible.dossier_autorisation_type = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - evenement
@@ -90,10 +105,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["evenement"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (bible.evenement = '".$idx."') ";
+ $selection = " WHERE (bible.evenement = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (bible.om_collectivite = '".$_SESSION["collectivite"]."') AND (bible.evenement = '".$idx."') ";
+ $selection = " WHERE (bible.om_collectivite = '".$_SESSION["collectivite"]."') AND (bible.evenement = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - om_collectivite
@@ -100,10 +115,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (bible.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (bible.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (bible.om_collectivite = '".$_SESSION["collectivite"]."') AND (bible.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (bible.om_collectivite = '".$_SESSION["collectivite"]."') AND (bible.om_collectivite = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/blocnote.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/blocnote.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/blocnote.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}
@@ -51,7 +66,7 @@
);
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (blocnote.dossier = '".$idx."') ";
+ $selection = " WHERE (blocnote.dossier = '".$f->db->escapeSimple($idxformulaire)."') ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/cerfa.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/cerfa.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/cerfa.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}

Modified: branches/contentieux/gen/sql/pgsql/civilite.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/civilite.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/civilite.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}

Modified: branches/contentieux/gen/sql/pgsql/commission.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/commission.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/commission.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}
@@ -69,7 +84,7 @@
);
// Filtre listing sous formulaire - commission_type
if (in_array($retourformulaire, $foreign_keys_extended["commission_type"])) {
- $selection = " WHERE (commission.commission_type = '".$idx."') ";
+ $selection = " WHERE (commission.commission_type = ".intval($idxformulaire).") ";
}

/**

Modified: branches/contentieux/gen/sql/pgsql/commission_type.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/commission_type.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/commission_type.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}

Modified: branches/contentieux/gen/sql/pgsql/consultation.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/consultation.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/consultation.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}
@@ -72,15 +87,15 @@
);
// Filtre listing sous formulaire - avis_consultation
if (in_array($retourformulaire, $foreign_keys_extended["avis_consultation"])) {
- $selection = " WHERE (consultation.avis_consultation = '".$idx."') ";
+ $selection = " WHERE (consultation.avis_consultation = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (consultation.dossier = '".$idx."') ";
+ $selection = " WHERE (consultation.dossier = '".$f->db->escapeSimple($idxformulaire)."') ";
}
// Filtre listing sous formulaire - service
if (in_array($retourformulaire, $foreign_keys_extended["service"])) {
- $selection = " WHERE (consultation.service = '".$idx."') ";
+ $selection = " WHERE (consultation.service = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/contrainte.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/contrainte.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/contrainte.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "-> ".$idx." ";
}
@@ -83,10 +98,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (contrainte.om_collectivite = '".$idx."') AND ((contrainte.om_validite_debut IS NULL AND (contrainte.om_validite_fin IS NULL OR contrainte.om_validite_fin > CURRENT_DATE)) OR (contrainte.om_validite_debut <= CURRENT_DATE AND (contrainte.om_validite_fin IS NULL OR contrainte.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (contrainte.om_collectivite = ".intval($idxformulaire).") AND ((contrainte.om_validite_debut IS NULL AND (contrainte.om_validite_fin IS NULL OR contrainte.om_validite_fin > CURRENT_DATE)) OR (contrainte.om_validite_debut <= CURRENT_DATE AND (contrainte.om_validite_fin IS NULL OR contrainte.om_validite_fin > CURRENT_DATE)))";
} else {
// Filtre MONO
- $selection = " WHERE (contrainte.om_collectivite = '".$_SESSION["collectivite"]."') AND (contrainte.om_collectivite = '".$idx."') AND ((contrainte.om_validite_debut IS NULL AND (contrainte.om_validite_fin IS NULL OR contrainte.om_validite_fin > CURRENT_DATE)) OR (contrainte.om_validite_debut <= CURRENT_DATE AND (contrainte.om_validite_fin IS NULL OR contrainte.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (contrainte.om_collectivite = '".$_SESSION["collectivite"]."') AND (contrainte.om_collectivite = ".intval($idxformulaire).") AND ((contrainte.om_validite_debut IS NULL AND (contrainte.om_validite_fin IS NULL OR contrainte.om_validite_fin > CURRENT_DATE)) OR (contrainte.om_validite_debut <= CURRENT_DATE AND (contrainte.om_validite_fin IS NULL OR contrainte.om_validite_fin > CURRENT_DATE)))";
}
$where_om_validite = " AND ((contrainte.om_validite_debut IS NULL AND (contrainte.om_validite_fin IS NULL OR contrainte.om_validite_fin > CURRENT_DATE)) OR (contrainte.om_validite_debut <= CURRENT_DATE AND (contrainte.om_validite_fin IS NULL OR contrainte.om_validite_fin > CURRENT_DATE)))";
}

Modified: branches/contentieux/gen/sql/pgsql/demande.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/demande.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/demande.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -115,10 +130,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["arrondissement"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (demande.arrondissement = '".$idx."') ";
+ $selection = " WHERE (demande.arrondissement = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (demande.om_collectivite = '".$_SESSION["collectivite"]."') AND (demande.arrondissement = '".$idx."') ";
+ $selection = " WHERE (demande.om_collectivite = '".$_SESSION["collectivite"]."') AND (demande.arrondissement = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - dossier
@@ -135,10 +150,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["demande_type"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (demande.demande_type = '".$idx."') ";
+ $selection = " WHERE (demande.demande_type = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (demande.om_collectivite = '".$_SESSION["collectivite"]."') AND (demande.demande_type = '".$idx."') ";
+ $selection = " WHERE (demande.om_collectivite = '".$_SESSION["collectivite"]."') AND (demande.demande_type = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - dossier_autorisation
@@ -145,10 +160,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["dossier_autorisation"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (demande.dossier_autorisation = '".$idx."') ";
+ $selection = " WHERE (demande.dossier_autorisation = '".$f->db->escapeSimple($idxformulaire)."') ";
} else {
// Filtre MONO
- $selection = " WHERE (demande.om_collectivite = '".$_SESSION["collectivite"]."') AND (demande.dossier_autorisation = '".$idx."') ";
+ $selection = " WHERE (demande.om_collectivite = '".$_SESSION["collectivite"]."') AND (demande.dossier_autorisation = '".$f->db->escapeSimple($idxformulaire)."') ";
}
}
// Filtre listing sous formulaire - dossier_autorisation_type_detaille
@@ -155,10 +170,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["dossier_autorisation_type_detaille"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (demande.dossier_autorisation_type_detaille = '".$idx."') ";
+ $selection = " WHERE (demande.dossier_autorisation_type_detaille = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (demande.om_collectivite = '".$_SESSION["collectivite"]."') AND (demande.dossier_autorisation_type_detaille = '".$idx."') ";
+ $selection = " WHERE (demande.om_collectivite = '".$_SESSION["collectivite"]."') AND (demande.dossier_autorisation_type_detaille = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - instruction
@@ -165,10 +180,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["instruction"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (demande.instruction_recepisse = '".$idx."') ";
+ $selection = " WHERE (demande.instruction_recepisse = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (demande.om_collectivite = '".$_SESSION["collectivite"]."') AND (demande.instruction_recepisse = '".$idx."') ";
+ $selection = " WHERE (demande.om_collectivite = '".$_SESSION["collectivite"]."') AND (demande.instruction_recepisse = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - om_collectivite
@@ -175,10 +190,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (demande.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (demande.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (demande.om_collectivite = '".$_SESSION["collectivite"]."') AND (demande.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (demande.om_collectivite = '".$_SESSION["collectivite"]."') AND (demande.om_collectivite = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/demande_nature.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/demande_nature.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/demande_nature.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/demande_type.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/demande_type.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/demande_type.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -77,23 +92,23 @@
);
// Filtre listing sous formulaire - demande_nature
if (in_array($retourformulaire, $foreign_keys_extended["demande_nature"])) {
- $selection = " WHERE (demande_type.demande_nature = '".$idx."') ";
+ $selection = " WHERE (demande_type.demande_nature = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - dossier_autorisation_type_detaille
if (in_array($retourformulaire, $foreign_keys_extended["dossier_autorisation_type_detaille"])) {
- $selection = " WHERE (demande_type.dossier_autorisation_type_detaille = '".$idx."') ";
+ $selection = " WHERE (demande_type.dossier_autorisation_type_detaille = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - dossier_instruction_type
if (in_array($retourformulaire, $foreign_keys_extended["dossier_instruction_type"])) {
- $selection = " WHERE (demande_type.dossier_instruction_type = '".$idx."') ";
+ $selection = " WHERE (demande_type.dossier_instruction_type = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - evenement
if (in_array($retourformulaire, $foreign_keys_extended["evenement"])) {
- $selection = " WHERE (demande_type.evenement = '".$idx."') ";
+ $selection = " WHERE (demande_type.evenement = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - groupe
if (in_array($retourformulaire, $foreign_keys_extended["groupe"])) {
- $selection = " WHERE (demande_type.groupe = '".$idx."') ";
+ $selection = " WHERE (demande_type.groupe = ".intval($idxformulaire).") ";
}

/**

Modified: branches/contentieux/gen/sql/pgsql/demandeur.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/demandeur.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/demandeur.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -129,10 +144,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (demandeur.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (demandeur.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (demandeur.om_collectivite = '".$_SESSION["collectivite"]."') AND (demandeur.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (demandeur.om_collectivite = '".$_SESSION["collectivite"]."') AND (demandeur.om_collectivite = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - civilite
@@ -139,10 +154,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["civilite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (demandeur.particulier_civilite = '".$idx."' OR demandeur.personne_morale_civilite = '".$idx."') ";
+ $selection = " WHERE (demandeur.particulier_civilite = ".intval($idxformulaire)." OR demandeur.personne_morale_civilite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (demandeur.om_collectivite = '".$_SESSION["collectivite"]."') AND (demandeur.particulier_civilite = '".$idx."' OR demandeur.personne_morale_civilite = '".$idx."') ";
+ $selection = " WHERE (demandeur.om_collectivite = '".$_SESSION["collectivite"]."') AND (demandeur.particulier_civilite = ".intval($idxformulaire)." OR demandeur.personne_morale_civilite = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/direction.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/direction.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/direction.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -75,10 +90,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (direction.om_collectivite = '".$idx."') AND ((direction.om_validite_debut IS NULL AND (direction.om_validite_fin IS NULL OR direction.om_validite_fin > CURRENT_DATE)) OR (direction.om_validite_debut <= CURRENT_DATE AND (direction.om_validite_fin IS NULL OR direction.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (direction.om_collectivite = ".intval($idxformulaire).") AND ((direction.om_validite_debut IS NULL AND (direction.om_validite_fin IS NULL OR direction.om_validite_fin > CURRENT_DATE)) OR (direction.om_validite_debut <= CURRENT_DATE AND (direction.om_validite_fin IS NULL OR direction.om_validite_fin > CURRENT_DATE)))";
} else {
// Filtre MONO
- $selection = " WHERE (direction.om_collectivite = '".$_SESSION["collectivite"]."') AND (direction.om_collectivite = '".$idx."') AND ((direction.om_validite_debut IS NULL AND (direction.om_validite_fin IS NULL OR direction.om_validite_fin > CURRENT_DATE)) OR (direction.om_validite_debut <= CURRENT_DATE AND (direction.om_validite_fin IS NULL OR direction.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (direction.om_collectivite = '".$_SESSION["collectivite"]."') AND (direction.om_collectivite = ".intval($idxformulaire).") AND ((direction.om_validite_debut IS NULL AND (direction.om_validite_fin IS NULL OR direction.om_validite_fin > CURRENT_DATE)) OR (direction.om_validite_debut <= CURRENT_DATE AND (direction.om_validite_fin IS NULL OR direction.om_validite_fin > CURRENT_DATE)))";
}
$where_om_validite = " AND ((direction.om_validite_debut IS NULL AND (direction.om_validite_fin IS NULL OR direction.om_validite_fin > CURRENT_DATE)) OR (direction.om_validite_debut <= CURRENT_DATE AND (direction.om_validite_fin IS NULL OR direction.om_validite_fin > CURRENT_DATE)))";
}

Modified: branches/contentieux/gen/sql/pgsql/division.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/division.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/division.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -59,7 +74,7 @@
);
// Filtre listing sous formulaire - direction
if (in_array($retourformulaire, $foreign_keys_extended["direction"])) {
- $selection = " WHERE (division.direction = '".$idx."') AND ((division.om_validite_debut IS NULL AND (division.om_validite_fin IS NULL OR division.om_validite_fin > CURRENT_DATE)) OR (division.om_validite_debut <= CURRENT_DATE AND (division.om_validite_fin IS NULL OR division.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (division.direction = ".intval($idxformulaire).") AND ((division.om_validite_debut IS NULL AND (division.om_validite_fin IS NULL OR division.om_validite_fin > CURRENT_DATE)) OR (division.om_validite_debut <= CURRENT_DATE AND (division.om_validite_fin IS NULL OR division.om_validite_fin > CURRENT_DATE)))";
$where_om_validite = " AND ((division.om_validite_debut IS NULL AND (division.om_validite_fin IS NULL OR division.om_validite_fin > CURRENT_DATE)) OR (division.om_validite_debut <= CURRENT_DATE AND (division.om_validite_fin IS NULL OR division.om_validite_fin > CURRENT_DATE)))";
}
// Gestion OMValidité - Suppression du filtre si paramètre

Modified: branches/contentieux/gen/sql/pgsql/document_numerise.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/document_numerise.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/document_numerise.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -58,11 +73,11 @@
);
// Filtre listing sous formulaire - document_numerise_type
if (in_array($retourformulaire, $foreign_keys_extended["document_numerise_type"])) {
- $selection = " WHERE (document_numerise.document_numerise_type = '".$idx."') ";
+ $selection = " WHERE (document_numerise.document_numerise_type = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (document_numerise.dossier = '".$idx."') ";
+ $selection = " WHERE (document_numerise.dossier = '".$f->db->escapeSimple($idxformulaire)."') ";
}

/**

Modified: branches/contentieux/gen/sql/pgsql/document_numerise_type.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/document_numerise_type.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/document_numerise_type.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -55,7 +70,7 @@
);
// Filtre listing sous formulaire - document_numerise_type_categorie
if (in_array($retourformulaire, $foreign_keys_extended["document_numerise_type_categorie"])) {
- $selection = " WHERE (document_numerise_type.document_numerise_type_categorie = '".$idx."') ";
+ $selection = " WHERE (document_numerise_type.document_numerise_type_categorie = ".intval($idxformulaire).") ";
}

/**

Modified: branches/contentieux/gen/sql/pgsql/document_numerise_type_categorie.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/document_numerise_type_categorie.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/document_numerise_type_categorie.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/donnees_techniques.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/donnees_techniques.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/donnees_techniques.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -1186,23 +1201,23 @@
);
// Filtre listing sous formulaire - architecte
if (in_array($retourformulaire, $foreign_keys_extended["architecte"])) {
- $selection = " WHERE (donnees_techniques.architecte = '".$idx."') ";
+ $selection = " WHERE (donnees_techniques.architecte = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - objet_recours
if (in_array($retourformulaire, $foreign_keys_extended["objet_recours"])) {
- $selection = " WHERE (donnees_techniques.ctx_objet_recours = '".$idx."') ";
+ $selection = " WHERE (donnees_techniques.ctx_objet_recours = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - dossier_autorisation
if (in_array($retourformulaire, $foreign_keys_extended["dossier_autorisation"])) {
- $selection = " WHERE (donnees_techniques.dossier_autorisation = '".$idx."') ";
+ $selection = " WHERE (donnees_techniques.dossier_autorisation = '".$f->db->escapeSimple($idxformulaire)."') ";
}
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (donnees_techniques.dossier_instruction = '".$idx."') ";
+ $selection = " WHERE (donnees_techniques.dossier_instruction = '".$f->db->escapeSimple($idxformulaire)."') ";
}
// Filtre listing sous formulaire - lot
if (in_array($retourformulaire, $foreign_keys_extended["lot"])) {
- $selection = " WHERE (donnees_techniques.lot = '".$idx."') ";
+ $selection = " WHERE (donnees_techniques.lot = ".intval($idxformulaire).") ";
}

/**

Modified: branches/contentieux/gen/sql/pgsql/dossier.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/dossier.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/dossier.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -199,10 +214,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier.autorisation_contestee = '".$idx."') ";
+ $selection = " WHERE (dossier.autorisation_contestee = '".$f->db->escapeSimple($idxformulaire)."') ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.autorisation_contestee = '".$idx."') ";
+ $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.autorisation_contestee = '".$f->db->escapeSimple($idxformulaire)."') ";
}
}
// Filtre listing sous formulaire - autorite_competente
@@ -209,10 +224,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["autorite_competente"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier.autorite_competente = '".$idx."') ";
+ $selection = " WHERE (dossier.autorite_competente = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.autorite_competente = '".$idx."') ";
+ $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.autorite_competente = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - avis_decision
@@ -219,10 +234,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["avis_decision"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier.avis_decision = '".$idx."') ";
+ $selection = " WHERE (dossier.avis_decision = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.avis_decision = '".$idx."') ";
+ $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.avis_decision = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - division
@@ -229,10 +244,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["division"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier.division = '".$idx."') ";
+ $selection = " WHERE (dossier.division = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.division = '".$idx."') ";
+ $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.division = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - dossier_autorisation
@@ -239,10 +254,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["dossier_autorisation"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier.dossier_autorisation = '".$idx."') ";
+ $selection = " WHERE (dossier.dossier_autorisation = '".$f->db->escapeSimple($idxformulaire)."') ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.dossier_autorisation = '".$idx."') ";
+ $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.dossier_autorisation = '".$f->db->escapeSimple($idxformulaire)."') ";
}
}
// Filtre listing sous formulaire - dossier_instruction_type
@@ -249,10 +264,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["dossier_instruction_type"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier.dossier_instruction_type = '".$idx."') ";
+ $selection = " WHERE (dossier.dossier_instruction_type = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.dossier_instruction_type = '".$idx."') ";
+ $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.dossier_instruction_type = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - etat
@@ -259,10 +274,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["etat"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier.etat = '".$idx."' OR dossier.etat_pendant_incompletude = '".$idx."') ";
+ $selection = " WHERE (dossier.etat = '".$f->db->escapeSimple($idxformulaire)."' OR dossier.etat_pendant_incompletude = '".$f->db->escapeSimple($idxformulaire)."') ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.etat = '".$idx."' OR dossier.etat_pendant_incompletude = '".$idx."') ";
+ $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.etat = '".$f->db->escapeSimple($idxformulaire)."' OR dossier.etat_pendant_incompletude = '".$f->db->escapeSimple($idxformulaire)."') ";
}
}
// Filtre listing sous formulaire - evenement
@@ -269,10 +284,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["evenement"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier.evenement_suivant_tacite = '".$idx."' OR dossier.evenement_suivant_tacite_incompletude = '".$idx."') ";
+ $selection = " WHERE (dossier.evenement_suivant_tacite = ".intval($idxformulaire)." OR dossier.evenement_suivant_tacite_incompletude = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.evenement_suivant_tacite = '".$idx."' OR dossier.evenement_suivant_tacite_incompletude = '".$idx."') ";
+ $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.evenement_suivant_tacite = ".intval($idxformulaire)." OR dossier.evenement_suivant_tacite_incompletude = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - instructeur
@@ -279,10 +294,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["instructeur"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier.instructeur = '".$idx."' OR dossier.instructeur_2 = '".$idx."') ";
+ $selection = " WHERE (dossier.instructeur = ".intval($idxformulaire)." OR dossier.instructeur_2 = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.instructeur = '".$idx."' OR dossier.instructeur_2 = '".$idx."') ";
+ $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.instructeur = ".intval($idxformulaire)." OR dossier.instructeur_2 = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - om_collectivite
@@ -289,10 +304,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (dossier.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.om_collectivite = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - quartier
@@ -299,10 +314,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["quartier"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier.quartier = '".$idx."') ";
+ $selection = " WHERE (dossier.quartier = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.quartier = '".$idx."') ";
+ $selection = " WHERE (dossier.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier.quartier = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/dossier_autorisation.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/dossier_autorisation.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/dossier_autorisation.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -126,10 +141,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["arrondissement"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier_autorisation.arrondissement = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation.arrondissement = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier_autorisation.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier_autorisation.arrondissement = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier_autorisation.arrondissement = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - avis_decision
@@ -136,10 +151,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["avis_decision"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier_autorisation.avis_decision = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation.avis_decision = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier_autorisation.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier_autorisation.avis_decision = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier_autorisation.avis_decision = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - dossier_autorisation_type_detaille
@@ -146,10 +161,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["dossier_autorisation_type_detaille"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier_autorisation.dossier_autorisation_type_detaille = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation.dossier_autorisation_type_detaille = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier_autorisation.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier_autorisation.dossier_autorisation_type_detaille = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier_autorisation.dossier_autorisation_type_detaille = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - etat_dossier_autorisation
@@ -156,10 +171,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["etat_dossier_autorisation"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier_autorisation.etat_dernier_dossier_instruction_accepte = '".$idx."' OR dossier_autorisation.etat_dossier_autorisation = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation.etat_dernier_dossier_instruction_accepte = ".intval($idxformulaire)." OR dossier_autorisation.etat_dossier_autorisation = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier_autorisation.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier_autorisation.etat_dernier_dossier_instruction_accepte = '".$idx."' OR dossier_autorisation.etat_dossier_autorisation = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier_autorisation.etat_dernier_dossier_instruction_accepte = ".intval($idxformulaire)." OR dossier_autorisation.etat_dossier_autorisation = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - om_collectivite
@@ -166,10 +181,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (dossier_autorisation.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (dossier_autorisation.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier_autorisation.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation.om_collectivite = '".$_SESSION["collectivite"]."') AND (dossier_autorisation.om_collectivite = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/dossier_autorisation_parcelle.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/dossier_autorisation_parcelle.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/dossier_autorisation_parcelle.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -52,7 +67,7 @@
);
// Filtre listing sous formulaire - dossier_autorisation
if (in_array($retourformulaire, $foreign_keys_extended["dossier_autorisation"])) {
- $selection = " WHERE (dossier_autorisation_parcelle.dossier_autorisation = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation_parcelle.dossier_autorisation = '".$f->db->escapeSimple($idxformulaire)."') ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/dossier_autorisation_type.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/dossier_autorisation_type.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/dossier_autorisation_type.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -56,7 +71,7 @@
);
// Filtre listing sous formulaire - groupe
if (in_array($retourformulaire, $foreign_keys_extended["groupe"])) {
- $selection = " WHERE (dossier_autorisation_type.groupe = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation_type.groupe = ".intval($idxformulaire).") ";
}

/**

Modified: branches/contentieux/gen/sql/pgsql/dossier_autorisation_type_detaille.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/dossier_autorisation_type_detaille.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/dossier_autorisation_type_detaille.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -64,11 +79,11 @@
);
// Filtre listing sous formulaire - cerfa
if (in_array($retourformulaire, $foreign_keys_extended["cerfa"])) {
- $selection = " WHERE (dossier_autorisation_type_detaille.cerfa = '".$idx."' OR dossier_autorisation_type_detaille.cerfa_lot = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation_type_detaille.cerfa = ".intval($idxformulaire)." OR dossier_autorisation_type_detaille.cerfa_lot = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - dossier_autorisation_type
if (in_array($retourformulaire, $foreign_keys_extended["dossier_autorisation_type"])) {
- $selection = " WHERE (dossier_autorisation_type_detaille.dossier_autorisation_type = '".$idx."') ";
+ $selection = " WHERE (dossier_autorisation_type_detaille.dossier_autorisation_type = ".intval($idxformulaire).") ";
}

/**

Modified: branches/contentieux/gen/sql/pgsql/dossier_commission.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/dossier_commission.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/dossier_commission.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -62,15 +77,15 @@
);
// Filtre listing sous formulaire - commission
if (in_array($retourformulaire, $foreign_keys_extended["commission"])) {
- $selection = " WHERE (dossier_commission.commission = '".$idx."') ";
+ $selection = " WHERE (dossier_commission.commission = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - commission_type
if (in_array($retourformulaire, $foreign_keys_extended["commission_type"])) {
- $selection = " WHERE (dossier_commission.commission_type = '".$idx."') ";
+ $selection = " WHERE (dossier_commission.commission_type = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (dossier_commission.dossier = '".$idx."') ";
+ $selection = " WHERE (dossier_commission.dossier = '".$f->db->escapeSimple($idxformulaire)."') ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/dossier_contrainte.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/dossier_contrainte.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/dossier_contrainte.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -55,11 +70,11 @@
);
// Filtre listing sous formulaire - contrainte
if (in_array($retourformulaire, $foreign_keys_extended["contrainte"])) {
- $selection = " WHERE (dossier_contrainte.contrainte = '".$idx."') ";
+ $selection = " WHERE (dossier_contrainte.contrainte = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (dossier_contrainte.dossier = '".$idx."') ";
+ $selection = " WHERE (dossier_contrainte.dossier = '".$f->db->escapeSimple($idxformulaire)."') ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/dossier_geolocalisation.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/dossier_geolocalisation.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/dossier_geolocalisation.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -64,7 +79,7 @@
);
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (dossier_geolocalisation.dossier = '".$idx."') ";
+ $selection = " WHERE (dossier_geolocalisation.dossier = '".$f->db->escapeSimple($idxformulaire)."') ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/dossier_instruction_type.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/dossier_instruction_type.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/dossier_instruction_type.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -56,7 +71,7 @@
);
// Filtre listing sous formulaire - dossier_autorisation_type_detaille
if (in_array($retourformulaire, $foreign_keys_extended["dossier_autorisation_type_detaille"])) {
- $selection = " WHERE (dossier_instruction_type.dossier_autorisation_type_detaille = '".$idx."') ";
+ $selection = " WHERE (dossier_instruction_type.dossier_autorisation_type_detaille = ".intval($idxformulaire).") ";
}

/**

Modified: branches/contentieux/gen/sql/pgsql/dossier_message.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/dossier_message.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/dossier_message.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -57,7 +72,7 @@
);
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (dossier_message.dossier = '".$idx."') ";
+ $selection = " WHERE (dossier_message.dossier = '".$f->db->escapeSimple($idxformulaire)."') ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/dossier_parcelle.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/dossier_parcelle.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/dossier_parcelle.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -52,7 +67,7 @@
);
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (dossier_parcelle.dossier = '".$idx."') ";
+ $selection = " WHERE (dossier_parcelle.dossier = '".$f->db->escapeSimple($idxformulaire)."') ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/etat.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/etat.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/etat.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/etat_dossier_autorisation.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/etat_dossier_autorisation.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/etat_dossier_autorisation.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/evenement.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/evenement.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/evenement.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -99,27 +114,27 @@
);
// Filtre listing sous formulaire - action
if (in_array($retourformulaire, $foreign_keys_extended["action"])) {
- $selection = " WHERE (evenement.action = '".$idx."') ";
+ $selection = " WHERE (evenement.action = '".$f->db->escapeSimple($idxformulaire)."') ";
}
// Filtre listing sous formulaire - autorite_competente
if (in_array($retourformulaire, $foreign_keys_extended["autorite_competente"])) {
- $selection = " WHERE (evenement.autorite_competente = '".$idx."') ";
+ $selection = " WHERE (evenement.autorite_competente = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - avis_decision
if (in_array($retourformulaire, $foreign_keys_extended["avis_decision"])) {
- $selection = " WHERE (evenement.avis_decision = '".$idx."') ";
+ $selection = " WHERE (evenement.avis_decision = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - etat
if (in_array($retourformulaire, $foreign_keys_extended["etat"])) {
- $selection = " WHERE (evenement.etat = '".$idx."') ";
+ $selection = " WHERE (evenement.etat = '".$f->db->escapeSimple($idxformulaire)."') ";
}
// Filtre listing sous formulaire - evenement
if (in_array($retourformulaire, $foreign_keys_extended["evenement"])) {
- $selection = " WHERE (evenement.evenement_retour_ar = '".$idx."' OR evenement.evenement_retour_signature = '".$idx."' OR evenement.evenement_suivant_tacite = '".$idx."') ";
+ $selection = " WHERE (evenement.evenement_retour_ar = ".intval($idxformulaire)." OR evenement.evenement_retour_signature = ".intval($idxformulaire)." OR evenement.evenement_suivant_tacite = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - phase
if (in_array($retourformulaire, $foreign_keys_extended["phase"])) {
- $selection = " WHERE (evenement.phase = '".$idx."') ";
+ $selection = " WHERE (evenement.phase = ".intval($idxformulaire).") ";
}

/**

Modified: branches/contentieux/gen/sql/pgsql/genre.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/genre.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/genre.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/groupe.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/groupe.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/groupe.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -53,7 +68,7 @@
);
// Filtre listing sous formulaire - genre
if (in_array($retourformulaire, $foreign_keys_extended["genre"])) {
- $selection = " WHERE (groupe.genre = '".$idx."') ";
+ $selection = " WHERE (groupe.genre = ".intval($idxformulaire).") ";
}

/**

Modified: branches/contentieux/gen/sql/pgsql/instructeur.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/instructeur.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/instructeur.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -66,17 +81,17 @@
);
// Filtre listing sous formulaire - division
if (in_array($retourformulaire, $foreign_keys_extended["division"])) {
- $selection = " WHERE (instructeur.division = '".$idx."') AND ((instructeur.om_validite_debut IS NULL AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)) OR (instructeur.om_validite_debut <= CURRENT_DATE AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (instructeur.division = ".intval($idxformulaire).") AND ((instructeur.om_validite_debut IS NULL AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)) OR (instructeur.om_validite_debut <= CURRENT_DATE AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)))";
$where_om_validite = " AND ((instructeur.om_validite_debut IS NULL AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)) OR (instructeur.om_validite_debut <= CURRENT_DATE AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)))";
}
// Filtre listing sous formulaire - instructeur_qualite
if (in_array($retourformulaire, $foreign_keys_extended["instructeur_qualite"])) {
- $selection = " WHERE (instructeur.instructeur_qualite = '".$idx."') AND ((instructeur.om_validite_debut IS NULL AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)) OR (instructeur.om_validite_debut <= CURRENT_DATE AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (instructeur.instructeur_qualite = ".intval($idxformulaire).") AND ((instructeur.om_validite_debut IS NULL AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)) OR (instructeur.om_validite_debut <= CURRENT_DATE AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)))";
$where_om_validite = " AND ((instructeur.om_validite_debut IS NULL AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)) OR (instructeur.om_validite_debut <= CURRENT_DATE AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)))";
}
// Filtre listing sous formulaire - om_utilisateur
if (in_array($retourformulaire, $foreign_keys_extended["om_utilisateur"])) {
- $selection = " WHERE (instructeur.om_utilisateur = '".$idx."') AND ((instructeur.om_validite_debut IS NULL AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)) OR (instructeur.om_validite_debut <= CURRENT_DATE AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (instructeur.om_utilisateur = ".intval($idxformulaire).") AND ((instructeur.om_validite_debut IS NULL AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)) OR (instructeur.om_validite_debut <= CURRENT_DATE AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)))";
$where_om_validite = " AND ((instructeur.om_validite_debut IS NULL AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)) OR (instructeur.om_validite_debut <= CURRENT_DATE AND (instructeur.om_validite_fin IS NULL OR instructeur.om_validite_fin > CURRENT_DATE)))";
}
// Gestion OMValidité - Suppression du filtre si paramètre

Modified: branches/contentieux/gen/sql/pgsql/instructeur_qualite.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/instructeur_qualite.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/instructeur_qualite.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/instruction.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/instruction.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/instruction.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -174,35 +189,35 @@
);
// Filtre listing sous formulaire - action
if (in_array($retourformulaire, $foreign_keys_extended["action"])) {
- $selection = " WHERE (instruction.action = '".$idx."') ";
+ $selection = " WHERE (instruction.action = '".$f->db->escapeSimple($idxformulaire)."') ";
}
// Filtre listing sous formulaire - etat
if (in_array($retourformulaire, $foreign_keys_extended["etat"])) {
- $selection = " WHERE (instruction.archive_etat_pendant_incompletude = '".$idx."' OR instruction.etat = '".$idx."') ";
+ $selection = " WHERE (instruction.archive_etat_pendant_incompletude = '".$f->db->escapeSimple($idxformulaire)."' OR instruction.etat = '".$f->db->escapeSimple($idxformulaire)."') ";
}
// Filtre listing sous formulaire - evenement
if (in_array($retourformulaire, $foreign_keys_extended["evenement"])) {
- $selection = " WHERE (instruction.archive_evenement_suivant_tacite = '".$idx."' OR instruction.archive_evenement_suivant_tacite_incompletude = '".$idx."' OR instruction.evenement = '".$idx."') ";
+ $selection = " WHERE (instruction.archive_evenement_suivant_tacite = ".intval($idxformulaire)." OR instruction.archive_evenement_suivant_tacite_incompletude = ".intval($idxformulaire)." OR instruction.evenement = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - autorite_competente
if (in_array($retourformulaire, $foreign_keys_extended["autorite_competente"])) {
- $selection = " WHERE (instruction.autorite_competente = '".$idx."') ";
+ $selection = " WHERE (instruction.autorite_competente = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - avis_decision
if (in_array($retourformulaire, $foreign_keys_extended["avis_decision"])) {
- $selection = " WHERE (instruction.avis_decision = '".$idx."') ";
+ $selection = " WHERE (instruction.avis_decision = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - document_numerise
if (in_array($retourformulaire, $foreign_keys_extended["document_numerise"])) {
- $selection = " WHERE (instruction.document_numerise = '".$idx."') ";
+ $selection = " WHERE (instruction.document_numerise = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (instruction.dossier = '".$idx."') ";
+ $selection = " WHERE (instruction.dossier = '".$f->db->escapeSimple($idxformulaire)."') ";
}
// Filtre listing sous formulaire - signataire_arrete
if (in_array($retourformulaire, $foreign_keys_extended["signataire_arrete"])) {
- $selection = " WHERE (instruction.signataire_arrete = '".$idx."') ";
+ $selection = " WHERE (instruction.signataire_arrete = ".intval($idxformulaire).") ";
}

/**

Modified: branches/contentieux/gen/sql/pgsql/lien_demande_demandeur.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_demande_demandeur.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_demande_demandeur.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -54,11 +69,11 @@
);
// Filtre listing sous formulaire - demande
if (in_array($retourformulaire, $foreign_keys_extended["demande"])) {
- $selection = " WHERE (lien_demande_demandeur.demande = '".$idx."') ";
+ $selection = " WHERE (lien_demande_demandeur.demande = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - demandeur
if (in_array($retourformulaire, $foreign_keys_extended["demandeur"])) {
- $selection = " WHERE (lien_demande_demandeur.demandeur = '".$idx."') ";
+ $selection = " WHERE (lien_demande_demandeur.demandeur = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lien_demande_type_etat.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_demande_type_etat.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_demande_type_etat.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -53,11 +68,11 @@
);
// Filtre listing sous formulaire - demande_type
if (in_array($retourformulaire, $foreign_keys_extended["demande_type"])) {
- $selection = " WHERE (lien_demande_type_etat.demande_type = '".$idx."') ";
+ $selection = " WHERE (lien_demande_type_etat.demande_type = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - etat
if (in_array($retourformulaire, $foreign_keys_extended["etat"])) {
- $selection = " WHERE (lien_demande_type_etat.etat = '".$idx."') ";
+ $selection = " WHERE (lien_demande_type_etat.etat = '".$f->db->escapeSimple($idxformulaire)."') ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lien_document_numerise_type_instructeur_qualite.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_document_numerise_type_instructeur_qualite.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_document_numerise_type_instructeur_qualite.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -53,11 +68,11 @@
);
// Filtre listing sous formulaire - document_numerise_type
if (in_array($retourformulaire, $foreign_keys_extended["document_numerise_type"])) {
- $selection = " WHERE (lien_document_numerise_type_instructeur_qualite.document_numerise_type = '".$idx."') ";
+ $selection = " WHERE (lien_document_numerise_type_instructeur_qualite.document_numerise_type = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - instructeur_qualite
if (in_array($retourformulaire, $foreign_keys_extended["instructeur_qualite"])) {
- $selection = " WHERE (lien_document_numerise_type_instructeur_qualite.instructeur_qualite = '".$idx."') ";
+ $selection = " WHERE (lien_document_numerise_type_instructeur_qualite.instructeur_qualite = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lien_donnees_techniques_moyen_retenu_juge.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_donnees_techniques_moyen_retenu_juge.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_donnees_techniques_moyen_retenu_juge.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -53,11 +68,11 @@
);
// Filtre listing sous formulaire - donnees_techniques
if (in_array($retourformulaire, $foreign_keys_extended["donnees_techniques"])) {
- $selection = " WHERE (lien_donnees_techniques_moyen_retenu_juge.donnees_techniques = '".$idx."') ";
+ $selection = " WHERE (lien_donnees_techniques_moyen_retenu_juge.donnees_techniques = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - moyen_retenu_juge
if (in_array($retourformulaire, $foreign_keys_extended["moyen_retenu_juge"])) {
- $selection = " WHERE (lien_donnees_techniques_moyen_retenu_juge.moyen_retenu_juge = '".$idx."') ";
+ $selection = " WHERE (lien_donnees_techniques_moyen_retenu_juge.moyen_retenu_juge = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lien_donnees_techniques_moyen_souleve.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_donnees_techniques_moyen_souleve.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_donnees_techniques_moyen_souleve.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -53,11 +68,11 @@
);
// Filtre listing sous formulaire - donnees_techniques
if (in_array($retourformulaire, $foreign_keys_extended["donnees_techniques"])) {
- $selection = " WHERE (lien_donnees_techniques_moyen_souleve.donnees_techniques = '".$idx."') ";
+ $selection = " WHERE (lien_donnees_techniques_moyen_souleve.donnees_techniques = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - moyen_souleve
if (in_array($retourformulaire, $foreign_keys_extended["moyen_souleve"])) {
- $selection = " WHERE (lien_donnees_techniques_moyen_souleve.moyen_souleve = '".$idx."') ";
+ $selection = " WHERE (lien_donnees_techniques_moyen_souleve.moyen_souleve = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lien_dossier_autorisation_demandeur.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_dossier_autorisation_demandeur.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_dossier_autorisation_demandeur.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -54,11 +69,11 @@
);
// Filtre listing sous formulaire - demandeur
if (in_array($retourformulaire, $foreign_keys_extended["demandeur"])) {
- $selection = " WHERE (lien_dossier_autorisation_demandeur.demandeur = '".$idx."') ";
+ $selection = " WHERE (lien_dossier_autorisation_demandeur.demandeur = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - dossier_autorisation
if (in_array($retourformulaire, $foreign_keys_extended["dossier_autorisation"])) {
- $selection = " WHERE (lien_dossier_autorisation_demandeur.dossier_autorisation = '".$idx."') ";
+ $selection = " WHERE (lien_dossier_autorisation_demandeur.dossier_autorisation = '".$f->db->escapeSimple($idxformulaire)."') ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lien_dossier_demandeur.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_dossier_demandeur.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_dossier_demandeur.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -54,11 +69,11 @@
);
// Filtre listing sous formulaire - demandeur
if (in_array($retourformulaire, $foreign_keys_extended["demandeur"])) {
- $selection = " WHERE (lien_dossier_demandeur.demandeur = '".$idx."') ";
+ $selection = " WHERE (lien_dossier_demandeur.demandeur = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (lien_dossier_demandeur.dossier = '".$idx."') ";
+ $selection = " WHERE (lien_dossier_demandeur.dossier = '".$f->db->escapeSimple($idxformulaire)."') ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lien_dossier_dossier.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_dossier_dossier.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_dossier_dossier.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -53,7 +68,7 @@
);
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (lien_dossier_dossier.dossier_cible = '".$idx."' OR lien_dossier_dossier.dossier_src = '".$idx."') ";
+ $selection = " WHERE (lien_dossier_dossier.dossier_cible = '".$f->db->escapeSimple($idxformulaire)."' OR lien_dossier_dossier.dossier_src = '".$f->db->escapeSimple($idxformulaire)."') ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lien_dossier_instruction_type_evenement.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_dossier_instruction_type_evenement.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_dossier_instruction_type_evenement.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -53,11 +68,11 @@
);
// Filtre listing sous formulaire - dossier_instruction_type
if (in_array($retourformulaire, $foreign_keys_extended["dossier_instruction_type"])) {
- $selection = " WHERE (lien_dossier_instruction_type_evenement.dossier_instruction_type = '".$idx."') ";
+ $selection = " WHERE (lien_dossier_instruction_type_evenement.dossier_instruction_type = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - evenement
if (in_array($retourformulaire, $foreign_keys_extended["evenement"])) {
- $selection = " WHERE (lien_dossier_instruction_type_evenement.evenement = '".$idx."') ";
+ $selection = " WHERE (lien_dossier_instruction_type_evenement.evenement = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lien_lot_demandeur.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_lot_demandeur.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_lot_demandeur.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -54,11 +69,11 @@
);
// Filtre listing sous formulaire - demandeur
if (in_array($retourformulaire, $foreign_keys_extended["demandeur"])) {
- $selection = " WHERE (lien_lot_demandeur.demandeur = '".$idx."') ";
+ $selection = " WHERE (lien_lot_demandeur.demandeur = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - lot
if (in_array($retourformulaire, $foreign_keys_extended["lot"])) {
- $selection = " WHERE (lien_lot_demandeur.lot = '".$idx."') ";
+ $selection = " WHERE (lien_lot_demandeur.lot = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lien_om_profil_groupe.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_om_profil_groupe.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_om_profil_groupe.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -55,11 +70,11 @@
);
// Filtre listing sous formulaire - groupe
if (in_array($retourformulaire, $foreign_keys_extended["groupe"])) {
- $selection = " WHERE (lien_om_profil_groupe.groupe = '".$idx."') ";
+ $selection = " WHERE (lien_om_profil_groupe.groupe = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - om_profil
if (in_array($retourformulaire, $foreign_keys_extended["om_profil"])) {
- $selection = " WHERE (lien_om_profil_groupe.om_profil = '".$idx."') ";
+ $selection = " WHERE (lien_om_profil_groupe.om_profil = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lien_om_utilisateur_groupe.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_om_utilisateur_groupe.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_om_utilisateur_groupe.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -52,7 +67,7 @@
);
// Filtre listing sous formulaire - groupe
if (in_array($retourformulaire, $foreign_keys_extended["groupe"])) {
- $selection = " WHERE (lien_om_utilisateur_groupe.groupe = '".$idx."') ";
+ $selection = " WHERE (lien_om_utilisateur_groupe.groupe = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lien_service_om_utilisateur.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_service_om_utilisateur.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_service_om_utilisateur.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -53,11 +68,11 @@
);
// Filtre listing sous formulaire - om_utilisateur
if (in_array($retourformulaire, $foreign_keys_extended["om_utilisateur"])) {
- $selection = " WHERE (lien_service_om_utilisateur.om_utilisateur = '".$idx."') ";
+ $selection = " WHERE (lien_service_om_utilisateur.om_utilisateur = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - service
if (in_array($retourformulaire, $foreign_keys_extended["service"])) {
- $selection = " WHERE (lien_service_om_utilisateur.service = '".$idx."') ";
+ $selection = " WHERE (lien_service_om_utilisateur.service = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lien_service_service_categorie.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lien_service_service_categorie.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lien_service_service_categorie.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -53,11 +68,11 @@
);
// Filtre listing sous formulaire - service
if (in_array($retourformulaire, $foreign_keys_extended["service"])) {
- $selection = " WHERE (lien_service_service_categorie.service = '".$idx."') ";
+ $selection = " WHERE (lien_service_service_categorie.service = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - service_categorie
if (in_array($retourformulaire, $foreign_keys_extended["service_categorie"])) {
- $selection = " WHERE (lien_service_service_categorie.service_categorie = '".$idx."') ";
+ $selection = " WHERE (lien_service_service_categorie.service_categorie = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/lot.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/lot.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/lot.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -55,11 +70,11 @@
);
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (lot.dossier = '".$idx."') ";
+ $selection = " WHERE (lot.dossier = '".$f->db->escapeSimple($idxformulaire)."') ";
}
// Filtre listing sous formulaire - dossier_autorisation
if (in_array($retourformulaire, $foreign_keys_extended["dossier_autorisation"])) {
- $selection = " WHERE (lot.dossier_autorisation = '".$idx."') ";
+ $selection = " WHERE (lot.dossier_autorisation = '".$f->db->escapeSimple($idxformulaire)."') ";
}

/**

Modified: branches/contentieux/gen/sql/pgsql/moyen_retenu_juge.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/moyen_retenu_juge.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/moyen_retenu_juge.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/moyen_souleve.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/moyen_souleve.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/moyen_souleve.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/objet_recours.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/objet_recours.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/objet_recours.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/om_collectivite.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_collectivite.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_collectivite.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/om_dashboard.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_dashboard.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_dashboard.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -57,11 +72,11 @@
);
// Filtre listing sous formulaire - om_profil
if (in_array($retourformulaire, $foreign_keys_extended["om_profil"])) {
- $selection = " WHERE (om_dashboard.om_profil = '".$idx."') ";
+ $selection = " WHERE (om_dashboard.om_profil = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - om_widget
if (in_array($retourformulaire, $foreign_keys_extended["om_widget"])) {
- $selection = " WHERE (om_dashboard.om_widget = '".$idx."') ";
+ $selection = " WHERE (om_dashboard.om_widget = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/om_droit.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_droit.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_droit.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -50,7 +65,7 @@
);
// Filtre listing sous formulaire - om_profil
if (in_array($retourformulaire, $foreign_keys_extended["om_profil"])) {
- $selection = " WHERE (om_droit.om_profil = '".$idx."') ";
+ $selection = " WHERE (om_droit.om_profil = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/om_etat.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_etat.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_etat.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -113,10 +128,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (om_etat.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_etat.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (om_etat.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_etat.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_etat.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_etat.om_collectivite = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - om_requete
@@ -123,10 +138,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_requete"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (om_etat.om_sql = '".$idx."') ";
+ $selection = " WHERE (om_etat.om_sql = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (om_etat.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_etat.om_sql = '".$idx."') ";
+ $selection = " WHERE (om_etat.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_etat.om_sql = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/om_lettretype.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_lettretype.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_lettretype.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -113,10 +128,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (om_lettretype.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_lettretype.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (om_lettretype.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_lettretype.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_lettretype.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_lettretype.om_collectivite = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - om_requete
@@ -123,10 +138,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_requete"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (om_lettretype.om_sql = '".$idx."') ";
+ $selection = " WHERE (om_lettretype.om_sql = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (om_lettretype.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_lettretype.om_sql = '".$idx."') ";
+ $selection = " WHERE (om_lettretype.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_lettretype.om_sql = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/om_logo.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_logo.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_logo.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -74,10 +89,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (om_logo.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_logo.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (om_logo.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_logo.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_logo.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_logo.om_collectivite = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/om_parametre.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_parametre.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_parametre.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -66,10 +81,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (om_parametre.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_parametre.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (om_parametre.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_parametre.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_parametre.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_parametre.om_collectivite = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/om_profil.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_profil.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_profil.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/om_requete.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_requete.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_requete.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/om_sig_extent.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_sig_extent.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_sig_extent.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/om_sig_flux.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_sig_flux.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_sig_flux.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -79,10 +94,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (om_sig_flux.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_sig_flux.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (om_sig_flux.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_sig_flux.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_sig_flux.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_sig_flux.om_collectivite = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/om_sig_map.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_sig_map.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_sig_map.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -101,10 +116,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (om_sig_map.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_sig_map.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (om_sig_map.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_sig_map.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_sig_map.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_sig_map.om_collectivite = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - om_sig_extent
@@ -111,10 +126,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_sig_extent"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (om_sig_map.om_sig_extent = '".$idx."') ";
+ $selection = " WHERE (om_sig_map.om_sig_extent = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (om_sig_map.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_sig_map.om_sig_extent = '".$idx."') ";
+ $selection = " WHERE (om_sig_map.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_sig_map.om_sig_extent = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - om_sig_map
@@ -121,10 +136,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_sig_map"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (om_sig_map.source_flux = '".$idx."') ";
+ $selection = " WHERE (om_sig_map.source_flux = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (om_sig_map.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_sig_map.source_flux = '".$idx."') ";
+ $selection = " WHERE (om_sig_map.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_sig_map.source_flux = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/om_sig_map_comp.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_sig_map_comp.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_sig_map_comp.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -64,7 +79,7 @@
);
// Filtre listing sous formulaire - om_sig_map
if (in_array($retourformulaire, $foreign_keys_extended["om_sig_map"])) {
- $selection = " WHERE (om_sig_map_comp.om_sig_map = '".$idx."') ";
+ $selection = " WHERE (om_sig_map_comp.om_sig_map = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/om_sig_map_flux.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_sig_map_flux.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_sig_map_flux.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -75,11 +90,11 @@
);
// Filtre listing sous formulaire - om_sig_flux
if (in_array($retourformulaire, $foreign_keys_extended["om_sig_flux"])) {
- $selection = " WHERE (om_sig_map_flux.om_sig_flux = '".$idx."') ";
+ $selection = " WHERE (om_sig_map_flux.om_sig_flux = ".intval($idxformulaire).") ";
}
// Filtre listing sous formulaire - om_sig_map
if (in_array($retourformulaire, $foreign_keys_extended["om_sig_map"])) {
- $selection = " WHERE (om_sig_map_flux.om_sig_map = '".$idx."') ";
+ $selection = " WHERE (om_sig_map_flux.om_sig_map = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/om_sousetat.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_sousetat.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_sousetat.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -176,10 +191,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (om_sousetat.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_sousetat.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (om_sousetat.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_sousetat.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_sousetat.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_sousetat.om_collectivite = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/om_utilisateur.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_utilisateur.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_utilisateur.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -77,10 +92,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (om_utilisateur.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_utilisateur.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (om_utilisateur.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_utilisateur.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (om_utilisateur.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_utilisateur.om_collectivite = ".intval($idxformulaire).") ";
}
}
// Filtre listing sous formulaire - om_profil
@@ -87,10 +102,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_profil"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (om_utilisateur.om_profil = '".$idx."') ";
+ $selection = " WHERE (om_utilisateur.om_profil = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (om_utilisateur.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_utilisateur.om_profil = '".$idx."') ";
+ $selection = " WHERE (om_utilisateur.om_collectivite = '".$_SESSION["collectivite"]."') AND (om_utilisateur.om_profil = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/om_widget.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/om_widget.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/om_widget.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/phase.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/phase.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/phase.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/quartier.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/quartier.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/quartier.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -52,7 +67,7 @@
);
// Filtre listing sous formulaire - arrondissement
if (in_array($retourformulaire, $foreign_keys_extended["arrondissement"])) {
- $selection = " WHERE (quartier.arrondissement = '".$idx."') ";
+ $selection = " WHERE (quartier.arrondissement = ".intval($idxformulaire).") ";
}

/**

Modified: branches/contentieux/gen/sql/pgsql/rapport_instruction.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/rapport_instruction.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/rapport_instruction.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -54,7 +69,7 @@
);
// Filtre listing sous formulaire - dossier
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) {
- $selection = " WHERE (rapport_instruction.dossier_instruction = '".$idx."') ";
+ $selection = " WHERE (rapport_instruction.dossier_instruction = '".$f->db->escapeSimple($idxformulaire)."') ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/gen/sql/pgsql/regle.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/regle.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/regle.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/service.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/service.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/service.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -95,10 +110,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_etat"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (service.edition = '".$idx."') AND ((service.om_validite_debut IS NULL AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)) OR (service.om_validite_debut <= CURRENT_DATE AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (service.edition = ".intval($idxformulaire).") AND ((service.om_validite_debut IS NULL AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)) OR (service.om_validite_debut <= CURRENT_DATE AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)))";
} else {
// Filtre MONO
- $selection = " WHERE (service.om_collectivite = '".$_SESSION["collectivite"]."') AND (service.edition = '".$idx."') AND ((service.om_validite_debut IS NULL AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)) OR (service.om_validite_debut <= CURRENT_DATE AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (service.om_collectivite = '".$_SESSION["collectivite"]."') AND (service.edition = ".intval($idxformulaire).") AND ((service.om_validite_debut IS NULL AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)) OR (service.om_validite_debut <= CURRENT_DATE AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)))";
}
$where_om_validite = " AND ((service.om_validite_debut IS NULL AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)) OR (service.om_validite_debut <= CURRENT_DATE AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)))";
}
@@ -106,10 +121,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (service.om_collectivite = '".$idx."') AND ((service.om_validite_debut IS NULL AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)) OR (service.om_validite_debut <= CURRENT_DATE AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (service.om_collectivite = ".intval($idxformulaire).") AND ((service.om_validite_debut IS NULL AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)) OR (service.om_validite_debut <= CURRENT_DATE AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)))";
} else {
// Filtre MONO
- $selection = " WHERE (service.om_collectivite = '".$_SESSION["collectivite"]."') AND (service.om_collectivite = '".$idx."') AND ((service.om_validite_debut IS NULL AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)) OR (service.om_validite_debut <= CURRENT_DATE AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (service.om_collectivite = '".$_SESSION["collectivite"]."') AND (service.om_collectivite = ".intval($idxformulaire).") AND ((service.om_validite_debut IS NULL AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)) OR (service.om_validite_debut <= CURRENT_DATE AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)))";
}
$where_om_validite = " AND ((service.om_validite_debut IS NULL AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)) OR (service.om_validite_debut <= CURRENT_DATE AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)))";
}

Modified: branches/contentieux/gen/sql/pgsql/service_categorie.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/service_categorie.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/service_categorie.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}

Modified: branches/contentieux/gen/sql/pgsql/signataire_arrete.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/signataire_arrete.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/signataire_arrete.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -13,6 +13,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -81,10 +96,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["civilite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (signataire_arrete.civilite = '".$idx."') AND ((signataire_arrete.om_validite_debut IS NULL AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)) OR (signataire_arrete.om_validite_debut <= CURRENT_DATE AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (signataire_arrete.civilite = ".intval($idxformulaire).") AND ((signataire_arrete.om_validite_debut IS NULL AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)) OR (signataire_arrete.om_validite_debut <= CURRENT_DATE AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)))";
} else {
// Filtre MONO
- $selection = " WHERE (signataire_arrete.om_collectivite = '".$_SESSION["collectivite"]."') AND (signataire_arrete.civilite = '".$idx."') AND ((signataire_arrete.om_validite_debut IS NULL AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)) OR (signataire_arrete.om_validite_debut <= CURRENT_DATE AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (signataire_arrete.om_collectivite = '".$_SESSION["collectivite"]."') AND (signataire_arrete.civilite = ".intval($idxformulaire).") AND ((signataire_arrete.om_validite_debut IS NULL AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)) OR (signataire_arrete.om_validite_debut <= CURRENT_DATE AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)))";
}
$where_om_validite = " AND ((signataire_arrete.om_validite_debut IS NULL AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)) OR (signataire_arrete.om_validite_debut <= CURRENT_DATE AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)))";
}
@@ -92,10 +107,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (signataire_arrete.om_collectivite = '".$idx."') AND ((signataire_arrete.om_validite_debut IS NULL AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)) OR (signataire_arrete.om_validite_debut <= CURRENT_DATE AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (signataire_arrete.om_collectivite = ".intval($idxformulaire).") AND ((signataire_arrete.om_validite_debut IS NULL AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)) OR (signataire_arrete.om_validite_debut <= CURRENT_DATE AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)))";
} else {
// Filtre MONO
- $selection = " WHERE (signataire_arrete.om_collectivite = '".$_SESSION["collectivite"]."') AND (signataire_arrete.om_collectivite = '".$idx."') AND ((signataire_arrete.om_validite_debut IS NULL AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)) OR (signataire_arrete.om_validite_debut <= CURRENT_DATE AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)))";
+ $selection = " WHERE (signataire_arrete.om_collectivite = '".$_SESSION["collectivite"]."') AND (signataire_arrete.om_collectivite = ".intval($idxformulaire).") AND ((signataire_arrete.om_validite_debut IS NULL AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)) OR (signataire_arrete.om_validite_debut <= CURRENT_DATE AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)))";
}
$where_om_validite = " AND ((signataire_arrete.om_validite_debut IS NULL AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)) OR (signataire_arrete.om_validite_debut <= CURRENT_DATE AND (signataire_arrete.om_validite_fin IS NULL OR signataire_arrete.om_validite_fin > CURRENT_DATE)))";
}

Modified: branches/contentieux/gen/sql/pgsql/taxe_amenagement.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/taxe_amenagement.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/taxe_amenagement.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -100,10 +115,10 @@
if (in_array($retourformulaire, $foreign_keys_extended["om_collectivite"])) {
if ($_SESSION["niveau"] == "2") {
// Filtre MULTI
- $selection = " WHERE (taxe_amenagement.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (taxe_amenagement.om_collectivite = ".intval($idxformulaire).") ";
} else {
// Filtre MONO
- $selection = " WHERE (taxe_amenagement.om_collectivite = '".$_SESSION["collectivite"]."') AND (taxe_amenagement.om_collectivite = '".$idx."') ";
+ $selection = " WHERE (taxe_amenagement.om_collectivite = '".$_SESSION["collectivite"]."') AND (taxe_amenagement.om_collectivite = ".intval($idxformulaire).") ";
}
}


Modified: branches/contentieux/gen/sql/pgsql/transition.inc.php
===================================================================
--- branches/contentieux/gen/sql/pgsql/transition.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/gen/sql/pgsql/transition.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -12,6 +12,21 @@
if(!isset($premiersf)) $premiersf='';
if(!isset($selection)) $selection='';
if(!isset($retourformulaire)) $retourformulaire='';
+if (!isset($idxformulaire)) {
+ $idxformulaire = '';
+}
+if (!isset($selectioncol)) {
+ $selectioncol = '';
+}
+if (!isset($tricol)) {
+ $tricol = '';
+}
+if (!isset($valide)) {
+ $valide = '';
+}
+if (!isset($recherche)) {
+ $recherche = '';
+}
if (isset($idx) && $idx != ']' && trim($idx) != '') {
$ent .= "->&nbsp;".$idx."&nbsp;";
}
@@ -53,11 +68,11 @@
);
// Filtre listing sous formulaire - etat
if (in_array($retourformulaire, $foreign_keys_extended["etat"])) {
- $selection = " WHERE (transition.etat = '".$idx."') ";
+ $selection = " WHERE (transition.etat = '".$f->db->escapeSimple($idxformulaire)."') ";
}
// Filtre listing sous formulaire - evenement
if (in_array($retourformulaire, $foreign_keys_extended["evenement"])) {
- $selection = " WHERE (transition.evenement = '".$idx."') ";
+ $selection = " WHERE (transition.evenement = ".intval($idxformulaire).") ";
}

?>
\ No newline at end of file

Modified: branches/contentieux/obj/dossier.class.php
===================================================================
--- branches/contentieux/obj/dossier.class.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/obj/dossier.class.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -2,7 +2,7 @@
//$Id: dossier.class.php 6132 2016-03-09 09:18:18Z stimezouaght $
//gen openMairie le 10/02/2011 20:39

-require_once ("../gen/obj/dossier.class.php");
+require_once "../gen/obj/dossier.class.php";
require_once "../obj/petitionnaire.class.php";
require_once "../obj/delegataire.class.php";
require_once "../obj/plaignant.class.php";
@@ -1734,6 +1734,11 @@
'evenement_suivant_tacite_incompletude' => 'hidden',
'ctx_infraction' => 'checkboxhiddenstatic',
'ctx_regularisable' => 'checkboxhiddenstatic',
+ 'dossier_contrevenants' => 'static',
+ 'dossier_arrondissement' => 'static',
+ 'ctx_synthese_anr' => 'static',
+ 'ctx_synthese_nti' => 'static',
+ 'ctx_date_audience' => 'hiddenstaticdate',
);
// RECOURS
$re_fields = array(
@@ -1768,6 +1773,10 @@
'ctx_synthese_anr' => 'hidden',
'ctx_infraction' => 'hidden',
'ctx_regularisable' => 'hidden',
+ 'dossier_requerant' => 'static',
+ 'dossier_petitionnaires' => 'static',
+ 'dossier_arrondissement' => 'static',
+ 'ctx_date_audience' => 'hidden',
);
// ADS
$ads_fields = array(
@@ -1785,6 +1794,7 @@
'dossier_instruction_type' => 'selecthiddenstatic',
'dossier_requerant' => 'hidden',
'dossier_contrevenant' => 'hidden',
+ 'dossier_contrevenants' => 'hidden',
'dossier_petitionnaires' => 'hidden',
'dossier_arrondissement' => 'hidden',
'ctx_synthese_nti' => 'hidden',
@@ -1791,6 +1801,7 @@
'ctx_synthese_anr' => 'hidden',
'ctx_infraction' => 'hidden',
'ctx_regularisable' => 'hidden',
+ 'ctx_date_audience' => 'hidden',
);
// COMMUN
$all_fields = array(
@@ -1819,6 +1830,7 @@
'geom' => 'hiddenstatic',
'geom1' => 'hidden',
'delai_incompletude' => 'hidden',
+ 'dossier_contrevenant' => 'hidden',
);
if ($this->f->getParameter('option_afficher_division') !== 'true') {
$all_fields['division'] = 'hidden';
@@ -1839,15 +1851,6 @@
$all_fields['etat'] ='hiddenstatic';
$all_fields['avis_decision'] ='hiddenstatic';
//
- $inf_fields['dossier_contrevenant'] = 'static';
- $inf_fields['dossier_arrondissement'] = 'static';
- $inf_fields['ctx_infraction'] = 'checkbox';
- $inf_fields['ctx_regularisable'] = 'checkbox';
- //
- $re_fields['dossier_requerant'] = 'static';
- $re_fields['dossier_petitionnaires'] = 'static';
- $re_fields['dossier_arrondissement'] = 'static';
- //
$ads_fields['tax_mtn_part_commu'] = 'hidden';
$ads_fields['tax_mtn_part_depart'] = 'hidden';
$ads_fields['tax_mtn_part_reg'] = 'hidden';
@@ -1878,7 +1881,6 @@
$ads_fields['evenement_suivant_tacite_incompletude'] ='selecthiddenstatic';
$ads_fields['evenement_suivant_tacite'] ='hidden';
$ads_fields['date_limite_incompletude'] = 'hiddenstaticdate';
-
} else {
// Sinon on cache la date de limite d'incomplétude
$ads_fields['date_limite_incompletude'] = 'hidden';
@@ -2062,12 +2064,25 @@
}
$form->setVal('dossier_requerant', $infos_requerant);
}
- // Si le dossier est lié a un ou plusieurs pétitionnaires en plus du
- // pétitionnaire principal
- if ($this->getVal('dossier_petitionnaire') != '' AND count($this->valIdDemandeur['petitionnaire']) > 0) {
- $form->setVal('dossier_petitionnaires', $this->getVal('dossier_petitionnaire').' et autres');
+ if ($this->getVal('dossier_petitionnaire') != '') {
+ $dossier_petitionnaires = $this->getVal('dossier_petitionnaire');
}
+ if (isset($this->valIdDemandeur['petitionnaire']) === true
+ AND count($this->valIdDemandeur['petitionnaire']) > 0) {
+ $dossier_petitionnaires .= _(' et autres');
+ }
+ $form->setVal('dossier_petitionnaires', $dossier_petitionnaires);
}
+ if ($affichage_form === 'CTX IN') {
+ if ($this->getVal('dossier_contrevenant') != '') {
+ $dossier_contrevenants = $this->getVal('dossier_contrevenant');
+ }
+ if (isset($this->valIdDemandeur['contrevenant']) === true
+ AND count($this->valIdDemandeur['contrevenant']) > 0) {
+ $dossier_contrevenants .= _(' et autres');
+ }
+ $form->setVal('dossier_contrevenants', $dossier_contrevenants);
+ }
if ($validation==0) {
if ($maj == 0){

@@ -2313,10 +2328,19 @@
$form->setLib('date_cloture_instruction', _("Date de clôture d'instruction"));
$form->setLib('autorisation_contestee', _("Autorisation contestée"));
$form->setLib('instructeur',_('Juriste'));
- $form->setLib('dossier_arrondissement',_('Arrondissement'));
$form->setLib('dossier_requerant', _("Requérant"));
- $form->setLib('dossier_petitionnaires', _("Pétitionnaire"));
}
+ if ($affichage_form === 'CTX IN') {
+ $form->setLib('date_decision', _("Date de décision"));
+ $form->setLib('avis_decision', _("Décision"));
+ $form->setLib('date_depot', _("Date de réception"));
+ $form->setLib('date_limite', _("Tacicité"));
+ $form->setLib('date_cloture_instruction', _("Date de clôture d'instruction"));
+ $form->setLib('instructeur',_('Juriste'));
+ }
+ $form->setLib('dossier_petitionnaires', _("Pétitionnaire(s)"));
+ $form->setLib('dossier_contrevenants', _("Contrevenant(s)"));
+ $form->setLib('dossier_contrevenant', _("Contrevenant"));
$form->setLib('dossier_autorisation_libelle',_('dossier_autorisation_libelle'));
$form->setLib('dossier_instruction_type',_('type de dossier'));
$form->setLib('dossier_petitionnaire',_('demandeur'));
@@ -2337,7 +2361,19 @@
$form->setLib('date_validite', _("fin de validite le"));
$form->setLib('cle_acces_citoyen', _("cle_acces_citoyen"));
$form->setLib('dossier_autorisation_type_detaille', _("Type"));
- }
+ $form->setLib('ctx_synthese_nti', _("Synthèse des NTI"));
+ $form->setLib('ctx_synthese_anr', _("Synthèse des ANR"));
+ $form->setLib('ctx_infraction', _("Infraction"));
+ $form->setLib('ctx_regularisable', _("Régularisable"));
+ $form->setLib('dossier_arrondissement', _("Arrondissement"));
+ $form->setLib('instructeur_2', _('Technicien'));
+ $form->setLib('date_premiere_visite', _("Date de 1ère visite"));
+ $form->setLib('date_derniere_visite', _("Date de dernière visite"));
+ $form->setLib('date_contradictoire', _("Date de contradictoire"));
+ $form->setLib('date_ait', _("Date d'AIT"));
+ $form->setLib('date_transmission_parquet', _('Date de transmission au Parquet'));
+ $form->setLib('ctx_date_audience', _("Date d'audience"));
+ }

function setOnchange(&$form,$maj){
parent::setOnchange($form,$maj);
@@ -2449,6 +2485,7 @@

$form->setBloc('terrain_superficie', 'F');
}
+ // RECOURS
if ($affichage_form === 'CTX RE') {
// En-tête
$form->setBloc('dossier_libelle', 'D', '', ($maj == 3 ? 'col_9':'col_12'));
@@ -2524,6 +2561,83 @@

$form->setBloc('terrain_superficie', 'F');
}
+ // INFRACTION
+ if ($affichage_form === 'CTX IN') {
+ // En-tête
+ $form->setBloc('dossier_libelle', 'D', '', ($maj == 3 ? 'col_9':'col_12'));
+
+ // Col1 : Fieldset "Dossier d'Instruction"
+ $form->setBloc('dossier_libelle', 'D', '', 'col_9');
+
+ $form->setFieldset('dossier_libelle', 'D', _("Dossier d'instruction"));
+ $form->setFieldset('geom', 'F');
+
+
+ $form->setBloc('geom', 'F');
+
+ // Col2 : 3 fieldsets
+ $form->setBloc('enjeu_urba', 'D', '', 'col_3');
+
+ // Fieldset "Enjeu"
+ $form->setFieldset('enjeu_urba', 'D', _("Enjeu"));
+ $form->setFieldset('enjeu_erp', 'F');
+ // Fieldset "Qualification"
+ $form->setFieldset('erp', 'D', _("Qualification"));
+ $form->setFieldset('a_qualifier', 'F');
+ // Fieldset "Archive"
+ $form->setFieldset('numero_versement_archive', 'D', _("Archive"));
+ $form->setFieldset('date_demande', 'F');
+
+ $form->setBloc('date_demande', 'F');
+ $form->setBloc('date_demande', 'F');
+
+ // Fieldset "Instruction"
+ $form->setBloc('date_depot', 'D', '', 'col_12');
+ $form->setFieldset('date_depot', 'D', _('Instruction'), 'col_12');
+
+ // Fieldset "Suivi"
+ $form->setBloc('date_depot', 'D', '', 'col_12');
+
+ $form->setFieldset('date_depot', 'D', _('Suivi'), 'col_12');
+ // Col 1
+ $form->setBloc('date_depot', 'D', '', 'col_6');
+ $form->setBloc('date_depot', 'D');
+ $form->setBloc('date_dernier_depot', 'F');
+ $form->setBloc('date_limite', 'D', '', 'interligne');
+ $form->setBloc('date_limite_incompletude', 'F');
+ $form->setBloc('date_limite_incompletude', 'F');
+ // Col 2
+ $form->setBloc('etat', 'D', '', 'col_6');
+ $form->setBloc('etat', 'D');
+ $form->setBloc('etat', 'F');
+ $form->setBloc('evenement_suivant_tacite', 'D', '', 'evmt_suivant_tacite_di');
+ $form->setBloc('evenement_suivant_tacite_incompletude', 'F');
+ $form->setBloc('evenement_suivant_tacite_incompletude', 'F');
+ $form->setFieldset('evenement_suivant_tacite_incompletude','F','');
+
+ $form->setBloc('evenement_suivant_tacite_incompletude', 'F'); // Fin Suivi
+
+ // Bloc 2 fieldsets
+ $form->setBloc('date_decision', 'D', '', 'col_12');
+
+ // Col 1 Fieldset "Décision"
+ $form->setFieldset('date_decision', 'D', _('Decision'), 'col_6');
+ $form->setFieldset('avis_decision','F','');
+ // Col 2 Fieldset "Validité de l'autorisation"
+ $form->setFieldset('date_validite', 'D', _("Validite de l'autorisation"), 'col_6');
+ $form->setFieldset('date_validite','F','');
+
+ $form->setBloc('date_validite', 'F'); // Fin bloc 2 fieldsets
+
+ $form->setFieldset('date_conformite','F','');
+ $form->setBloc('date_conformite', 'F'); // Fin Instruction
+
+ // Fieldset "Taxe d'aménagement"
+ $form->setBloc('tax_secteur', 'D', '', 'col_12');
+ $form->setFieldset('tax_secteur', 'D', _("Taxe d'amenagement"), 'startClosed');
+ $form->setFieldset('tax_mtn_total', 'F', '');
+ $form->setBloc('tax_mtn_total', 'F');
+ }
}

/**
@@ -3246,6 +3360,15 @@
return;
}

+ // Si la donnée membre a déjà été remplie par un précédent appel à cette méthode,
+ // on sort.
+ if ($this->valIdDemandeur['petitionnaire_principal'] !== ''
+ OR $this->valIdDemandeur['petitionnaire'] !== array()
+ OR $this->valIdDemandeur['contrevenant'] !== array()
+ ) {
+ return true;
+ }
+
// Récupération des demandeurs de la base
$sql = "SELECT demandeur.demandeur,
demandeur.type_demandeur,

Modified: branches/contentieux/sql/pgsql/dossier.form.inc.php
===================================================================
--- branches/contentieux/sql/pgsql/dossier.form.inc.php 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/sql/pgsql/dossier.form.inc.php 2016-12-09 16:59:52 UTC (rev 5419)
@@ -138,6 +138,7 @@
"date_retour_contradictoire",
"date_ait",
"date_transmission_parquet",
+ "donnees_techniques.ctx_date_audience",
"delai",
"delai_incompletude",
"date_dernier_depot",
@@ -160,7 +161,7 @@
"accord_tacite",
// Col 2
"date_rejet",
- "date_notification_delai",
+ "date_notification_delai",
"dossier.date_chantier",
"dossier.date_achevement",
// Col 3

Index: branches/contentieux/tests
===================================================================
--- branches/contentieux/tests 2016-12-09 16:57:02 UTC (rev 5418)
+++ branches/contentieux/tests 2016-12-09 16:59:52 UTC (rev 5419)

Property changes on: branches/contentieux/tests
___________________________________________________________________
Deleted: svn:mergeinfo
## -1,46 +0,0 ##
-/branches/3.33.X/tests:4845-4901
-/branches/3.33.x/tests:4956-5023
-/branches/3.34.0/tests:4973-5168
-/branches/3.34.x/tests:5178-5206,5268-5294
-/branches/8289_dossiers_lies_geographiquement/tests:4494-4606
-/branches/admin_tech_fonct/tests:4507-4665
-/branches/amelioration_optimisation_tests/tests:4083-4144
-/branches/bug-merge-fields-correspondant/tests:4125-4421
-/branches/bug_bibles_nombre_caracteres/tests:5133-5148
-/branches/cerfa_sitadel_juin_2016/tests:4486-4635
-/branches/cleanup-old-openfoncier/tests:4675-4758
-/branches/commission_update_odj_cr/tests:4574-4648
-/branches/commissions-via-nouvelles-actions/tests:4477-4553
-/branches/contentieux-dossiers-lies/tests:4924-5350
-/branches/contentieux-wf-suivi/tests:5236-5250
-/branches/contentieux_filtre_groupe/tests:5196-5281
-/branches/contentieux_vue_recours/tests:5319-5394
-/branches/correction-export-sitadel/tests:4822-4837
-/branches/correction-lots/tests:4821-5154
-/branches/etat-des-lieux-nouvellles-actions/tests:4480-5253
-/branches/evo-notification-pieces-numerisees-widget/tests:4064-4137
-/branches/evo-piece-metadata/tests:4864-4890
-/branches/evo-piece-table-param-filtre/tests:4846-4861
-/branches/evo-ws-dossier-instruction/tests:4754-4784
-/branches/evo_message/tests:4346-4362
-/branches/evo_stats_evoluees/tests:4190-4217
-/branches/evo_suppression_suffixe_di/tests:4320-4525
-/branches/form_di_recours/tests:5238-5415
-/branches/lien-openaria/tests:4161-4707
-/branches/lien_di/tests:4531-4583
-/branches/merge_fields/tests:4520-4590
-/branches/merge_tests_suppression_fichiers/tests:4055-4499
-/branches/migration-permissions-service-consulte/tests:4240-4312
-/branches/no-recepisse-initial/tests:4434-4440
-/branches/optimisation-tests-robot/tests:4256-4437
-/branches/optimisation_widget_dossiers_evenement_retour_finalise/tests:4358-4375
-/branches/remove_pdf_affichage_reglementaire/tests:3839-4587
-/branches/remove_pdf_consultations/tests:4178-4318
-/branches/remove_pdf_suivi/tests:4176-4316
-/branches/suivi-app-to-obj/tests:4167-4236
-/branches/suivi_dates/tests:4565-4974
-/branches/suppression-interface-referentiel-arrete/tests:4392-4400
-/branches/switch_collectivite/tests:4142-4172
-/branches/synchro_contraintes_commune/tests:4062-4426
-/tags/3.33.0/tests:4910-4955
-/trunk/tests:4922-5374
\ No newline at end of property
Reply all
Reply to author
Forward
0 new messages