| Line 31... |
Line 31... |
| 31 |
// Pré traitement des paramêtres
|
31 |
// Pré traitement des paramêtres
|
| 32 |
$p = $this->traiterParametresUrl(array('id_structure', 'id_role'), $param);
|
32 |
$p = $this->traiterParametresUrl(array('id_structure', 'id_role'), $param);
|
| Line 33... |
Line 33... |
| 33 |
|
33 |
|
| 34 |
// Construction de la requête
|
34 |
// Construction de la requête
|
| - |
|
35 |
$requete = (($this->distinct) ? 'SELECT DISTINCT ' : 'SELECT ').
|
| 35 |
$requete = (($this->distinct) ? 'SELECT DISTINCT ' : 'SELECT ').
|
36 |
' csap.*, '.
|
| 36 |
' csap.*, cp_ce_projet, cp_prenom, cp_nom, cp_truk_telephone, cp_truk_courriel, cp_ce_truk_specialite '.
|
37 |
' cp_ce_projet, cp_fmt_nom_complet, cp_prenom, cp_nom, cp_truk_telephone, cp_truk_courriel, cp_ce_truk_specialite '.
|
| 37 |
'FROM coel_structure_a_personne AS csap '.
|
38 |
'FROM coel_structure_a_personne AS csap '.
|
| 38 |
' LEFT JOIN coel_meta_historique_ligne ON (csap_ce_meta = cmhl_id_historique_ligne) '.
|
39 |
' LEFT JOIN coel_meta_historique_ligne ON (csap_ce_meta = cmhl_id_historique_ligne) '.
|
| 39 |
' LEFT JOIN coel_personne ON (csap_id_personne = cp_id_personne) '.
|
40 |
' LEFT JOIN coel_personne ON (csap_id_personne = cp_id_personne) '.
|
| 40 |
((count($p) != 0) ? 'WHERE ' : '').
|
41 |
((count($p) != 0) ? 'WHERE ' : '').
|