Fix: Remove usage of pdate()

This commit is contained in:
Laurent Destailleur 2010-01-14 19:50:16 +00:00
parent 7b6c2a67da
commit cf08b35bd0
4 changed files with 20 additions and 20 deletions

View File

@ -308,8 +308,8 @@ if ($result)
$cotisationstatic->ref=$objp->crowid; $cotisationstatic->ref=$objp->crowid;
$cotisationstatic->id=$objp->crowid; $cotisationstatic->id=$objp->crowid;
print '<td>'.$cotisationstatic->getNomUrl(1).'</td>'; print '<td>'.$cotisationstatic->getNomUrl(1).'</td>';
print '<td align="center">'.dol_print_date($this->db->jdate($objp->dateadh),'day')."</td>\n"; print '<td align="center">'.dol_print_date($db->jdate($objp->dateadh),'day')."</td>\n";
print '<td align="center">'.dol_print_date($this->db->jdate($objp->datef),'day')."</td>\n"; print '<td align="center">'.dol_print_date($db->jdate($objp->datef),'day')."</td>\n";
print '<td align="right">'.price($objp->cotisation).'</td>'; print '<td align="right">'.price($objp->cotisation).'</td>';
if ($conf->banque->enabled && $conf->global->ADHERENT_BANK_USE) if ($conf->banque->enabled && $conf->global->ADHERENT_BANK_USE)
{ {

View File

@ -340,7 +340,7 @@ if ($resql)
} }
// Date // Date
print '<td align="center">'.dol_print_date($this->db->jdate($objp->datem),'day')."</td>\n"; print '<td align="center">'.dol_print_date($db->jdate($objp->datem),'day')."</td>\n";
// Duration // Duration
if ($conf->service->enabled && $type != 0) if ($conf->service->enabled && $type != 0)

View File

@ -63,22 +63,22 @@ if ( $db->query( $sql) )
$bc[0]='bgcolor="#f0f0f0"'; $bc[0]='bgcolor="#f0f0f0"';
while ($i < $num) while ($i < $num)
{ {
$objp = $db->fetch_object( $i); $objp = $db->fetch_object( $i);
$var=!$var; $var=!$var;
print "<TR $bc[$var]>"; print "<TR $bc[$var]>";
if ($objp->public) if ($objp->public)
{ {
print "<td>".$objp->prenom." ".$objp->nom." ".$objp->societe."</td>\n"; print "<td>".$objp->prenom." ".$objp->nom." ".$objp->societe."</td>\n";
} }
else else
{ {
print "<td>Anonyme Anonyme</td>\n"; print "<td>Anonyme Anonyme</td>\n";
} }
print "<td>".dol_print_date($this->db->jdate($objp->datedon))."</td>\n"; print "<td>".dol_print_date($db->jdate($objp->datedon))."</td>\n";
print '<td align="right">'.number_format($objp->amount,2,'.',' ').' '.$langs->trans("Currency".$conf->monnaie).'</td>'; print '<td align="right">'.number_format($objp->amount,2,'.',' ').' '.$langs->trans("Currency".$conf->monnaie).'</td>';
print "</tr>"; print "</tr>";
$i++; $i++;
} }
print "</table>"; print "</table>";

View File

@ -149,8 +149,8 @@ foreach ($accounts as $account)
{ {
$num = $db->num_rows($resql); $num = $db->num_rows($resql);
$row = $db->fetch_row($resql); $row = $db->fetch_row($resql);
$min = $this->db->jdate($row[0]); $min = $db->jdate($row[0]);
$max = $this->db->jdate($row[1]); $max = $db->jdate($row[1]);
} }
else else
{ {