Subversion Repositories Applications.projet

Rev

Rev 208 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 208 Rev 431
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: arbre.php,v 1.3 2007-04-19 15:34:35 neiluj Exp $
22
// CVS : $Id:$
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* Fichier de présentation de la liste des projets par arbre
26
* Fichier de pr�sentation de la liste des projets par arbre
27
*
27
*
28
*@package projet
28
*@package projet
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.3 $
34
*@version       $Revision:$
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
39
// |                                            ENTETE du PROGRAMME                                       |
Line 40... Line 40...
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
Line 41... Line 41...
41
 
41
 
Line 42... Line 42...
42
// ON est dans la méthode mesProjets() de la classe projetControleur
42
// ON est dans la m�thode mesProjets() de la classe projetControleur
43
 
43
 
44
$titre = '<h1>Arbre des Projets</h1>'."\n" ;
44
$titre = '<h1>Arbre des Projets</h1>'."\n" ;
45
 
45
 
46
if (PROJET_UTILISE_TYPE && $this->_type != '') {
46
/*if (PROJET_UTILISE_TYPE && $this->_type != '') {
47
    $projetListe = projet::getProjetDuType($this->_type, $this->_db) ;
47
    $projetListe = projet::getProjetDuType($this->_type, $this->_db) ;
48
    if ($this->_presentation == 'arbre')array_push ($projetListe, projet::getProjetRacine($this->_db)) ;
48
    if ($this->_presentation == 'arbre')array_push ($projetListe, projet::getProjetRacine($this->_db)) ;
Line 49... Line 49...
49
} else {
49
} else {
50
    // Un tableau de tous les projets dans $projetListe
50
    // Un tableau de tous les projets dans $projetListe
51
    $projetListe = projet::getTousLesProjets($this->_db, $this->_projet_exclu) ;
51
    $projetListe = projet::getTousLesProjets($this->_db, $this->_projet_exclu) ;
52
}
52
}*/
Line 71... Line 71...
71
 
71
 
72
        $arbre->addBranche($projet->getTitre(), $this->_url->getURL(), $projet->getNombreInscrits(),
72
        $arbre->addBranche($projet->getTitre(), $this->_url->getURL(), $projet->getNombreInscrits(),
73
                            $lien_feuille, $lien_feuille, $intensite_feuille, $longueur_branche) ;
73
                            $lien_feuille, $lien_feuille, $intensite_feuille, $longueur_branche) ;
74
    }
74
    }
75
}
75
}
Line 76... Line 76...
76
return $titre.'<table id="arbre">'.$cime.$arbre->affBranche().$arbre->affRacine().'</table>';
76
return $titre.'<table>'.$cime.$arbre->affBranche().$arbre->affRacine().'</table>';
77
 
77
 
78
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
79
*
-
 
80
* $Log: not supported by cvs2svn $
-
 
81
* Revision 1.2.2.1  2007/04/11 14:26:00  alexandre_tb
-
 
82
* ajout d'un include de projet.class.php et participe.class.php pour limiter le nombre de fichier inclu par projetControleur.class.php
-
 
83
*
-
 
84
* Revision 1.2  2006/03/02 16:07:17  alexandre_tb
-
 
85
* ajout d'un id pour l'arbre
-
 
86
*
78
/* +--Fin du code ----------------------------------------------------------------------------------------+
87
* Revision 1.1  2005/11/25 14:47:51  alexandre_tb
-
 
Line 88... Line 79...
88
* version initiale
79
*
89
*
80
* $Log:$
90
 
81
 
91
*
82
*