From 70ae7b6686562650e6fe1ac5b173b4e840f87a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Wed, 18 Sep 2013 14:55:25 +0200 Subject: [PATCH] facto --- htdocs/adherents/document.php | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/htdocs/adherents/document.php b/htdocs/adherents/document.php index f084164efe3..3eb7ac331a8 100644 --- a/htdocs/adherents/document.php +++ b/htdocs/adherents/document.php @@ -165,23 +165,10 @@ if ($id > 0) print ''; - /* - * Confirmation suppression fichier - */ - if ($action == 'delete') - { - print $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&urlfile='.urlencode(GETPOST("urlfile")), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile', '', 0, 1); - } - - - // Affiche formulaire upload - $formfile=new FormFile($db); - $formfile->form_attach_new_file(DOL_URL_ROOT.'/adherents/document.php?id='.$object->id,'',0,0,$user->rights->adherent->creer,50,$object); - - - // List of document - $formfile->list_of_documents($filearray,$object,'member','', 0, get_exdir($object->id,2,0,1).'/'.$object->id.'/'); - + $modulepart = 'member'; + $permission = $user->rights->adherent->creer; + $param = '&id=' . $object->id; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; print "

"; } else