From 9f9e40e79b71dc5b638f48b55941e9ef53225415 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 13 Dec 2002 16:51:03 +0000 Subject: [PATCH] *** empty log message *** --- htdocs/user/fiche.php3 | 107 +++++++++++++++++++++++---------------- htdocs/user/pre.inc.php3 | 1 + 2 files changed, 64 insertions(+), 44 deletions(-) diff --git a/htdocs/user/fiche.php3 b/htdocs/user/fiche.php3 index 5525cff5c41..e9562984822 100644 --- a/htdocs/user/fiche.php3 +++ b/htdocs/user/fiche.php3 @@ -1,8 +1,5 @@ - * - * $Id$ - * $Source$ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,6 +15,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * $Id$ + * $Source$ */ require("./pre.inc.php3"); @@ -27,7 +26,8 @@ llxHeader(); $db = new Db(); -if ($action == 'add') { +if ($action == 'add') +{ $service = new Service($db); $service->ref = $ref; @@ -43,7 +43,8 @@ if ($action == 'add') { } -if ($action == 'set_datedeb') { +if ($action == 'set_datedeb') +{ $service = new Service($db); $service->start_comm($id, $user->id, $datedeb); } @@ -62,43 +63,55 @@ if ($action == 'update') { $service->update($id, $user); } -/* - * Nouvel utilisateur - * - * - */ -if ($action == 'create') { - print '
Nouveau service

'; - print '
'; +/* ************************************************************************** */ +/* */ +/* Nouvel utilisateur */ +/* */ +/* ************************************************************************** */ + +if ($action == 'create') +{ + + print '
Nouvel utilisateur

'; + print 'A FINIR !!

'; print ''; - print ''; - print ''; - print ''; + + print ''; + print ''; + print '
Référence
'; - print ''; - print ''; + print ''; + print ''; - print ''; - print ''; + print ''; + print ''; + + print ''; + print ''; + + print ''; + print ''; + print '"; - - print ''; - print ''; - - print ''; + + print ''; print ''; print '
Libelle
Nom'.$user->id.'
Prix
Nom
Prénom
Login
Description'; print "
Commercialisé
'; - -} else { +} +/* ************************************************************************** */ +/* */ +/* Visue et edition */ +/* */ +/* ************************************************************************** */ +else +{ if ($id) { $fuser = new User($db, $id); $fuser->fetch(); @@ -135,33 +148,39 @@ if ($action == 'create') { print '
'; - /* - * - * Mode edition - * - */ + + /* ************************************************************************** */ + /* */ + /* Edition */ + /* */ + /* ************************************************************************** */ if ($action == 'edit') { - print '


Editer la fiche service

'; + print '
Edition de l\'utilisateur

'; print '
'; print ''; print ''; - print ''; - print ''; + print ''; + print ''; + + print ''; + print ''; - print ''; - print ''; + print ''; + print ''; - print ''; - print ''; + print ''; + print ''; + + print '"; - print ''; + print ''; print ''; print '
Référence
Nom'.$user->id.'
Nom
Libelle
Prénom
Prix
Login
Description'; print "
'; } diff --git a/htdocs/user/pre.inc.php3 b/htdocs/user/pre.inc.php3 index d4083249a0e..f49ed3818cf 100644 --- a/htdocs/user/pre.inc.php3 +++ b/htdocs/user/pre.inc.php3 @@ -33,6 +33,7 @@ function llxHeader($head = "", $urlp = "") { $menu = new Menu(); $menu->add("/user/", "Utilisateurs"); + $menu->add_submenu("fiche.php3?&action=create","Nouvel utilisateur"); $menu->add("/info.php3", "Configuration");