1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
<?php
$sql4 = "select * from neufrgbn where (GROUPE_JURIDICTIONS like 'Internationales et DOM-TOM')
order by POSTE_APPELE asc, DATE_APPEL desc, MONTANT_APPEL asc";
$res4 = mysql_query($sql4) or die('Erreur SQL !<br />'.$sql4.'<br />'.mysql_error());
$sql5 = "select * from autocom5 where ((Coût >'0.00000' and N_composé like '___________') or
(Coût >'0.00000' and N_composé like '___________%')or
(Coût >'0.00000' and N_composé like '06________')
)
order by N_composé asc,Date_________Heure desc, Coût asc ";
$res5 = mysql_query($sql5) or die('Erreur SQL !<br />'.$sql5.'<br />'.mysql_error());
?>
<table border 1>
<center><u><h1>numero international sup a 1<h1></u></center>
<?php
echo '<tr><th>DATE APPEL</th><th>ORIGINE APPEL</th><th>UNITES FACTUREES</th><th>UNITES APPEL</th><th>POSTE APPELE</th>
<th>DESTINATION</th><th>JURIDICTION</th><th>GROUPE JURIDICTIONS</th><th>MONTANT APPEL</th><th>nom</th><th>poste</th></tr>';
while($ligne4 = mysql_fetch_object($res4) and ($ligne5 = mysql_fetch_object($res5)))
{
if ((strlen($ligne5->N_composé) >8)
and (strlen($ligne4->POSTE_APPELE) >8) )
{
$ligne4->POSTE_APPELE = substr ((strrev($ligne4->POSTE_APPELE)),0,8);
$ligne5->N_composé = substr ((strrev($ligne5->N_composé)),0,8);
if ((strncasecmp($ligne5->N_composé,$ligne4->POSTE_APPELE,8) !=0)
and (strncasecmp($ligne5->Date_________Heure,$ligne4->DATE_APPEL,5) !=0))
{
$res4=$res4-1;
}
else
{
echo '<tr><td>'.$ligne4->DATE_APPEL.'</td>.<td>'.$ligne4->ORIGINE_APPEL.'</td>.<td>'.$ligne4->UNITES_FACTUREES.'</td>.
<td>'.$ligne4->UNITES_APPEL.'</td>.<td>'.strrev($ligne4->POSTE_APPELE).'</td>.<td>'.$ligne4->DESTINATION.'</td>.
<td>'.$ligne4->JURIDICTION.'</td>.<td>'.$ligne4->GROUPE_JURIDICTIONS.'</td>.<td>'.round($ligne4->MONTANT_APPEL,2).'</td>.
<td>'.$ligne5->Nom.'</td>.<td>'.$ligne5->Poste.'</td></tr>';
}
}
}
?>
</table> |
Partager