| Line 33... |
Line 33... |
| 33 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
// +------------------------------------------------------------------------------------------------------+
|
| 34 |
// | INCLUSION DE FICHIERS |
|
34 |
// | INCLUSION DE FICHIERS |
|
| 35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 36... |
Line 36... |
| 36 |
|
36 |
|
| 37 |
//include_once 'gtt_config.inc.php';
|
37 |
//include_once 'gtt_config.inc.php';
|
| 38 |
include_once CHEMIN_CLASSES_METIER.'gtt_utilisateur.class.php';
|
38 |
require_once CHEMIN_CLASSES_METIER.'gtt_utilisateur.class.php';
|
| Line 39... |
Line 39... |
| 39 |
include_once CHEMIN_LANGUES.'gtt_langue_fr.inc.php';
|
39 |
require_once CHEMIN_LANGUES.'gtt_langue_fr.inc.php';
|
| 40 |
|
40 |
|
| Line 71... |
Line 71... |
| 71 |
/*
|
71 |
/*
|
| 72 |
*fonction creant l'entete de tout page web
|
72 |
*fonction creant l'entete de tout page web
|
| 73 |
*/
|
73 |
*/
|
| 74 |
function creerEntetePage($nom)
|
74 |
function creerEntetePage($nom)
|
| 75 |
{
|
75 |
{
|
| 76 |
$entete ='<?xml version="1.0" encoding="ISO-8859-1" ?>'."\n";
|
76 |
$entete ='<?xml version="1.0" encoding="ISO-8859-15" ?>'."\n";
|
| 77 |
$entete .='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />'."\n";
|
77 |
$entete .='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />'."\n";
|
| 78 |
$entete .='<html xmlns="http://www.w3.org/1999/xhtml/" >'."\n";
|
78 |
$entete .='<html xmlns="http://www.w3.org/1999/xhtml/" >'."\n";
|
| 79 |
$entete .=' <head>'."\n";
|
79 |
$entete .=' <head>'."\n";
|
| 80 |
$entete .=' <meta http-equiv="Content-Style-Type" content="text/css" />'."\n";
|
80 |
$entete .=' <meta http-equiv="Content-Style-Type" content="text/css" />'."\n";
|
| 81 |
$entete .=' <link rel="stylesheet" type="text/css" href="'.CHEMIN_CSS.'gtt_vert.css" media="screen" title="Vert" />'."\n";
|
81 |
$entete .=' <link rel="stylesheet" type="text/css" href="'.CHEMIN_CSS.'gtt_vert.css" media="screen" title="Vert" />'."\n";
|
| Line 169... |
Line 169... |
| 169 |
$zoneOption .= ' <!-- Fin zone menu -->'."\n\n";
|
169 |
$zoneOption .= ' <!-- Fin zone menu -->'."\n\n";
|
| Line 170... |
Line 170... |
| 170 |
|
170 |
|
| 171 |
|
171 |
|
| - |
|
172 |
return $zoneOption;
|
| 172 |
return $zoneOption;
|
173 |
}
|
| 173 |
}
|
174 |
|
| 174 |
/**
|
175 |
/**
|
| 175 |
* fonction affichant les options
|
176 |
* fonction affichant les options
|
| 176 |
*@param identifiant d'un utilisateur
|
177 |
*@param identifiant d'un utilisateur
|
| 177 |
*renvoie un formulaire sous forme html
|
178 |
*renvoie un formulaire sous forme html
|
| 178 |
*/
|
179 |
*/
|
| 179 |
function afficherOptionAplication($user)
|
180 |
function afficherOptionAplication($user)
|
| 180 |
{
|
181 |
{
|
| 181 |
$id="MENU_OPTION";
|
182 |
$id = 'MENU_OPTION';
|
| 182 |
$size=15;
|
183 |
$size = 15;
|
| 183 |
$assoc1=array('class'=>$id);
|
184 |
$assoc1 = array('class'=>$id);
|
| 184 |
$form=new HTML_QuickForm('gestion_option', 'post','','', $assoc1);
|
185 |
$form = new HTML_QuickForm('gestion_option', 'post','','', $assoc1);
|
| 185 |
//ajout d'element
|
186 |
//ajout d'element
|
| 186 |
//projets de l'utilisateur
|
187 |
//projets de l'utilisateur
|
| 187 |
$ligneEditerPref = &HTML_QuickForm::createElement('link', 'btn_editer_pref','',$GLOBALS['urlBase'].GESTION_EDITER_PREFERENCES,GESTION_MES_PROJETS_L,$assoc1);
|
188 |
$ligneEditerPref = &HTML_QuickForm::createElement('link', 'btn_editer_pref','',$GLOBALS['urlBase'].GESTION_EDITER_PREFERENCES,GESTION_MES_PROJETS_L,$assoc1);
|
| 188 |
$form->addElement($ligneEditerPref);
|
189 |
$form->addElement($ligneEditerPref);
|
| 189 |
//travail
|
190 |
//travail
|
| 190 |
$ligneTravail=&HTML_QuickForm::createElement('link', 'btn_editer_travail','',$GLOBALS['urlBase'].GESTION_TRAVAIL,GTT_L_ME_TRAVAIL,$assoc1);
|
191 |
$ligneTravail=&HTML_QuickForm::createElement('link', 'btn_editer_travail','',$GLOBALS['urlBase'].GESTION_TRAVAIL,GTT_L_ME_TRAVAIL,$assoc1);
|
| 191 |
$form->addElement($ligneTravail);
|
192 |
$form->addElement($ligneTravail);
|
| 192 |
//administration
|
193 |
//administration
|
| 193 |
$user1=&Utilisateur::recupererUtilisateur($user);
|
- |
|
| 194 |
if ($user1->isAdmin()==1)
|
194 |
$user1=&Utilisateur::recupererUtilisateur($user);
|
| 195 |
{
|
195 |
if ($user1->isAdmin() == 1) {
|
| 196 |
$ligneAdmin=&HTML_QuickForm::createElement('link', 'btn_admin','',$GLOBALS['urlBase'].GESTION_ADMIN_UTILISATEUR,GTT_L_ME_ADMINISTRATION,$assoc1);
|
196 |
$ligneAdmin=&HTML_QuickForm::createElement('link', 'btn_admin','',$GLOBALS['urlBase'].GESTION_ADMIN_UTILISATEUR,GTT_L_ME_ADMINISTRATION,$assoc1);
|
| 197 |
$form->addElement($ligneAdmin);
|
197 |
$form->addElement($ligneAdmin);
|
| 198 |
}
|
198 |
}
|
| 199 |
|
199 |
|
| 200 |
$ligneDeconnexion=&HTML_QuickForm::createElement('link', 'btn_deconnexion','',$GLOBALS['urlBase'].GESTION_DECONNEXION,GTT_L_ME_DECONNECTION,$assoc1);
|
- |
|
| 201 |
$form->addElement($ligneDeconnexion);
|
- |
|
| Line -... |
Line 200... |
| - |
|
200 |
$ligneDeconnexion =& HTML_QuickForm::createElement('link', 'btn_deconnexion','',$GLOBALS['urlBase'].GESTION_DECONNEXION,GTT_L_ME_DECONNECTION,$assoc1);
|
| 202 |
|
201 |
$form->addElement($ligneDeconnexion);
|
| - |
|
202 |
|
| 203 |
return $form->toHtml();
|
203 |
return $form->toHtml();
|
| 204 |
|
204 |
}
|
| 205 |
}
|
205 |
|
| 206 |
/**
|
206 |
/**
|
| 207 |
*fonctions creant la liste des options disponibles
|
207 |
*fonctions creant la liste des options disponibles
|
| 208 |
*nouveau formulaire avec la liste des optiosn disponibles
|
208 |
*nouveau formulaire avec la liste des optiosn disponibles
|
| 209 |
*/
|
- |
|
| 210 |
function creerFormulaireOptionAdmin()
|
209 |
*/
|
| 211 |
{
|
210 |
function creerFormulaireOptionAdmin()
|
| 212 |
|
211 |
{
|
| Line 213... |
Line 212... |
| 213 |
$id="LISTE_OPTION_ADMIN";
|
212 |
$id = 'LISTE_OPTION_ADMIN';
|
| Line 214... |
Line 213... |
| 214 |
$size=7;
|
213 |
$size=7;
|
| 215 |
$assoc =array ('class'=>$id, 'size'=>$size);
|
214 |
$assoc =array ('class'=>$id, 'size'=>$size);
|