Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU General Public |
|
18 |
// | You should have received a copy of the GNU General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: mes_projets.php,v 1.2 2008-09-16 14:07:08 alexandre_tb Exp $
|
22 |
// CVS : $Id: mes_projets.php,v 1.1 2008-09-01 14:36:48 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Application projet
|
24 |
* Application projet
|
25 |
*
|
25 |
*
|
26 |
* Fichier de presentation de la liste des projets pour Tela Botanica nouvelle version
|
26 |
* Fichier de presentation de la liste des projets pour Tela Botanica nouvelle version
|
27 |
*
|
27 |
*
|
Line 29... |
Line 29... |
29 |
//Auteur original :
|
29 |
//Auteur original :
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
31 |
//Autres auteurs :
|
31 |
//Autres auteurs :
|
32 |
*@author Aucun
|
32 |
*@author Aucun
|
33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@version $Revision: 1.2 $
|
34 |
*@version $Revision: 1.1 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 168... |
Line 168... |
168 |
|
168 |
|
169 |
// $chaine_id_projet contient une liste d identifiant separer par une virgule
|
169 |
// $chaine_id_projet contient une liste d identifiant separer par une virgule
|
170 |
if (!empty($resultats)) {
|
170 |
if (!empty($resultats)) {
|
171 |
$chaine_id_projet = '';
|
171 |
$chaine_id_projet = '';
|
172 |
foreach ($resultats as $projet) {
|
172 |
foreach ($resultats as $projet) {
|
173 |
$chaine_id_projet .= $this->_db->escapeSimple($projet['id']).',';
|
173 |
$chaine_id_projet .= $projet['id'].',';
|
174 |
}
|
174 |
}
|
175 |
$chaine_id_projet = substr($chaine_id_projet, 0, -1);
|
175 |
$chaine_id_projet = substr($chaine_id_projet, 0, -1);
|
Line 176... |
Line 176... |
176 |
$where_recherche = ' where p_id in ('.$chaine_id_projet.')';
|
176 |
$where_recherche = ' where p_id in ('.$chaine_id_projet.')';
|
Line 197... |
Line 197... |
197 |
include_once PROJET_CHEMIN_CLASSES.'participe.class.php';
|
197 |
include_once PROJET_CHEMIN_CLASSES.'participe.class.php';
|
198 |
$participant = new participe ($this->_db);
|
198 |
$participant = new participe ($this->_db);
|
199 |
$tableau_projet = $participant->getInformationsUtilisateurs($this->_auth->getAuthData(PROJET_CHAMPS_ID));
|
199 |
$tableau_projet = $participant->getInformationsUtilisateurs($this->_auth->getAuthData(PROJET_CHAMPS_ID));
|
200 |
$chaine_id_projet = '';
|
200 |
$chaine_id_projet = '';
|
201 |
if (count ($tableau_projet) == 0) return '<p class="information">Vous n\'êtes inscrit à aucun projet</p>';
|
201 |
if (count ($tableau_projet) == 0) return '<p class="information">Vous n\'êtes inscrit à aucun projet</p>';
|
202 |
foreach ($tableau_projet as $projet) $chaine_id_projet .= $this->_db->escapeSimple($projet[3]).',';
|
202 |
foreach ($tableau_projet as $projet) $chaine_id_projet .= $projet[3].',';
|
203 |
$chaine_id_projet = substr($chaine_id_projet, 0, -1);
|
203 |
$chaine_id_projet = substr($chaine_id_projet, 0, -1);
|
204 |
$where_recherche .= ' where p_id in ('.$chaine_id_projet.')';
|
204 |
$where_recherche .= ' where p_id in ('.$chaine_id_projet.')';
|
Line 205... |
Line 205... |
205 |
|
205 |
|
206 |
$from_recherche .= ' left join projet_statut_utilisateurs on psu_id_projet=p_id and psu_id_utilisateur='.$this->_auth->getAuthData(PROJET_CHAMPS_ID).
|
206 |
$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)).
|
207 |
' left join projet_statut on psu_id_statut=ps_id_statut';
|
207 |
' left join projet_statut on psu_id_statut=ps_id_statut';
|
208 |
$select = 'psu_id_statut, ps_statut_nom,';
|
208 |
$select = 'psu_id_statut, ps_statut_nom,';
|
209 |
}
|
209 |
}
|
210 |
$requete = 'select '.$select.'p_id, p_titre, p_resume, pl_id_liste, plle_id_liste, p_avoir_document, ps_nombre_inscrit, ps_pourcent,'.
|
210 |
$requete = 'select '.$select.'p_id, p_titre, p_resume, pl_id_liste, plle_id_liste, p_avoir_document, ps_nombre_inscrit, ps_pourcent,'.
|
Line 241... |
Line 241... |
241 |
|
241 |
|
Line 242... |
Line 242... |
242 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
|
242 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
|
243 |
|
243 |
|
244 |
// Si le projet est en dormance, on ne l affiche pas dans le mode normal
|
244 |
// Si le projet est en dormance, on ne l affiche pas dans le mode normal
|
Line 245... |
Line 245... |
245 |
// Sauf si le theme choisit est "en dormance"
|
245 |
// Sauf si le theme choisit est "en dormance"
|
246 |
/*if ($_SESSION['_PROJET_']['projet_affichage'] != 'expert' && $ligne->p_en_dormance == 1 && $theme_selectionne != 9) {
|
246 |
if ($_SESSION['_PROJET_']['projet_affichage'] != 'expert' && $ligne->p_en_dormance == 1 && $theme_selectionne != 9) {
|
247 |
|
247 |
|
Line 248... |
Line 248... |
248 |
} else {*/
|
248 |
} else {
|
Line 249... |
Line 249... |
249 |
$donnees[] = $ligne;
|
249 |
$donnees[] = $ligne;
|
250 |
//}
|
250 |
}
|
Line 475... |
Line 475... |
475 |
$this->_url->removeQueryString (PROJET_VARIABLE_TRI);
|
475 |
$this->_url->removeQueryString (PROJET_VARIABLE_TRI);
|
476 |
return $res ;
|
476 |
return $res ;
|
Line 477... |
Line 477... |
477 |
|
477 |
|
478 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
478 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
479 |
*
|
479 |
*
|
480 |
* $Log: not supported by cvs2svn $
|
480 |
* $Log: mes_projets.php,v $
|
481 |
* Revision 1.1 2008-09-01 14:36:48 alexandre_tb
|
481 |
* Revision 1.1 2008-09-01 14:36:48 alexandre_tb
|
482 |
* version intiale
|
482 |
* version intiale
|
483 |
* sert a afficher les projets auquels on est inscrit
|
483 |
* sert a afficher les projets auquels on est inscrit
|
484 |
*
|
484 |
*
|