Fix: Respect W3C.

This commit is contained in:
Laurent Destailleur 2005-07-16 11:21:08 +00:00
parent 506a5de072
commit 1ef07971da
6 changed files with 109 additions and 94 deletions

View File

@ -157,7 +157,7 @@ if ($mil->fetch($_GET["id"]) == 0)
print '<tr><td width="25%">'.$langs->trans("MailFrom").'</td><td colspan="3">'.htmlentities($mil->email_from).'</td></tr>';
print '<tr><td width="25%">'.$langs->trans("TotalNbOfDistinctRecipients").'</td><td colspan="3">'.($mil->nbemail?$mil->nbemail:'<font class="error">'.$langs->trans("NoTargetYet").'</font>').'</td></tr>';
print '<tr><td width="25%">'.$langs->trans("Status").'</td><td colspan="3">'.$mil->statuts[$mil->statut].'</td></tr>';
print '</table><br>';
print '</table>';
print "</div>";

View File

@ -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 '<br>';
}
// 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 '<br>';
}
// 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 '<br>';
}
@ -325,7 +328,7 @@ else
print '<tr><td valign="top">'.$langs->trans("MailMessage").'</td><td colspan="3">';
print nl2br($mil->body).'</td></tr>';
print '</table><br>';
print '</table>';
print "</div>";
@ -412,7 +415,7 @@ else
print $mil->body.'</textarea></td></tr>';
print '<tr><td colspan="4" align="center"><input type="submit" value="'.$langs->trans("Save").'"></td></tr>';
print '</table><br>';
print '</table>';
print '</form>';
print "</div>";

View File

@ -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 '<table class="border" width="100%">';
print '<tr><td>'.$langs->trans("Company").'</td><td><a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$projet->societe->id.'">'.$projet->societe->nom.'</a></td></tr>';
print '<tr><td>'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>';
print '</table><br>';
print '</table>';
/*
* 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 '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td width="15%">'.$langs->trans("Ref").'</td><td width="25%">Date</td><td align="right">'.$langs->trans("Amount").'</td><td>&nbsp;</td></tr>';
for ($i = 0; $i<sizeof($commandes);$i++)
print '<br>';
print_titre('Listes des commandes associées au projet');
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td width="15%">'.$langs->trans("Ref").'</td><td width="25%">Date</td><td align="right">'.$langs->trans("Amount").'</td><td>&nbsp;</td></tr>';
for ($i = 0; $i<sizeof($commandes);$i++)
{
$commande = new Commande($db);
$commande->fetch($commandes[$i]);
$var=!$var;
print "<tr $bc[$var]>";
print "<td><a href=\"../commande/fiche.php?id=$commande->id\">$commande->ref</a></td>\n";
print '<td>'.strftime("%d %B %Y",$commande->date).'</td>';
print '<td align="right">'.price($commande->total_ht).'</td><td>&nbsp;</td></tr>';
$total = $total + $commande->total_ht;
$commande = new Commande($db);
$commande->fetch($commandes[$i]);
$var=!$var;
print "<tr $bc[$var]>";
print "<td><a href=\"../commande/fiche.php?id=$commande->id\">$commande->ref</a></td>\n";
print '<td>'.strftime("%d %B %Y",$commande->date).'</td>';
print '<td align="right">'.price($commande->total_ht).'</td><td>&nbsp;</td></tr>';
$total = $total + $commande->total_ht;
}
print '<tr><td colspan="2">'.$i.' '.$langs->trans("Orders").'</td>';
print '<td align="right">'.$langs->trans("TotalHT").': '.price($total).'</td>';
print '<td align="left">'.$langs->trans("Currency".$conf->monnaie).'</td></tr>';
print "</table>";
print '<tr><td colspan="2">'.$i.' '.$langs->trans("Orders").'</td>';
print '<td align="right">'.$langs->trans("TotalHT").': '.price($total).'</td>';
print '<td align="left">'.$langs->trans("Currency".$conf->monnaie).'</td></tr>';
print "</table>";
}
print '</div>';
$db->close();
llxFooter('$Date$ - $Revision$');

View File

@ -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 '<table class="border" width="100%">';
print '<tr><td>'.$langs->trans("Company").'</td><td><a href="'.DOL_URL_ROOT.'/compta/fiche.php?socid='.$projet->societe->id.'">'.$projet->societe->nom.'</a></td></tr>';
print '<tr><td>'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>';
print '</table><br>';
print '</table>';
/*
* 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 '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td width="15%">'.$langs->trans("Ref").'</td><td width="25%">'.$langs->trans("Date").'</td><td align="right">'.$langs->trans("Amount").'</td><td>&nbsp;</td></tr>';
for ($i = 0; $i<sizeof($factures);$i++)
{
$facture = new Facture($db);
$facture->fetch($factures[$i]);
$var=!$var;
print "<tr $bc[$var]>";
print "<td><a href=\"../compta/facture.php?facid=$facture->id\">$facture->ref</a></td>\n";
print '<td>'.strftime("%d %B %Y",$facture->date).'</td>';
print '<td align="right">'.price($facture->total_ht).'</td><td>&nbsp;</td></tr>';
$total = $total + $facture->total_ht;
}
print '<tr><td colspan="2">'.$i.' '.$langs->trans("Bills").'</td>';
print '<td align="right">'.$langs->trans("TotalHT").' : '.price($total).'</td>';
print '<td align="left">'.$langs->trans("Currency".$conf->monnaie).'</td></tr>';
print "</table>";
}
/*
* Factures
*/
$factures = $projet->get_facture_list();
$total = 0;
if (sizeof($factures)>0 && is_array($factures))
{
print '<br>';
print_titre('Listes des factures associées au projet');
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td width="15%">'.$langs->trans("Ref").'</td><td width="25%">'.$langs->trans("Date").'</td><td align="right">'.$langs->trans("Amount").'</td><td>&nbsp;</td></tr>';
for ($i = 0; $i<sizeof($factures);$i++)
{
$facture = new Facture($db);
$facture->fetch($factures[$i]);
$var=!$var;
print "<tr $bc[$var]>";
print "<td><a href=\"../compta/facture.php?facid=$facture->id\">$facture->ref</a></td>\n";
print '<td>'.strftime("%d %B %Y",$facture->date).'</td>';
print '<td align="right">'.price($facture->total_ht).'</td><td>&nbsp;</td></tr>';
$total = $total + $facture->total_ht;
}
print '<tr><td colspan="2">'.$i.' '.$langs->trans("Bills").'</td>';
print '<td align="right">'.$langs->trans("TotalHT").' : '.price($total).'</td>';
print '<td align="left">'.$langs->trans("Currency".$conf->monnaie).'</td></tr>';
print "</table>";
}
print '</div>';
$db->close();

