Subversion Repositories Applications.projet

Compare Revisions

Ignore whitespace Rev 395 → Rev 396

/trunk/presentation/tela_ergo.php
186,7 → 186,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(intval($_GET[PROJET_VARIABLE_THEME]));
$theme_selectionne = $_GET[PROJET_VARIABLE_THEME];
} else {
$theme_selectionne = 0;
195,7 → 195,8
if ($this->_auth->getAuth()) {
/** on recherche egalement le statut si l utilisateur est loggue */
 
$from_recherche .= ' left join projet_statut_utilisateurs on psu_id_projet=p_id and psu_id_utilisateur='.$this->_auth->getAuthData(PROJET_CHAMPS_ID).
$from_recherche .= ' left join projet_statut_utilisateurs on psu_id_projet=p_id and psu_id_utilisateur='.
$this->_db->escapeSimple($this->_auth->getAuthData(PROJET_CHAMPS_ID)).
' left join projet_statut on psu_id_statut=ps_id_statut';
$select = 'psu_id_statut, ps_statut_nom,';
}
221,7 → 222,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;
482,6 → 483,4
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
 
 
?>
?>