170,7 → 170,7 |
if (!empty($resultats)) { |
$chaine_id_projet = ''; |
foreach ($resultats as $projet) { |
$chaine_id_projet .= $projet['id'].','; |
$chaine_id_projet .= $this->_db->escapeSimple($projet['id']).','; |
} |
$chaine_id_projet = substr($chaine_id_projet, 0, -1); |
$where_recherche = ' where p_id in ('.$chaine_id_projet.')'; |
185,7 → 185,7 |
$from_recherche = ''; |
if (isset($_GET[PROJET_VARIABLE_THEME])) { |
$from_recherche = ' left join projet_avoir_theme on pat_id_projet=p_id left join projet_theme on pat_id_theme=pt_id_theme'; |
$where_recherche = ' where pat_id_theme='.$_GET[PROJET_VARIABLE_THEME]; |
$where_recherche = ' where pat_id_theme='.$this->_db->escapeSimple($_GET[PROJET_VARIABLE_THEME]); |
$theme_selectionne = $_GET[PROJET_VARIABLE_THEME]; |
} else { |
$theme_selectionne = 0; |
199,7 → 199,7 |
$tableau_projet = $participant->getInformationsUtilisateurs($this->_auth->getAuthData(PROJET_CHAMPS_ID)); |
$chaine_id_projet = ''; |
if (count ($tableau_projet) == 0) return '<p class="information">Vous n\'êtes inscrit à aucun projet</p>'; |
foreach ($tableau_projet as $projet) $chaine_id_projet .= $projet[3].','; |
foreach ($tableau_projet as $projet) $chaine_id_projet .= $this->_db->escapeSimple($projet[3]).','; |
$chaine_id_projet = substr($chaine_id_projet, 0, -1); |
$where_recherche .= ' where p_id in ('.$chaine_id_projet.')'; |
|
229,7 → 229,7 |
/* Si l utilisateur est loggue, on recherche son statut par rapport aux projets */ |
if ($this->_auth->getAuth()) { |
$requete_statut = 'select psu_id_projet, psu_id_statut, ps_statut_nom from projet_statut_utilisateurs, projet_statut'. |
' where ps_id_statut=psu_id_statut and psu_id_utilisateur='.$this->_auth->getAuthData(PROJET_CHAMPS_ID); |
' where ps_id_statut=psu_id_statut and psu_id_utilisateur='.$this->_db->escapeSimple($this->_auth->getAuthData(PROJET_CHAMPS_ID)); |
$resultat_statut = $GLOBALS['projet_db']->query($requete_statut); |
while ($ligne_statut = $resultat_statut->fetchRow(DB_FETCHMODE_OBJECT)) { |
$tableau_statut[$ligne_statut->psu_id_projet]['id_statut'] = $ligne_statut->psu_id_statut; |
487,6 → 487,4 |
* |
* +-- Fin du code ----------------------------------------------------------------------------------------+ |
*/ |
|
|
?> |
?> |