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("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("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 '<tr><td width="25%">'.$langs->trans("Status").'</td><td colspan="3">'.$mil->statuts[$mil->statut].'</td></tr>';
print '</table><br>'; print '</table>';
print "</div>"; print "</div>";

View File

@ -267,18 +267,21 @@ else
if ($_GET["action"] == 'valide') if ($_GET["action"] == 'valide')
{ {
$html->form_confirm("fiche.php?id=".$mil->id,$langs->trans("ValidMailing"),$langs->trans("ConfirmValidMailing"),"confirm_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 // Confirmation de l'approbation du mailing
if ($_GET["action"] == 'approve') if ($_GET["action"] == 'approve')
{ {
$html->form_confirm("fiche.php?id=".$mil->id,"Approuver le mailing","Confirmez-vous l'approbation du mailing ?","confirm_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 // Confirmation de la suppression
if ($_GET["action"] == 'delete') if ($_GET["action"] == 'delete')
{ {
$html->form_confirm("fiche.php?id=".$mil->id,$langs->trans("DeleteAMailing"),$langs->trans("ConfirmDeleteMailing"),"confirm_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 '<tr><td valign="top">'.$langs->trans("MailMessage").'</td><td colspan="3">';
print nl2br($mil->body).'</td></tr>'; print nl2br($mil->body).'</td></tr>';
print '</table><br>'; print '</table>';
print "</div>"; print "</div>";
@ -412,7 +415,7 @@ else
print $mil->body.'</textarea></td></tr>'; print $mil->body.'</textarea></td></tr>';
print '<tr><td colspan="4" align="center"><input type="submit" value="'.$langs->trans("Save").'"></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 '</form>';
print "</div>"; print "</div>";

View File

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

View File

@ -21,7 +21,8 @@
* *
*/ */
/** \file htdocs/projet/facture.php /**
\file htdocs/projet/facture.php
\ingroup projet facture \ingroup projet facture
\brief Page des factures par projet \brief Page des factures par projet
\version $Revision$ \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("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("Ref").'</td><td>'.$projet->ref.'</td></tr>';
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>'; print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>';
print '</table><br>'; print '</table>';
/* /*
* Factures * Factures
* */
*/ $factures = $projet->get_facture_list();
$factures = $projet->get_facture_list(); $total = 0;
$total = 0; if (sizeof($factures)>0 && is_array($factures))
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_titre('Listes des factures associées au projet');
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>'; print '<table class="noborder" width="100%">';
for ($i = 0; $i<sizeof($factures);$i++) 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>';
$facture = new Facture($db);
$facture->fetch($factures[$i]);
$var=!$var; for ($i = 0; $i<sizeof($factures);$i++)
print "<tr $bc[$var]>"; {
print "<td><a href=\"../compta/facture.php?facid=$facture->id\">$facture->ref</a></td>\n"; $facture = new Facture($db);
print '<td>'.strftime("%d %B %Y",$facture->date).'</td>'; $facture->fetch($factures[$i]);
print '<td align="right">'.price($facture->total_ht).'</td><td>&nbsp;</td></tr>';
$total = $total + $facture->total_ht; $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>';
print '<tr><td colspan="2">'.$i.' '.$langs->trans("Bills").'</td>'; $total = $total + $facture->total_ht;
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("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(); $db->close();

View File

@ -21,11 +21,11 @@
* *
*/ */
/*! /**
\file htdocs/projet/fiche.php \file htdocs/projet/fiche.php
\ingroup projet \ingroup projet
\brief Fiche projet \brief Fiche projet
\version $Revision$ \version $Revision$
*/ */
require("./pre.inc.php"); 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>'.$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 '<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 '</table>';
print '<br>';
print '</form>'; print '</form>';
} }
else 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("Ref").'</td><td>'.$projet->ref.'</td></tr>';
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>'; print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>';
print '</table>'; print '</table>';
print '<br>';
} }
print '</div>'; print '</div>';
@ -208,5 +206,5 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
$db->close(); $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 \ingroup projet propale
\brief Page des propositions commerciales par projet \brief Page des propositions commerciales par projet
\version $Revision$ \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("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("Ref").'</td><td>'.$projet->ref.'</td></tr>';
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>'; print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>';
print '</table><br>'; print '</table>';
$propales = $projet->get_propal_list(); $propales = $projet->get_propal_list();
if (sizeof($propales)>0 && is_array($propales)) if (sizeof($propales)>0 && is_array($propales))
{ {
print_titre('Listes des propositions commerciales associées au projet'); print '<br>';
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">'; print_titre('Listes des propositions commerciales associées au projet');
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>'; print '<table class="noborder" width="100%">';
for ($i = 0; $i<sizeof($propales);$i++) 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 = new Propal($db);
$propale->fetch($propales[$i]); $propale->fetch($propales[$i]);
$var=!$var; $var=!$var;
print "<tr $bc[$var]>"; print "<tr $bc[$var]>";
print "<td><a href=\"../comm/propal.php?propalid=$propale->id\">$propale->ref</a></td>\n"; 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>'.dolibarr_print_date($propale->datep).'</td>';
print '<td align="right">'.price($propale->price).'</td><td>&nbsp;</td></tr>'; print '<td align="right">'.price($propale->price).'</td><td>&nbsp;</td></tr>';
$total = $total + $propale->price; $total = $total + $propale->price;
} }
print '<tr><td colspan="2">'.$i.' '.$langs->trans("Proposal").'</td>'; print '<tr><td colspan="2">'.$i.' '.$langs->trans("Proposal").'</td>';
print '<td align="right">'.$langs->trans("TotalHT").': '.price($total).'</td>'; print '<td align="right">'.$langs->trans("TotalHT").': '.price($total).'</td>';
print '<td align="left">'.$langs->trans("Currency".$conf->monnaie).'</td></tr></table>'; print '<td align="left">'.$langs->trans("Currency".$conf->monnaie).'</td></tr></table>';
} }
print '</div>';
$db->close(); $db->close();
llxFooter('$Date$ - $Revision$'); llxFooter('$Date$ - $Revision$');