diff --git a/htdocs/comm/mailing/cibles.php b/htdocs/comm/mailing/cibles.php index 2902bb45dd8..456675533bb 100644 --- a/htdocs/comm/mailing/cibles.php +++ b/htdocs/comm/mailing/cibles.php @@ -157,7 +157,7 @@ if ($mil->fetch($_GET["id"]) == 0) print ''.$langs->trans("MailFrom").''.htmlentities($mil->email_from).''; print ''.$langs->trans("TotalNbOfDistinctRecipients").''.($mil->nbemail?$mil->nbemail:''.$langs->trans("NoTargetYet").'').''; print ''.$langs->trans("Status").''.$mil->statuts[$mil->statut].''; - print '
'; + print ''; print ""; diff --git a/htdocs/comm/mailing/fiche.php b/htdocs/comm/mailing/fiche.php index d2b2b77776d..20614a127b3 100644 --- a/htdocs/comm/mailing/fiche.php +++ b/htdocs/comm/mailing/fiche.php @@ -267,18 +267,21 @@ else if ($_GET["action"] == 'valide') { $html->form_confirm("fiche.php?id=".$mil->id,$langs->trans("ValidMailing"),$langs->trans("ConfirmValidMailing"),"confirm_valide"); + print '
'; } // Confirmation de l'approbation du mailing if ($_GET["action"] == 'approve') { $html->form_confirm("fiche.php?id=".$mil->id,"Approuver le mailing","Confirmez-vous l'approbation du mailing ?","confirm_approve"); + print '
'; } // Confirmation de la suppression if ($_GET["action"] == 'delete') { $html->form_confirm("fiche.php?id=".$mil->id,$langs->trans("DeleteAMailing"),$langs->trans("ConfirmDeleteMailing"),"confirm_delete"); + print '
'; } @@ -325,7 +328,7 @@ else print ''.$langs->trans("MailMessage").''; print nl2br($mil->body).''; - print '
'; + print ''; print ""; @@ -412,7 +415,7 @@ else print $mil->body.''; print ''; - print '
'; + print ''; print ''; print ""; diff --git a/htdocs/projet/commandes.php b/htdocs/projet/commandes.php index 6ef8e6ab489..ad7b1922523 100644 --- a/htdocs/projet/commandes.php +++ b/htdocs/projet/commandes.php @@ -21,7 +21,8 @@ * */ -/** \file htdocs/projet/commandes.php +/** + \file htdocs/projet/commandes.php \ingroup projet commande \brief Page des commandes par projet \version $Revision$ @@ -78,7 +79,7 @@ print ''; print ''; print ''; print ''; -print '
'.$langs->trans("Company").''.$projet->societe->nom.'
'.$langs->trans("Ref").''.$projet->ref.'
'.$langs->trans("Label").''.$projet->title.'

'; +print ''; /* * Commandes @@ -88,32 +89,36 @@ $commandes = $projet->get_commande_list(); $total = 0 ; if (sizeof($commandes)>0 && is_array($commandes)) { - print_titre('Listes des commandes associées au projet'); - print ''; - - print ''; - print ''; - - for ($i = 0; $i'; + + print_titre('Listes des commandes associées au projet'); + print '
'.$langs->trans("Ref").'Date'.$langs->trans("Amount").' 
'; + + print ''; + print ''; + + for ($i = 0; $ifetch($commandes[$i]); - - $var=!$var; - print ""; - print "\n"; - print ''; - print ''; - - $total = $total + $commande->total_ht; + $commande = new Commande($db); + $commande->fetch($commandes[$i]); + + $var=!$var; + print ""; + print "\n"; + print ''; + print ''; + + $total = $total + $commande->total_ht; } - - print ''; - print ''; - print ''; - print "
'.$langs->trans("Ref").'Date'.$langs->trans("Amount").' 
id\">$commande->ref'.strftime("%d %B %Y",$commande->date).''.price($commande->total_ht).' 
id\">$commande->ref'.strftime("%d %B %Y",$commande->date).''.price($commande->total_ht).' 
'.$i.' '.$langs->trans("Orders").''.$langs->trans("TotalHT").': '.price($total).''.$langs->trans("Currency".$conf->monnaie).'
"; + + print ''.$i.' '.$langs->trans("Orders").''; + print ''.$langs->trans("TotalHT").': '.price($total).''; + print ''.$langs->trans("Currency".$conf->monnaie).''; + print ""; } +print ''; + $db->close(); llxFooter('$Date$ - $Revision$'); diff --git a/htdocs/projet/facture.php b/htdocs/projet/facture.php index 595f3abdb35..2a82c6eacdf 100644 --- a/htdocs/projet/facture.php +++ b/htdocs/projet/facture.php @@ -21,7 +21,8 @@ * */ -/** \file htdocs/projet/facture.php +/** + \file htdocs/projet/facture.php \ingroup projet facture \brief Page des factures par projet \version $Revision$ @@ -83,42 +84,45 @@ print ''; print ''; print ''; print ''; -print '
'.$langs->trans("Company").''.$projet->societe->nom.'
'.$langs->trans("Ref").''.$projet->ref.'
'.$langs->trans("Label").''.$projet->title.'

'; +print ''; - /* - * Factures - * - */ - $factures = $projet->get_facture_list(); - $total = 0; - if (sizeof($factures)>0 && is_array($factures)) - { - print_titre('Listes des factures associées au projet'); - print ''; - - print ''; - print ''; - - for ($i = 0; $ifetch($factures[$i]); - - $var=!$var; - print ""; - print "\n"; - print ''; - print ''; - - $total = $total + $facture->total_ht; - } - - print ''; - print ''; - print ''; - print "
'.$langs->trans("Ref").''.$langs->trans("Date").''.$langs->trans("Amount").' 
id\">$facture->ref'.strftime("%d %B %Y",$facture->date).''.price($facture->total_ht).' 
'.$i.' '.$langs->trans("Bills").''.$langs->trans("TotalHT").' : '.price($total).''.$langs->trans("Currency".$conf->monnaie).'
"; - } +/* + * Factures + */ +$factures = $projet->get_facture_list(); +$total = 0; +if (sizeof($factures)>0 && is_array($factures)) +{ + print '
'; + + print_titre('Listes des factures associées au projet'); + print ''; + + print ''; + print ''; + + for ($i = 0; $ifetch($factures[$i]); + + $var=!$var; + print ""; + print "\n"; + print ''; + print ''; + + $total = $total + $facture->total_ht; + } + + print ''; + print ''; + print ''; + print "
'.$langs->trans("Ref").''.$langs->trans("Date").''.$langs->trans("Amount").' 
id\">$facture->ref'.strftime("%d %B %Y",$facture->date).''.price($facture->total_ht).' 
'.$i.' '.$langs->trans("Bills").''.$langs->trans("TotalHT").' : '.price($total).''.$langs->trans("Currency".$conf->monnaie).'
"; +} + +print ''; $db->close(); diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index c8d68bf21e1..6b2ab3f8197 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -21,11 +21,11 @@ * */ -/*! - \file htdocs/projet/fiche.php - \ingroup projet - \brief Fiche projet - \version $Revision$ +/** + \file htdocs/projet/fiche.php + \ingroup projet + \brief Fiche projet + \version $Revision$ */ require("./pre.inc.php"); @@ -171,7 +171,6 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer) print ''.$langs->trans("Label").''; print '   '; print ''; - print '
'; print ''; } else @@ -183,7 +182,6 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer) print ''.$langs->trans("Ref").''.$projet->ref.''; print ''.$langs->trans("Label").''.$projet->title.''; print ''; - print '
'; } print ''; @@ -208,5 +206,5 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer) $db->close(); -llxFooter("Dernière modification $Date$ révision $Revision$"); +llxFooter('$Date$ - $Revision$'); ?> diff --git a/htdocs/projet/propal.php b/htdocs/projet/propal.php index 9e4a0d9ce2c..a629e86885f 100644 --- a/htdocs/projet/propal.php +++ b/htdocs/projet/propal.php @@ -21,7 +21,8 @@ * */ -/** \file htdocs/projet/propal.php +/** + \file htdocs/projet/propal.php \ingroup projet propale \brief Page des propositions commerciales par projet \version $Revision$ @@ -80,38 +81,42 @@ print ''; print ''; print ''; print ''; -print '
'.$langs->trans("Company").''.$projet->societe->nom.'
'.$langs->trans("Ref").''.$projet->ref.'
'.$langs->trans("Label").''.$projet->title.'

'; +print ''; $propales = $projet->get_propal_list(); if (sizeof($propales)>0 && is_array($propales)) { - print_titre('Listes des propositions commerciales associées au projet'); - print ''; - - print ''; - print ''; - - for ($i = 0; $i'; + + print_titre('Listes des propositions commerciales associées au projet'); + print '
'.$langs->trans("Ref").''.$langs->trans("Date").''.$langs->trans("Amount").' 
'; + + print ''; + print ''; + + for ($i = 0; $ifetch($propales[$i]); - - $var=!$var; - print ""; - print "\n"; - - print ''; - - print ''; - $total = $total + $propale->price; + $propale = new Propal($db); + $propale->fetch($propales[$i]); + + $var=!$var; + print ""; + print "\n"; + + print ''; + + print ''; + $total = $total + $propale->price; } - - print ''; - print ''; - print '
'.$langs->trans("Ref").''.$langs->trans("Date").''.$langs->trans("Amount").' 
id\">$propale->ref'.dolibarr_print_date($propale->datep).''.price($propale->price).' 
id\">$propale->ref'.dolibarr_print_date($propale->datep).''.price($propale->price).' 
'.$i.' '.$langs->trans("Proposal").''.$langs->trans("TotalHT").': '.price($total).''.$langs->trans("Currency".$conf->monnaie).'
'; + + print ''.$i.' '.$langs->trans("Proposal").''; + print ''.$langs->trans("TotalHT").': '.price($total).''; + print ''.$langs->trans("Currency".$conf->monnaie).''; } +print ''; + $db->close(); llxFooter('$Date$ - $Revision$');