Subversion Repositories Applications.projet

Rev

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

Rev 67 Rev 78
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.9 2005-11-25 14:48:44 alexandre_tb Exp $
22
// CVS : $Id: projet.php,v 1.10 2005-12-01 16:38:32 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.9 $
34
*@version       $Revision: 1.10 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 120... Line 120...
120
    // Dans le cas de la présentation par arbre, on met les menus
120
    // Dans le cas de la présentation par arbre, on met les menus
121
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && 
121
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && 
122
    				(($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre') || 
122
    				(($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre') || 
123
    				($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste')
123
    				($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste')
124
    				||($GLOBALS['_GEN_commun']['info_application']->presentation == 'tela'))){
124
    				||($GLOBALS['_GEN_commun']['info_application']->presentation == 'tela'))){
-
 
125
 
125
        $sortie .= $controleur->menuGeneral() ;
126
        $sortie .= $controleur->menuGeneral() ;
126
    }
127
    }
-
 
128
   	if (isset($GLOBALS['_GEN_commun']['info_application']->seulement)) {
-
 
129
		$controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;	
-
 
130
	}
-
 
131
	if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
-
 
132
		// L'action "Mettre un fichier en ligne"
-
 
133
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER) ;
-
 
134
        $res = "<ul><li><a href=\"".$controleur->_url->getURL()."\">".PROJET_METTRE_FICHIER."</a></li>\n" ;
127
    
135
 
-
 
136
        // L'action créer un répertoire
-
 
137
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_REPERTOIRE) ;
-
 
138
        $res .= "<li><a href=\"".$controleur->_url->getURL()."\">".PROJET_CREER_REP."</a></li>\n" ;
-
 
139
		$res .= '</ul></li>' ;
-
 
140
		$sortie .= $res ;
-
 
141
	}
128
    // Dans le cas d'un forum simple, on ne met pas les menus
142
    // Dans le cas d'un forum simple, on ne met pas les menus
129
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
143
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
130
        	return ;
144
        	return ;
131
    }
145
    }
132
    return $sortie;
146
    return $sortie;
Line 181... Line 195...
181
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement_forum) ;
195
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement_forum) ;
182
        // S'il n'y a pas d'action en mode forum, on affiche l'onglet Forum
196
        // S'il n'y a pas d'action en mode forum, on affiche l'onglet Forum
183
        if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_FORUM) ;
197
        if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_FORUM) ;
184
    }
198
    }
Line -... Line 199...
-
 
199
    
-
 
200
    if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
-
 
201
    	if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_DOCUMENT) ;
-
 
202
    }
185
    
203
    
186
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement)) {
204
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement)) {
187
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;
205
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;
Line 188... Line 206...
188
    }
206
    }
Line 208... Line 226...
208
    return $class ;
226
    return $class ;
209
}
227
}
210
/* +--Fin du code ----------------------------------------------------------------------------------------+
228
/* +--Fin du code ----------------------------------------------------------------------------------------+
211
*
229
*
212
* $Log: not supported by cvs2svn $
230
* $Log: not supported by cvs2svn $
-
 
231
* Revision 1.9  2005/11/25 14:48:44  alexandre_tb
-
 
232
* ajout de la gestion de la présentation tela
-
 
233
*
213
* Revision 1.8  2005/10/25 13:50:13  alexandre_tb
234
* Revision 1.8  2005/10/25 13:50:13  alexandre_tb
214
* Ajout de la gestion des projets privés
235
* Ajout de la gestion des projets privés
215
*
236
*
216
* Revision 1.7  2005/10/17 16:22:28  alexandre_tb
237
* Revision 1.7  2005/10/17 16:22:28  alexandre_tb
217
* rien
238
* rien