From 23b833a26e5ea179a38401a08fa60411e1f13edc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 18 Jul 2005 21:23:55 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Probl=E8me=20alignement=20tableau?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/propal.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 06a64fbe973..f88d2d2d8c9 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -460,40 +460,49 @@ if ($_GET['propalid']) print ''; print ''; - // Receiver + // Destinataire $langs->load('mails'); print ''; print ''.$langs->trans('MailTo').''; - print ''; $dests=$societe->contact_array($societe->id); $numdest = count($dests); if ($numdest==0) { + print ''; print 'Cette societe n\'a pas de contact, veuillez en créer un avant de faire votre proposition commerciale
'; print ''.$langs->trans('AddContact').''; + print ''; } else { if ($propal->statut == 0 && $user->rights->propale->creer) { + print ''; print '
'; print ''; $form->select_contacts($societe->id, $propal->contactid, 'contactidp'); + print ''; print ''; print '
'; + print ''; } else { if (!empty($propal->contactid)) { + print ''; require_once(DOL_DOCUMENT_ROOT.'/contact.class.php'); $contact=new Contact($db); $contact->fetch($propal->contactid); print ''; print $contact->firstname.' '.$contact->name; print ''; + print ''; } + else { + print ' '; + } } } print ''; @@ -508,9 +517,9 @@ if ($_GET['propalid']) print ''.$langs->trans('Project').''; $langs->load('projects'); $numprojet = $societe->has_projects(); - print ''; if (! $numprojet) { + print ''; print $langs->trans("NoProject").''; print 'id.'&action=create>'.$langs->trans('AddProject').''; print ''; @@ -519,10 +528,11 @@ if ($_GET['propalid']) { if ($propal->statut == 0 && $user->rights->propale->creer) { - print ''; + print ''; print '
'; print ''; $form->select_projects($societe->id, $propal->projetidp, 'projetidp'); + print ''; print ''; print '
'; print ''; @@ -683,7 +693,7 @@ if ($_GET['propalid']) } print ''; } - // Update ligne de facture + // Update ligne de propal // \todo