From 9ce9bc56b378d69095dcb568be7a2bcb3e474202 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 11 Aug 2003 19:30:45 +0000 Subject: [PATCH] =?UTF-8?q?Suppression=20de=20la=20gestion=20des=20options?= =?UTF-8?q?=20comm=20et=20compta=20Ces=20options=20sont=20mises=20=E0=201?= =?UTF-8?q?=20par=20d=E9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/user/fiche.php3 | 65 +----------------------------------------- 1 file changed, 1 insertion(+), 64 deletions(-) diff --git a/htdocs/user/fiche.php3 b/htdocs/user/fiche.php3 index 0b008ca608a..707b07b49df 100644 --- a/htdocs/user/fiche.php3 +++ b/htdocs/user/fiche.php3 @@ -61,25 +61,6 @@ if ($HTTP_POST_VARS["action"] == 'add' && $user->admin) $edituser->admin = $HTTP_POST_VARS["admin"]; $edituser->webcal_login = $HTTP_POST_VARS["webcal_login"]; - if (isset($HTTP_POST_VARS["module_compta"]) && $HTTP_POST_VARS["module_compta"] ==1) - { - $edituser->compta = 1; - } - else - { - $edituser->compta = 0; - } - - if (isset($HTTP_POST_VARS["module_comm"]) && $HTTP_POST_VARS["module_comm"] ==1) - { - $edituser->comm = 1; - } - else - { - $edituser->comm = 0; - } - - //$id = $edituser->create($user->id); $id = $edituser->create(); if (isset($_POST['password']) && $_POST['password']!='' ){ $edituser->password($_POST['password'],$conf->password_encrypted); @@ -99,25 +80,6 @@ if ($_POST["action"] == 'update' && $user->admin) $edituser->admin = $_POST["admin"]; $edituser->webcal_login = $_POST["webcal_login"]; - if (isset($_POST["module_compta"]) && $_POST["module_compta"] ==1) - { - $edituser->compta = 1; - } - else - { - $edituser->compta = 0; - } - - if (isset($_POST["module_comm"]) && $_POST["module_comm"] ==1) - { - $edituser->comm = 1; - } - else - { - $edituser->comm = 0; - } - - // if (! $edituser->update($id, $user)) if (! $edituser->update()) { print $edituser->error(); @@ -179,16 +141,6 @@ if ($action == 'create') print 'Login Webcal'; print ''; - print 'Module Commercial ?'; - print ''; - $form->checkbox('module_comm',0,1); - print ''; - - print 'Module Compta ?'; - print ''; - $form->checkbox('module_compta',0,1); - print ''; - print 'Note'; print ""; @@ -238,7 +190,7 @@ else print 'Prénom'; print ''.$fuser->prenom.''; - print ''; + print ''; /* * Droits */ @@ -276,11 +228,6 @@ else print 'Administrateur'; print ''.$yn[$fuser->admin].''; - print 'Module Compta'; - print ''.$yn[$fuser->compta].' '; - print 'Module Commercial'; - print ''.$yn[$fuser->comm].''; - print 'Id Société'; print ''.$fuser->societe_id.' '; print ''; @@ -375,16 +322,6 @@ else print 'Login Webcal'; print ''; - print 'Module Commercial ?'; - print ''; - $form->checkbox('module_comm',$fuser->comm,1); - print ''; - - print 'Module Compta ?'; - print ''; - $form->checkbox('module_compta',$fuser->compta,1); - print ''; - print 'Description'; print "