Subversion Repositories Applications.gtt

Compare Revisions

Ignore whitespace Rev 4 → Rev 5

/trunk/presentation/gtt_fonctions_generique_affichage.php
35,8 → 35,8
// +------------------------------------------------------------------------------------------------------+
 
//include_once 'gtt_config.inc.php';
include_once CHEMIN_CLASSES_METIER.'gtt_utilisateur.class.php';
include_once CHEMIN_LANGUES.'gtt_langue_fr.inc.php';
require_once CHEMIN_CLASSES_METIER.'gtt_utilisateur.class.php';
require_once CHEMIN_LANGUES.'gtt_langue_fr.inc.php';
 
 
 
73,7 → 73,7
*/
function creerEntetePage($nom)
{
$entete ='<?xml version="1.0" encoding="ISO-8859-1" ?>'."\n";
$entete ='<?xml version="1.0" encoding="ISO-8859-15" ?>'."\n";
$entete .='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />'."\n";
$entete .='<html xmlns="http://www.w3.org/1999/xhtml/" >'."\n";
$entete .=' <head>'."\n";
171,49 → 171,48
return $zoneOption;
}
/**
* fonction affichant les options
*@param identifiant d'un utilisateur
*renvoie un formulaire sous forme html
*/
* fonction affichant les options
*@param identifiant d'un utilisateur
*renvoie un formulaire sous forme html
*/
function afficherOptionAplication($user)
{
$id="MENU_OPTION";
$size=15;
$assoc1=array('class'=>$id);
$form=new HTML_QuickForm('gestion_option', 'post','','', $assoc1);
//ajout d'element
//projets de l'utilisateur
$ligneEditerPref = &HTML_QuickForm::createElement('link', 'btn_editer_pref','',$GLOBALS['urlBase'].GESTION_EDITER_PREFERENCES,GESTION_MES_PROJETS_L,$assoc1);
$form->addElement($ligneEditerPref);
//travail
$ligneTravail=&HTML_QuickForm::createElement('link', 'btn_editer_travail','',$GLOBALS['urlBase'].GESTION_TRAVAIL,GTT_L_ME_TRAVAIL,$assoc1);
$form->addElement($ligneTravail);
//administration
$user1=&Utilisateur::recupererUtilisateur($user);
if ($user1->isAdmin()==1)
{
$ligneAdmin=&HTML_QuickForm::createElement('link', 'btn_admin','',$GLOBALS['urlBase'].GESTION_ADMIN_UTILISATEUR,GTT_L_ME_ADMINISTRATION,$assoc1);
$form->addElement($ligneAdmin);
}
 
$ligneDeconnexion=&HTML_QuickForm::createElement('link', 'btn_deconnexion','',$GLOBALS['urlBase'].GESTION_DECONNEXION,GTT_L_ME_DECONNECTION,$assoc1);
$form->addElement($ligneDeconnexion);
 
return $form->toHtml();
$id = 'MENU_OPTION';
$size = 15;
$assoc1 = array('class'=>$id);
$form = new HTML_QuickForm('gestion_option', 'post','','', $assoc1);
//ajout d'element
//projets de l'utilisateur
$ligneEditerPref = &HTML_QuickForm::createElement('link', 'btn_editer_pref','',$GLOBALS['urlBase'].GESTION_EDITER_PREFERENCES,GESTION_MES_PROJETS_L,$assoc1);
$form->addElement($ligneEditerPref);
//travail
$ligneTravail=&HTML_QuickForm::createElement('link', 'btn_editer_travail','',$GLOBALS['urlBase'].GESTION_TRAVAIL,GTT_L_ME_TRAVAIL,$assoc1);
$form->addElement($ligneTravail);
//administration
$user1=&Utilisateur::recupererUtilisateur($user);
if ($user1->isAdmin() == 1) {
$ligneAdmin=&HTML_QuickForm::createElement('link', 'btn_admin','',$GLOBALS['urlBase'].GESTION_ADMIN_UTILISATEUR,GTT_L_ME_ADMINISTRATION,$assoc1);
$form->addElement($ligneAdmin);
}
$ligneDeconnexion =& HTML_QuickForm::createElement('link', 'btn_deconnexion','',$GLOBALS['urlBase'].GESTION_DECONNEXION,GTT_L_ME_DECONNECTION,$assoc1);
$form->addElement($ligneDeconnexion);
return $form->toHtml();
}
/**
*fonctions creant la liste des options disponibles
*nouveau formulaire avec la liste des optiosn disponibles
*/
function creerFormulaireOptionAdmin()
{
/**
*fonctions creant la liste des options disponibles
*nouveau formulaire avec la liste des optiosn disponibles
*/
function creerFormulaireOptionAdmin()
{
$id = 'LISTE_OPTION_ADMIN';
$size=7;
$assoc =array ('class'=>$id, 'size'=>$size);
$id="LISTE_OPTION_ADMIN";
$size=7;
$assoc =array ('class'=>$id, 'size'=>$size);
$form=new HTML_QuickForm('liste_options_admin', 'post','','',$assoc);
//liste des elements : categorie