Subversion Repositories Applications.gtt

Rev

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

Rev 5 Rev 7
Line 36... Line 36...
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
Line 37... Line 37...
37
 
37
 
38
// Fichiers de la bibliotheque PEAR
38
// Fichiers de la bibliotheque PEAR
39
include_once 'Auth/Auth.php';
39
include_once 'Auth/Auth.php';
-
 
40
include_once 'DB.php';
40
include_once 'DB.php';
41
include_once 'HTML/QuickForm.php';
41
include_once 'gtt_config.inc.php';
42
include_once 'gtt_config.inc.php';
42
include_once CHEMIN_LANGUES.'gtt_langue_fr.inc.php';
43
include_once CHEMIN_LANGUES.'gtt_langue_fr.inc.php';
43
include_once CHEMIN_CLASSES.'gtt_authentification.php';
44
include_once CHEMIN_CLASSES.'gtt_authentification.php';
44
include_once CHEMIN_FN_GENERIQUE_AFFICHAGE;
-
 
45
include_once CHEMIN_MENU.'gtt_menu_admin_utilisateur.php';
-
 
46
include_once CHEMIN_MENU.'gtt_menu_travail.php';
-
 
47
include_once CHEMIN_CONTROLEUR.'gtt_controleur_admin_categorie.php';
-
 
48
include_once CHEMIN_CONTROLEUR.'gtt_controleur_admin_motif_absence.php';
-
 
49
include_once CHEMIN_CONTROLEUR.'gtt_controleur_admin_projet.php';
-
 
50
include_once CHEMIN_CONTROLEUR.'gtt_controleur_admin_statut.php';
-
 
51
include_once CHEMIN_CONTROLEUR.'gtt_controleur_admin_utilisateur.php';
-
 
52
include_once CHEMIN_CONTROLEUR.'gtt_controleur_travail.php';
-
 
53
include_once CHEMIN_CONTROLEUR.'gtt_controleur_editer_preferences.php';
-
 
Line 54... Line 45...
54
include_once CHEMIN_MENU.'gtt_menu_editer_preferences.php';
45
include_once CHEMIN_FN_GENERIQUE_AFFICHAGE;
55
 
46
 
56
// Création du dsn
47
// Création du dsn
Line 86... Line 77...
86
		$action = 1 ;
77
		$action = 1 ;
87
	} 
78
	} 
88
	switch ($action) {
79
	switch ($action) {
89
		// Cas affichage menu travail 1
80
		// Cas affichage menu travail 1
90
		case GESTION_TRAVAIL :
81
		case GESTION_TRAVAIL :
-
 
82
			include_once CHEMIN_MENU.'gtt_menu_travail.php';
-
 
83
			include_once CHEMIN_CONTROLEUR.'gtt_controleur_travail.php';
91
       		if (!isset($semaine)) {
84
       		if (!isset($semaine)) {
92
				$semaine = date('W',mktime(0, 0, 0, date('m'), date('d') ,date('Y')));
85
				$semaine = date('W',mktime(0, 0, 0, date('m'), date('d') ,date('Y')));
93
			}
86
			}
94
	 		if (!isset($annee)) {
87
	 		if (!isset($annee)) {
95
				$annee = date('Y');
88
				$annee = date('Y');
Line 97... Line 90...
97
        	$text = traiterAdminTravail($_SERVER['PHP_SELF'], $semaine, $annee, $utilisateur);
90
        	$text = traiterAdminTravail($_SERVER['PHP_SELF'], $semaine, $annee, $utilisateur);
98
			break;
91
			break;
Line 99... Line 92...
99
		
92
		
100
		// Cas affichage du menu ajout autilisateurss 13
93
		// Cas affichage du menu ajout autilisateurss 13
-
 
94
		case GESTION_ADMIN_UTILISATEUR :
-
 
95
			include_once CHEMIN_MENU.'gtt_menu_admin_utilisateur.php';
101
		case GESTION_ADMIN_UTILISATEUR :
96
			include_once CHEMIN_CONTROLEUR.'gtt_controleur_admin_utilisateur.php';
102
			$text = traiterAdminUtilisateur('',0);
97
			$text = traiterAdminUtilisateur('',0);
Line 103... Line 98...
103
			break;
98
			break;
104
		
99
		
-
 
100
		// Cas editer des utilisateurs 14
-
 
101
		case GESTION_EDITER_UTILISATEUR :
105
		// Cas editer des utilisateurs 14
102
			include_once CHEMIN_MENU.'gtt_menu_admin_utilisateur.php';
106
		case GESTION_EDITER_UTILISATEUR :
103
			include_once CHEMIN_CONTROLEUR.'gtt_controleur_admin_utilisateur.php';
Line 107... Line 104...
107
			$text = traiterAdminUtilisateur(renvoyerDonneesUser(),1);
104
			$text = traiterAdminUtilisateur(renvoyerDonneesUser(),1);
108
			break;
105
			break;
-
 
106
		
109
		
107
		// Cas afficher menu administration projet 15
110
		// Cas afficher menu administration projet 15
108
		case GESTION_ADMIN_PROJET :
Line 111... Line 109...
111
		case GESTION_ADMIN_PROJET :
109
			include_once CHEMIN_CONTROLEUR.'gtt_controleur_admin_projet.php';
112
			$text = traiterAdminProjet();
110
			$text = traiterAdminProjet();
-
 
111
			break;
113
			break;
112
		
114
		
113
		// Cas afficher menu administration categorie 16
Line 115... Line 114...
115
		// Cas afficher menu administration categorie 16
114
		case GESTION_ADMIN_CATEGORIE :
116
		case GESTION_ADMIN_CATEGORIE :
115
			include_once CHEMIN_CONTROLEUR.'gtt_controleur_admin_categorie.php';
-
 
116
			$text = traiterAdminCategorie();
117
			$text = traiterAdminCategorie();
117
			break;
118
			break;
118
		
Line 119... Line 119...
119
		
119
		// Cas afficher menu admin motif absence 17 
120
		// Cas afficher menu admin motif absence 17 
120
		case GESTION_ADMIN_MOTIF_ABSENCE :
-
 
121
			include_once CHEMIN_CONTROLEUR.'gtt_controleur_admin_motif_absence.php';
121
		case GESTION_ADMIN_MOTIF_ABSENCE :
122
			$text = traiterAdminMotif();
122
			$text = traiterAdminMotif();
123
			break;
Line 123... Line 124...
123
			break;
124
		
124
		
125
		// Cas afficher menu admin statut 18
-
 
126
		case GESTION_ADMIN_STATUT :
125
		// Cas afficher menu admin statut 18
127
			include_once CHEMIN_CONTROLEUR.'gtt_controleur_admin_statut.php';
126
		case GESTION_ADMIN_STATUT :
128
			$text = traiterAdminStatut();
Line 127... Line 129...
127
			$text = traiterAdminStatut();
129
			break;
128
			break;
130
		
129
		
131
		// Cas afficher admin editer frais 19 
130
		// Cas afficher admin editer frais 19 
132
		case GESTION_ADMIN_FRAIS :
Line 131... Line 133...
131
		case GESTION_ADMIN_FRAIS :
133
		
132
			$text = '';
134
			$text = '';
-
 
135
			break;
-
 
136
		
133
			break;
137
		// Cas afficher admin editer taches 20
134
		
138
		case GESTION_ADMIN_TACHE :
Line 135... Line 139...
135
		// Cas afficher admin editer taches 20
139
			$text = '';
136
		case GESTION_ADMIN_TACHE :
140
			break;