Skip to content
Snippets Groups Projects
Commit f50f4ee1 authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Modif

parent c129b772
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,17 @@ if ( $re2sql ) ...@@ -43,6 +43,17 @@ if ( $re2sql )
{ {
$row = $db->fetch_row($re2sql); $row = $db->fetch_row($re2sql);
$sqlc = "SELECT count(*)";
$sqlc .= " FROM ".MAIN_DB_PREFIX."telephonie_communications_details";
$sqlc .= " WHERE ligne = '".$row[0]."'";
$resqlc = $db->query($sqlc) ;
if ( $resqlc )
{
$rowc = $db->fetch_row($resqlc);
if ($rowc[0] > 0)
{
$sqlm = "SELECT unix_timestamp(max(date)) as md"; $sqlm = "SELECT unix_timestamp(max(date)) as md";
$sqlm .= " FROM ".MAIN_DB_PREFIX."telephonie_communications_details"; $sqlm .= " FROM ".MAIN_DB_PREFIX."telephonie_communications_details";
$sqlm .= " WHERE ligne = '".$row[0]."'"; $sqlm .= " WHERE ligne = '".$row[0]."'";
...@@ -52,9 +63,10 @@ if ( $re2sql ) ...@@ -52,9 +63,10 @@ if ( $re2sql )
if ( $resqlm ) if ( $resqlm )
{ {
$rowm = $db->fetch_row($resqlm); $rowm = $db->fetch_row($resqlm);
if ($rowm[0] > '1970-01-01')
{ print $row[0]." ".strftime("%d/%m/%Y",$rowm[0])." ".$rowc[0]."\n";
print $row[0]." ".strftime("%d/%m/%Y",$rowm[0])."\n";
}
} }
} }
$j++; $j++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment