Subversion Repositories Applications.projet

Rev

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

Rev 45 Rev 55
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: projet.php,v 1.7 2005-10-17 16:22:28 alexandre_tb Exp $
22
// CVS : $Id: projet.php,v 1.8 2005-10-25 13:50:13 alexandre_tb Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* Fichier d'appel pour papyrus
26
* Fichier d'appel pour papyrus
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.7 $
34
*@version       $Revision: 1.8 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 64... Line 64...
64
        $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ID_PROJET, $_REQUEST[PROJET_VARIABLE_ID_PROJET]) ;
64
        $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ID_PROJET, $_REQUEST[PROJET_VARIABLE_ID_PROJET]) ;
65
        if (empty($_REQUEST[PROJET_VARIABLE_ACTION])) {
65
        if (empty($_REQUEST[PROJET_VARIABLE_ACTION])) {
66
            $_REQUEST[PROJET_VARIABLE_ACTION] = PROJET_ACTION_VOIR_RESUME ;
66
            $_REQUEST[PROJET_VARIABLE_ACTION] = PROJET_ACTION_VOIR_RESUME ;
67
        }
67
        }
68
        $res = '' ;
68
        $res = '' ;
-
 
69
        if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && 
-
 
70
        			(($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre')
69
        if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && (($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre')||($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste'))) {
71
        			||($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste'))) {
70
            $res .= '<ul class="onglets">';
72
            $res .= '<ul class="onglets">';
71
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_RESUME);
73
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_RESUME);
72
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_RESUME).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_SYNTHESE.'</a></li>';
74
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_RESUME).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_SYNTHESE.'</a></li>';
73
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DESCRIPTION);
75
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DESCRIPTION);
74
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_DESCRIPTION).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_DESCRIPTION.'</a></li>';
76
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_DESCRIPTION).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_DESCRIPTION.'</a></li>';
Line 108... Line 110...
108
        $controleur->setIdProjet($id_projet) ;
110
        $controleur->setIdProjet($id_projet) ;
109
    }
111
    }
110
    if ($id_repertoire != "") {
112
    if ($id_repertoire != "") {
111
        $controleur->setIdRepertoire($id_repertoire) ;
113
        $controleur->setIdRepertoire($id_repertoire) ;
112
    }
114
    }
-
 
115
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
-
 
116
        $controleur->setPrive() ;
-
 
117
    }
Line 113... Line 118...
113
    
118
    
-
 
119
    // Dans le cas de la présentation par arbre, on met les menus
114
    // Dans le cas de la présentation par arbre, on met les menus
120
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && 
-
 
121
    				(($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre') || 
115
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && (($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre') || ($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste'))){
122
    				($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste'))){
116
        $sortie .= $controleur->menuGeneral() ;
123
        $sortie .= $controleur->menuGeneral() ;
Line 117... Line 124...
117
    }
124
    }
118
    
125
    
Line 169... Line 176...
169
        foreach ($a_exclure as $valeur) $controleur->exclure($valeur) ;
176
        foreach ($a_exclure as $valeur) $controleur->exclure($valeur) ;
170
    }
177
    }
171
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
178
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
172
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement_forum) ;
179
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement_forum) ;
173
        // S'il n'y a pas d'action en mode forum, on affiche l'onglet Forum
180
        // S'il n'y a pas d'action en mode forum, on affiche l'onglet Forum
-
 
181
        echo $_REQUEST[PROJET_VARIABLE_ACTION];
174
        if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_FORUM) ;
182
        if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_FORUM) ;
175
    }
183
    }
-
 
184
    
-
 
185
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement)) {
-
 
186
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;
-
 
187
    }
-
 
188
    
-
 
189
    // Si le parametre prive est passé, les inscriptions sont modérés
-
 
190
    // TODO : permettre la demande d'inscription
-
 
191
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
-
 
192
        $controleur->setPrive() ;
-
 
193
    }
176
    $res = $controleur->run() ;
194
    $res = $controleur->run() ;
Line 177... Line 195...
177
 
195
 
178
    return $res ;
196
    return $res ;
Line 189... Line 207...
189
    return $class ;
207
    return $class ;
190
}
208
}
191
/* +--Fin du code ----------------------------------------------------------------------------------------+
209
/* +--Fin du code ----------------------------------------------------------------------------------------+
192
*
210
*
193
* $Log: not supported by cvs2svn $
211
* $Log: not supported by cvs2svn $
-
 
212
* Revision 1.7  2005/10/17 16:22:28  alexandre_tb
-
 
213
* rien
-
 
214
*
194
* Revision 1.6  2005/10/06 14:54:06  alexandre_tb
215
* Revision 1.6  2005/10/06 14:54:06  alexandre_tb
195
* ajout de la gestion du paramètre seulement_forum
216
* ajout de la gestion du paramètre seulement_forum
196
*
217
*
197
* Revision 1.5  2005/10/04 10:06:32  alexandre_tb
218
* Revision 1.5  2005/10/04 10:06:32  alexandre_tb
198
* ajout du parametre seulement_forum
219
* ajout du parametre seulement_forum