From d1bb9b091876c4b354ce4640ec925aec69bf489a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 4 Feb 2005 10:42:37 +0000 Subject: [PATCH] Ajout titre de la fenetre --- htdocs/user/fiche.php | 80 ++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 42 deletions(-) diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index 093def250f9..8b1fd9e70fd 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2002-2005 Rodolphe Quiedeville * Copyright (C) 2002-2003 Jean-Louis Bergamo * Copyright (C) 2004-2005 Laurent Destailleur * Copyright (C) 2004 Eric Seigne @@ -155,17 +155,15 @@ if ($_GET["action"] == 'password' && $user->admin) } -llxHeader(); - - -/* ************************************************************************** */ -/* */ -/* Affichage fiche en mode création */ -/* */ -/* ************************************************************************** */ +llxHeader('','Fiche Utilisateur'); if ($action == 'create') { + /* ************************************************************************** */ + /* */ + /* Affichage fiche en mode création */ + /* */ + /* ************************************************************************** */ print_titre($langs->trans("NewUser")); @@ -212,15 +210,14 @@ if ($action == 'create') print ""; print "\n"; } - - -/* ************************************************************************** */ -/* */ -/* Visu et edition */ -/* */ -/* ************************************************************************** */ else { + /* ************************************************************************** */ + /* */ + /* Visu et edition */ + /* */ + /* ************************************************************************** */ + if ($_GET["id"]) { $fuser = new User($db, $_GET["id"]); @@ -273,10 +270,8 @@ else /* * Ecran ajout/suppression permission */ - print ''; - // Droits existant print "".''; } - + if ($_GET["action"] != 'perms' && $_GET["action"] != 'edit') { @@ -357,12 +353,13 @@ else print ''; print ''; print ''; @@ -428,8 +425,8 @@ else print "\n"; - if ($message) { print $message; } - + if ($message) { print $message; } + /* * Barre d'actions * @@ -462,7 +459,7 @@ else if ($_GET["action"] == 'edit' && $user->admin) { - print ''; + print ''; print ''; print '
'; print ''; @@ -337,13 +332,14 @@ else $i++; } } - else { - dolibarr_print_error($db); - } + else + { + dolibarr_print_error($db); + } print '
'; print '
'.$fuser->nom.''; if (file_exists($conf->users->dir_output."/".$fuser->id.".jpg")) - { - print ''; - } - else { - print ''; - } + { + print ''; + } + else + { + print ''; + } print '
'.$langs->trans("Firstname").'
'; @@ -470,14 +467,15 @@ else print ''; print ''; - + print "".''; print ''; @@ -502,7 +500,7 @@ else } print "".'"; @@ -515,10 +513,8 @@ else print '
'; if (file_exists($conf->users->dir_output."/".$fuser->id.".jpg")) - { - print ''; - } - else { - print ''; - } + { + print ''; + } + else + { + print ''; + } print '
'.$langs->trans("Firstname").'
'.$langs->trans("Note").''; - print "

'; print ''; - - + } - } }