coorection porbleme de date

This commit is contained in:
opensides 2004-09-07 10:14:12 +00:00
parent 34fc3489c8
commit ab577a1596

View File

@ -307,11 +307,13 @@ if ($socid > 0)
$var = !$var; $var = !$var;
$obj = $db->fetch_object( $i); $obj = $db->fetch_object( $i);
print "<tr $bc[$var]>"; print "<tr $bc[$var]>";
if ($oldyear == strftime("%Y",$obj->da) ) if ($oldyear == strftime("%Y",$obj->da) )
{ {
print '<td align="center">|</td>'; //print '<td align="center">|</td>';
print '<td align="center">' .strftime("%Y",$obj->da)."</TD>\n";
} }
else else
{ {
@ -319,9 +321,13 @@ if ($socid > 0)
$oldyear = strftime("%Y",$obj->da); $oldyear = strftime("%Y",$obj->da);
} }
if ($oldmonth == strftime("%Y%b",$obj->da) ) { if ($oldmonth == strftime("%Y%b",$obj->da) )
print '<td align="center">|</td>'; {
} else { // print '<td align="center">|</td>';
print "<TD align=\"center\">" .strftime("%b",$obj->da)."</TD>\n";
}
else
{
print "<TD align=\"center\">" .strftime("%b",$obj->da)."</TD>\n"; print "<TD align=\"center\">" .strftime("%b",$obj->da)."</TD>\n";
$oldmonth = strftime("%Y%b",$obj->da); $oldmonth = strftime("%Y%b",$obj->da);
} }