From d70eb16ea8dba669bf2501007ef0a91759d88ce5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 25 Feb 2006 14:47:02 +0000 Subject: [PATCH] =?UTF-8?q?Look:=20Modif=20esth=E9tique=20mineure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/apercu.php | 127 ++++++++++++++++--------------------- htdocs/commande/fiche.php | 2 +- 2 files changed, 54 insertions(+), 75 deletions(-) diff --git a/htdocs/commande/apercu.php b/htdocs/commande/apercu.php index 6a340be8e63..6849769c5ab 100644 --- a/htdocs/commande/apercu.php +++ b/htdocs/commande/apercu.php @@ -119,8 +119,8 @@ if ($_GET["id"] > 0) { /* - * Commande - */ + * Commande + */ $sql = 'SELECT s.nom, s.idp, c.amount_ht, c.fk_projet, c.remise, c.tva, c.total_ttc, c.ref, c.fk_statut, '.$db->pdate('c.date_commande').' as dp, c.note,'; $sql.= ' x.firstname, x.name, x.fax, x.phone, x.email, c.fk_user_author, c.fk_user_valid, c.fk_user_cloture, c.date_creation, c.date_valid, c.date_cloture'; @@ -132,81 +132,42 @@ if ($_GET["id"] > 0) { $result = $db->query($sql); - - - - if ($result) { - if ($db->num_rows($result)) { + if ($result) + { + if ($db->num_rows($result)) + { $obj = $db->fetch_object($result); $societe = new Societe($db); $societe->fetch($obj->idp); print ''; - $rowspan=3; - // ligne 1 - // partie Gauche - print ''; - // partie Droite - print ''; - print ''; - print ''; - // ligne 2 - // partie Gauche - print '"; + print ''; + print '"; + + // Ref cde client + print ''; - - // partie Droite - print ''; - print ''; - - // Destinataire - $langs->load('mails'); - // ligne 3 - print ''; - // partie Gauche - print ''; - - $dests=$societe->contact_array($societe->id); - $numdest = count($dests); - print ''; - - // partie Droite sur $rowspan lignes - print ''; + $nbrow=6; + print '"; + - - // ligne 4 + // Client + print ""; + print ''; + print ''; + + // Statut + print ''; + print "\n"; + print ''; + + // Date + print ''; + print "\n"; + print ''; + + // ligne 6 // partie Gauche print ''; - print ''; + print ''; print ''; - // ligne 5 + // ligne 7 // partie Gauche print ''; - print ''; + print ''; print ''; print '
'.$langs->trans('Company').''; - if ($societe->client == 1) - { - $url = DOL_URL_ROOT.'/comm/fiche.php?socid='.$societe->id; - } - else - { - $url = DOL_URL_ROOT.'/comm/prospect/fiche.php?socid='.$societe->id; - } - print ''.$societe->nom.'Conditions de réglement'.' '.'
'.$langs->trans('Date').''; - print dolibarr_print_date($commande->date,'%a %e %B %Y'); + // Reference + print '
'.$langs->trans("Ref")."'.$commande->ref.''.$langs->trans("Source").' : ' . $commande->sources[$commande->source] ; + if ($commande->source == 0) + { + // Propale + $propal = new Propal($db); + $propal->fetch($commande->propale_id); + print ' -> '.$propal->ref.''; + } + print "
'; + print ''; + print '
'; + print $langs->trans('RefCustomer').''; + print '
'; print '
'.$langs->trans('DateEndPropal').''; - if ($commande->fin_validite) { - print dolibarr_print_date($commande->fin_validite,'%a %d %B %Y'); - } else { - print $langs->trans("Unknown"); - } - print '
'.$langs->trans('MailTo').''; - if ($numdest==0) { - print 'Cette societe n\'a pas de contact, veuillez en créer un avant de faire votre proposition commerciale
'; - print ''.$langs->trans('AddContact').''; - } else { - if (!empty($commande->contactid)) { - require_once(DOL_DOCUMENT_ROOT.'/contact.class.php'); - $contact=new Contact($db); - $contact->fetch($commande->contactid); - print ''; - print $contact->firstname.' '.$contact->name; - print ''; - } else { - print ' '; - } - } - print '
'; - + print ''; + print $commande->ref_client; + print ''; /* * Documents @@ -277,19 +238,37 @@ if ($_GET["id"] > 0) { } } } + print "
".$langs->trans("Customer")."'; + print ''.$societe->nom.''; + print '
'.$langs->trans("Status").'".$commande->statuts[$commande->statut]."
'.$langs->trans("Date").'".dolibarr_print_date($commande->date,"%A %d %B %Y")."
'.$langs->trans('GlobalDiscount').''.$commande->remise_percent.'%'.$commande->remise_percent.'%
'.$langs->trans('AmountHT').''.price($commande->price).''.price($commande->price).''.$langs->trans("Currency".$conf->monnaie).'
'; } diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 808160802cf..e2ee99f87df 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -580,7 +580,7 @@ else print ''; // Ref - print ''; + print ''; print ''; print '
'.$langs->trans('Ref').'
'.$langs->trans('Ref').''.$commande->ref.''.$langs->trans('Source').' : ' . $commande->sources[$commande->source] ; if ($commande->source == 0)