minmod
This commit is contained in:
parent
09e96266c2
commit
4f27a0f4f9
|
@ -86,18 +86,19 @@
|
|||
/* [2] On rédige les headers
|
||||
=========================================================*/
|
||||
header('Content-type: text/xml');
|
||||
header('Content-Disposition: attachment; filename=call-log.xml');
|
||||
|
||||
|
||||
/* [3] On rédige le contenu du fichier XML
|
||||
=========================================================*/
|
||||
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
echo '<Logs Date="2014-12-03T17:51:33" ItemCount="863">';
|
||||
echo "<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>\n";
|
||||
echo "<Logs>\n";
|
||||
|
||||
// Pour chaque utilisateur
|
||||
foreach($logs as $i=>$log)
|
||||
echo "<Item Number='${log['Number']}' Name='${log['Name']}' Date='".correctDates($log['Date'])."' Duration='".strtotime("1970-01-01 ${log['Duration']} UTC")."' Direction='".strtoupper($log['Call Type'])."' Type='PHONE' />";
|
||||
echo "<Item Number='${log['Number']}' Name='${log['Name']}' Date='".correctDates($log['Date'])."' Duration='".strtotime("1970-01-01 ${log['Duration']} UTC")."' Direction='".strtoupper($log['Call Type'])."' Type='PHONE' />\n";
|
||||
|
||||
echo "</Logs>";
|
||||
echo "</Logs>\n";
|
||||
|
||||
// Si aucun fichier
|
||||
}else{ ?>
|
||||
|
|
Loading…
Reference in New Issue