Subversion Repositories Applications.projet

Rev

Rev 389 | Rev 431 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 389 Rev 396
Line 184... Line 184...
184
}
184
}
185
$select = '';
185
$select = '';
186
$from_recherche = '';
186
$from_recherche = '';
187
if (isset($_GET[PROJET_VARIABLE_THEME])) {
187
if (isset($_GET[PROJET_VARIABLE_THEME])) {
188
	$from_recherche = ' left join projet_avoir_theme on pat_id_projet=p_id left join projet_theme on pat_id_theme=pt_id_theme';
188
	$from_recherche = ' left join projet_avoir_theme on pat_id_projet=p_id left join projet_theme on pat_id_theme=pt_id_theme';
189
	$where_recherche = ' where pat_id_theme='.$_GET[PROJET_VARIABLE_THEME];
189
	$where_recherche = ' where pat_id_theme='.$this->_db->escapeSimple(intval($_GET[PROJET_VARIABLE_THEME]));
190
	$theme_selectionne = $_GET[PROJET_VARIABLE_THEME];
190
	$theme_selectionne = $_GET[PROJET_VARIABLE_THEME];
191
} else {
191
} else {
192
	$theme_selectionne = 0;
192
	$theme_selectionne = 0;
193
}
193
}
Line 194... Line 194...
194
 
194
 
195
if ($this->_auth->getAuth()) {
195
if ($this->_auth->getAuth()) {
Line 196... Line 196...
196
	/** on recherche egalement le statut si l utilisateur est loggue */
196
	/** on recherche egalement le statut si l utilisateur est loggue */
-
 
197
 
197
 
198
	$from_recherche .= ' left join projet_statut_utilisateurs on psu_id_projet=p_id and psu_id_utilisateur='.
198
	$from_recherche .= ' left join projet_statut_utilisateurs on psu_id_projet=p_id and psu_id_utilisateur='.$this->_auth->getAuthData(PROJET_CHAMPS_ID).
199
						$this->_db->escapeSimple($this->_auth->getAuthData(PROJET_CHAMPS_ID)).
199
						' left join projet_statut on psu_id_statut=ps_id_statut';
200
						' left join projet_statut on psu_id_statut=ps_id_statut';
200
	$select = 'psu_id_statut, ps_statut_nom,';
201
	$select = 'psu_id_statut, ps_statut_nom,';
201
}
202
}
Line 219... Line 220...
219
$nombre_resultat = $resultat->numRows();
220
$nombre_resultat = $resultat->numRows();
Line 220... Line 221...
220
 
221
 
221
/* Si  l utilisateur est loggue, on recherche son statut par rapport aux projets */
222
/* Si  l utilisateur est loggue, on recherche son statut par rapport aux projets */
222
if ($this->_auth->getAuth()) {
223
if ($this->_auth->getAuth()) {
223
	$requete_statut = 'select psu_id_projet, psu_id_statut, ps_statut_nom from projet_statut_utilisateurs, projet_statut'.
224
	$requete_statut = 'select psu_id_projet, psu_id_statut, ps_statut_nom from projet_statut_utilisateurs, projet_statut'.
224
						' where ps_id_statut=psu_id_statut and psu_id_utilisateur='.$this->_auth->getAuthData(PROJET_CHAMPS_ID);
225
						' where ps_id_statut=psu_id_statut and psu_id_utilisateur='.$this->_db->escapeSimple($this->_auth->getAuthData(PROJET_CHAMPS_ID));
225
	$resultat_statut = $GLOBALS['projet_db']->query($requete_statut);
226
	$resultat_statut = $GLOBALS['projet_db']->query($requete_statut);
226
	while ($ligne_statut = $resultat_statut->fetchRow(DB_FETCHMODE_OBJECT)) {
227
	while ($ligne_statut = $resultat_statut->fetchRow(DB_FETCHMODE_OBJECT)) {
227
		$tableau_statut[$ligne_statut->psu_id_projet]['id_statut'] = $ligne_statut->psu_id_statut;
228
		$tableau_statut[$ligne_statut->psu_id_projet]['id_statut'] = $ligne_statut->psu_id_statut;
228
		$tableau_statut[$ligne_statut->psu_id_projet]['nom_statut'] = $ligne_statut->ps_statut_nom;
229
		$tableau_statut[$ligne_statut->psu_id_projet]['nom_statut'] = $ligne_statut->ps_statut_nom;
Line 480... Line 481...
480
* Revision 1.1  2008-08-25 15:00:28  alexandre_tb
481
* Revision 1.1  2008-08-25 15:00:28  alexandre_tb
481
* version initiale
482
* version initiale
482
*
483
*
483
* +-- Fin du code ----------------------------------------------------------------------------------------+
484
* +-- Fin du code ----------------------------------------------------------------------------------------+
484
*/
485
*/
485
 
-
 
486
 
-
 
487
?>
486
?>
488
487