View File

@ -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 '<tr><td>'.$langs->trans("Label").'</td><td><input name="title" value="'.$projet->title.'"></td></tr>';
print '<tr><td align="center" colspan="2"><input name="update" type="submit" Value="'.$langs->trans("Modify").'"> &nbsp; <input type="submit" name="cancel" Value="'.$langs->trans("Cancel").'"></td></tr>';
print '</table>';
print '<br>';
print '</form>';
}
else
@ -183,7 +182,6 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
print '<tr><td>'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>';
print '</table>';
print '<br>';
}
print '</div>';
@ -208,5 +206,5 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
$db->close();
llxFooter("<em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>");
llxFooter('$Date$ - $Revision$');
?>

View File

@ -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 '<table class="border" width="100%">';
print '<tr><td>'.$langs->trans("Company").'</td><td><a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$projet->societe->id.'">'.$projet->societe->nom.'</a></td></tr>';
print '<tr><td>'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>';
print '</table><br>';
print '</table>';
$propales = $projet->get_propal_list();
if (sizeof($propales)>0 && is_array($propales))
{
print_titre('Listes des propositions commerciales associées au projet');
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td width="15%">'.$langs->trans("Ref").'</td><td width="25%">'.$langs->trans("Date").'</td><td align="right">'.$langs->trans("Amount").'</td><td>&nbsp;</td></tr>';
for ($i = 0; $i<sizeof($propales);$i++)
print '<br>';
print_titre('Listes des propositions commerciales associées au projet');
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td width="15%">'.$langs->trans("Ref").'</td><td width="25%">'.$langs->trans("Date").'</td><td align="right">'.$langs->trans("Amount").'</td><td>&nbsp;</td></tr>';
for ($i = 0; $i<sizeof($propales);$i++)
{
$propale = new Propal($db);
$propale->fetch($propales[$i]);
$var=!$var;
print "<tr $bc[$var]>";
print "<td><a href=\"../comm/propal.php?propalid=$propale->id\">$propale->ref</a></td>\n";
print '<td>'.dolibarr_print_date($propale->datep).'</td>';
print '<td align="right">'.price($propale->price).'</td><td>&nbsp;</td></tr>';
$total = $total + $propale->price;
$propale = new Propal($db);
$propale->fetch($propales[$i]);
$var=!$var;
print "<tr $bc[$var]>";
print "<td><a href=\"../comm/propal.php?propalid=$propale->id\">$propale->ref</a></td>\n";
print '<td>'.dolibarr_print_date($propale->datep).'</td>';
print '<td align="right">'.price($propale->price).'</td><td>&nbsp;</td></tr>';
$total = $total + $propale->price;
}
print '<tr><td colspan="2">'.$i.' '.$langs->trans("Proposal").'</td>';
print '<td align="right">'.$langs->trans("TotalHT").': '.price($total).'</td>';
print '<td align="left">'.$langs->trans("Currency".$conf->monnaie).'</td></tr></table>';
print '<tr><td colspan="2">'.$i.' '.$langs->trans("Proposal").'</td>';
print '<td align="right">'.$langs->trans("TotalHT").': '.price($total).'</td>';
print '<td align="left">'.$langs->trans("Currency".$conf->monnaie).'</td></tr></table>';
}
print '</div>';
$db->close();
llxFooter('$Date$ - $Revision$');