Subversion Repositories Applications.projet

Rev

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

Rev 111 Rev 127
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.11 2006-04-28 12:41:28 florian Exp $
22
// CVS : $Id: projet.php,v 1.12 2006-07-04 09:35:04 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.11 $
34
*@version       $Revision: 1.12 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 42... Line 42...
42
include_once 'configuration/projet.config.inc.php' ;
42
include_once 'configuration/projet.config.inc.php' ;
43
include_once PROJET_CHEMIN_CLASSES.'projetControleur.class.php' ;
43
include_once PROJET_CHEMIN_CLASSES.'projetControleur.class.php' ;
Line 44... Line 44...
44
 
44
 
45
// Inclusion des styles selon papyrus
45
// Inclusion des styles selon papyrus
46
if (function_exists("GEN_stockerStyleExterne")) {
46
if (function_exists("GEN_stockerStyleExterne")) {
47
    GEN_stockerStyleExterne('projet','client/projet/projet.css') ;
47
	if (file_exists('client/projet/projet.css')) GEN_stockerStyleExterne('projet','client/projet/projet.css') ;
48
    GEN_stockerStyleExterne('projet_arbre','client/projet/arbre.css') ;
48
    if (file_exists('client/projet/arbre.css')) GEN_stockerStyleExterne('projet_arbre','client/projet/arbre.css') ;
Line 49... Line 49...
49
}
49
}
50
 
50
 
51
// +------------------------------------------------------------------------------------------------------+
51
// +------------------------------------------------------------------------------------------------------+
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) && 
69
        if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)) {
70
        			(($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre')
-
 
71
        			||($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste'
-
 
72
        			||($GLOBALS['_GEN_commun']['info_application']->presentation == 'tela')))) {
-
 
73
            $res .= '<ul class="onglets">';
70
            $res .= '<ul class="onglets">';
74
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_RESUME);
71
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_RESUME);
75
            $res .= '<li id="projet_resume" class="'.cma(PROJET_ACTION_VOIR_RESUME).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_SYNTHESE.'</a></li>';
72
            $res .= '<li id="projet_resume" class="'.cma(PROJET_ACTION_VOIR_RESUME).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_SYNTHESE.'</a></li>';
76
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DESCRIPTION);
73
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DESCRIPTION);
77
            $res .= '<li id="projet_description" class="'.cma(PROJET_ACTION_VOIR_DESCRIPTION).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_DESCRIPTION.'</a></li>';
74
            $res .= '<li id="projet_description" class="'.cma(PROJET_ACTION_VOIR_DESCRIPTION).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_DESCRIPTION.'</a></li>';
Line 116... Line 113...
116
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
113
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
117
        $controleur->setPrive() ;
114
        $controleur->setPrive() ;
118
    }
115
    }
Line 119... Line 116...
119
    
116
    
120
    // Dans le cas de la présentation par arbre, on met les menus
117
    // Dans le cas de la présentation par arbre, on met les menus
121
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && 
-
 
122
    				(($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre') || 
-
 
123
    				($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste')
-
 
Line 124... Line 118...
124
    				||($GLOBALS['_GEN_commun']['info_application']->presentation == 'tela'))){
118
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)){
125
 
119
 
126
        $sortie .= $controleur->menuGeneral() ;
120
        $sortie .= $controleur->menuGeneral() ;
127
    }
121
    }
Line 226... Line 220...
226
    return $class ;
220
    return $class ;
227
}
221
}
228
/* +--Fin du code ----------------------------------------------------------------------------------------+
222
/* +--Fin du code ----------------------------------------------------------------------------------------+
229
*
223
*
230
* $Log: not supported by cvs2svn $
224
* $Log: not supported by cvs2svn $
-
 
225
* Revision 1.11  2006/04/28 12:41:28  florian
-
 
226
* corrections erreurs chemin
-
 
227
*
231
* Revision 1.10  2005/12/01 16:38:32  alexandre_tb
228
* Revision 1.10  2005/12/01 16:38:32  alexandre_tb
232
* ajout de l'action telechargement
229
* ajout de l'action telechargement
233
*
230
*
234
* Revision 1.9  2005/11/25 14:48:44  alexandre_tb
231
* Revision 1.9  2005/11/25 14:48:44  alexandre_tb
235
* ajout de la gestion de la présentation tela
232
* ajout de la gestion de la présentation tela