Trad: Traduction de toutes les chaines "Mois" dans toutes les pages.
This commit is contained in:
parent
bac25fd037
commit
929750a089
@ -86,8 +86,8 @@ if ($db->query($sql))
|
||||
}
|
||||
|
||||
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre"><td rowspan=2>Mois</td>';
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print '<tr class="liste_titre"><td rowspan=2>'.$langs->trans("Month").'</td>';
|
||||
|
||||
$year_current = strftime("%Y",time());
|
||||
|
||||
|
||||
@ -86,8 +86,8 @@ if ($db->query($sql))
|
||||
}
|
||||
}
|
||||
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre"><td rowspan=2>Mois</td>';
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print '<tr class="liste_titre"><td rowspan=2>'.$langs->trans("Month").'</td>';
|
||||
|
||||
|
||||
if ($year_current < (MAIN_START_YEAR + 2))
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
@ -42,7 +43,7 @@ if ($action == 'update') {
|
||||
|
||||
|
||||
|
||||
print "<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
print "<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\">";
|
||||
print "<tr><td valign=\"top\">";
|
||||
|
||||
$sql = "SELECT amount, int(month) as dm FROM ".MAIN_DB_PREFIX."pointmort ORDER BY month DESC";
|
||||
@ -53,11 +54,11 @@ if ($result) {
|
||||
|
||||
|
||||
|
||||
print "<p><TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
print "<TR bgcolor=\"orange\">";
|
||||
print "<TD>Mois</TD>";
|
||||
print "<TD align=\"right\">Montant</TD>";
|
||||
print "</TR>\n";
|
||||
print "<table class=\"noborder\" cellspacing=\"0\" cellpadding=\"3\">";
|
||||
print "<tr bgcolor=\"orange\">";
|
||||
print "<td>".$langs->trans("Month")."</td>";
|
||||
print "<td align=\"right\">Montant</td>";
|
||||
print "</tr>\n";
|
||||
|
||||
$bc[0]="bgcolor=\"#90c090\"";
|
||||
$bc[1]="bgcolor=\"#b0e0b0\"";
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -75,10 +76,10 @@ function ppt ($db) {
|
||||
$ptmt = pm($db);
|
||||
|
||||
|
||||
print "<p><TABLE border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
|
||||
print "<TR bgcolor=\"orange\">";
|
||||
print "<TABLE class=\"border\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
|
||||
print "<TR class=\"liste_titre\">";
|
||||
print "<TD> </TD>";
|
||||
print "<TD>Mois</TD>";
|
||||
print "<TD>".$langs->trans("Month")."</TD>";
|
||||
print "<TD align=\"right\">CA</TD>";
|
||||
print "<TD align=\"right\">Point mort</TD>";
|
||||
print "<TD align=\"right\">Delta</TD>";
|
||||
|
||||
@ -96,8 +96,8 @@ else {
|
||||
print $db->error();
|
||||
}
|
||||
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre"><td rowspan=2>Mois</td>';
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print '<tr class="liste_titre"><td rowspan=2>'.$langs->trans("Month").'</td>';
|
||||
|
||||
|
||||
if ($year_current < (MAIN_START_YEAR + 2))
|
||||
|
||||
@ -175,7 +175,7 @@ function pt ($db, $sql, $year) {
|
||||
$i = 0; $total = 0 ;
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print "<td>Mois</td>";
|
||||
print '<td>'.$langs->trans("Month").'</td>';
|
||||
print "<td align=\"right\">Montant</td></tr>\n";
|
||||
$var=True;
|
||||
$month = 1 ;
|
||||
@ -282,8 +282,8 @@ function ppt ($db, $year, $socidp)
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print "<td>Mois</TD>";
|
||||
print "<td align=\"right\">Montant</td>";
|
||||
print '<td>'.$langs->trans("Month").'</td>';
|
||||
print '<td align="right">'.$langs->trans("Amount").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
$var = 1 ;
|
||||
|
||||
@ -109,10 +109,10 @@ function pt ($db, $sql, $year) {
|
||||
if ($result) {
|
||||
$num = $db->num_rows();
|
||||
$i = 0; $total = 0 ;
|
||||
print '<p><table class="border" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print "<TR class=\"liste_titre\">";
|
||||
print "<TD>Mois</TD>";
|
||||
print "<td align=\"right\">Montant</td></tr>\n";
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print '<td>'.$langs->trans("Month").'</td>';
|
||||
print '<td align="right">'.$langs->trans("Amount").'</td></tr>';
|
||||
$var=True;
|
||||
$month = 1 ;
|
||||
|
||||
@ -122,22 +122,22 @@ function pt ($db, $sql, $year) {
|
||||
|
||||
if ($obj->dm > $month ) {
|
||||
for ($b = $month ; $b < $obj->dm ; $b++) {
|
||||
print "<TR $bc[$var]>";
|
||||
print "<TD>".strftime("%B",mktime(12,0,0,$b, 1, $year))."</TD>\n";
|
||||
print "<TD align=\"right\">0</TD>\n";
|
||||
print "</TR>\n";
|
||||
print "<tr $bc[$var]>";
|
||||
print "<td>".strftime("%B",mktime(12,0,0,$b, 1, $year))."</td>\n";
|
||||
print "<td align=\"right\">0</td>\n";
|
||||
print "</tr>\n";
|
||||
$var=!$var;
|
||||
$ca[$b] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if ($obj->sum > 0) {
|
||||
print "<TR $bc[$var]>";
|
||||
print "<tr $bc[$var]>";
|
||||
print "<td>";
|
||||
print strftime("%B",mktime(12,0,0,$obj->dm, 1, $year))."</TD>\n";
|
||||
print "<TD align=\"right\">".price($obj->sum)."</TD>\n";
|
||||
print strftime("%B",mktime(12,0,0,$obj->dm, 1, $year))."</td>\n";
|
||||
print "<td align=\"right\">".price($obj->sum)."</td>\n";
|
||||
|
||||
print "</TR>\n";
|
||||
print "</tr>\n";
|
||||
$month = $obj->dm + 1;
|
||||
$ca[$obj->dm] = $obj->sum;
|
||||
$total = $total + $obj->sum;
|
||||
@ -154,10 +154,10 @@ function pt ($db, $sql, $year) {
|
||||
if ($beg <= 12 ) {
|
||||
for ($b = $beg + 1 ; $b < 13 ; $b++) {
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
print "<TD>".strftime("%B",mktime(12,0,0,$b, 1, $year))."</TD>\n";
|
||||
print "<TD align=\"right\">0</TD>\n";
|
||||
print "</TR>\n";
|
||||
print "<tr $bc[$var]>";
|
||||
print "<td>".strftime("%B",mktime(12,0,0,$b, 1, $year))."</td>\n";
|
||||
print "<td align=\"right\">0</td>\n";
|
||||
print "</tr>\n";
|
||||
$ca[$b] = 0;
|
||||
}
|
||||
}
|
||||
@ -219,12 +219,12 @@ function ppt ($db, $year, $socidp)
|
||||
|
||||
print "</td><td valign=\"top\" width=\"30%\">";
|
||||
|
||||
print '<p><table class="border" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print "<TR class=\"liste_titre\">";
|
||||
print "<TD>Mois</TD>";
|
||||
print "<TD align=\"right\">Montant</TD>";
|
||||
print '<td align="right">Cumul</TD>';
|
||||
print "</TR>\n";
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print '<td>'.$langs->trans("Month").'</td>';
|
||||
print '<td align="right">'.$langs->trans("Amount").'</td>';
|
||||
print '<td align="right">Cumul</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
$var = 1 ;
|
||||
for ($b = 1 ; $b <= 12 ; $b++)
|
||||
|
||||
@ -67,7 +67,7 @@ if ($result)
|
||||
}
|
||||
|
||||
print '<table width="100%" class="noborder" cellspacing="0" cellpadding="3">';
|
||||
print '<tr class="liste_titre"><td rowspan="2">Mois</td>';
|
||||
print '<tr class="liste_titre"><td rowspan="2">'.$langs->trans("Month").'</td>';
|
||||
|
||||
$year_current = strftime("%Y",time());
|
||||
$nbyears = 3;
|
||||
|
||||
@ -103,7 +103,7 @@ if ($socidp)
|
||||
}
|
||||
$sql .= " GROUP BY dm DESC";
|
||||
|
||||
pt($db, $sql, "Mois");
|
||||
pt($db, $sql, $langs->trans("Month"));
|
||||
|
||||
print '</td><td valign="top">';
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Xavier DUTOIT <doli@sydesy.com>
|
||||
/* Copyright (C) 2003 Xavier DUTOIT <doli@sydesy.com>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -66,7 +67,7 @@ if (empty($YY))
|
||||
echo "<div class='noprint'>";
|
||||
echo "\n<form action='rapport.php'>";
|
||||
echo "<input type='hidden' name='socid' value='$socid'>";
|
||||
echo "Mois <input name='MM' size='2' value='$MM'>";
|
||||
echo $langs->trans("Month")." <input name='MM' size='2' value='$MM'>";
|
||||
echo " Année <input size='4' name='YY' value='$YY'>";
|
||||
echo "<input type='submit' name='g' value='Genérer le rapport'>";
|
||||
echo "<form>";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user