forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.3 KiB
47 lines
1.3 KiB
2 years ago
|
<?php
|
||
|
|
||
|
ob_end_clean();
|
||
|
ob_start();
|
||
|
$dadosSource = $_SESSION["SSdadosRd"];
|
||
|
$somaOf = $_SESSION["somaOfRd"];
|
||
|
$mediaOf = $_SESSION["mediaOfRd"];
|
||
|
$sum = $_SESSION["SSquerySumRd"];
|
||
|
$sumTotalAb = $_SESSION["sumTotalAbRd"];
|
||
|
$sumTotalAt = $_SESSION["sumTotalAtRd"];
|
||
|
$file = "DiscadorOperacoes_" . date("d/m/Y h:i") . "_" . GetLogin() . ".xls";
|
||
|
|
||
|
header("Pragma: public");
|
||
|
header('Cache-Control: no-cache, must-revalidate');
|
||
|
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||
|
header('Accept-Ranges: bytes');
|
||
|
header('Content-Type: ' . GetMimeContentType($file));
|
||
|
header('Content-Disposition: attachment; filename="' . $file . '";');
|
||
|
header('Content-Transfer-Encoding: binary');
|
||
|
header('Connection: close');
|
||
|
|
||
|
PrintHeadOper();
|
||
|
|
||
|
$buffDados = $_SESSION["SSlinhasPausasDiscador"];
|
||
|
foreach ($buffDados as $value) {
|
||
|
echo $value . "\n";
|
||
|
}
|
||
|
|
||
|
PrintfootOper();
|
||
|
ob_flush();
|
||
|
|
||
|
function PrintHeadOper() {
|
||
|
echo '<table class="grid" width="100%" border="1" cellpadding="2" cellspacing="0">
|
||
|
<tr align="center" bgcolor="#FFFFFF">
|
||
|
<th align="center">Inicio</th>
|
||
|
<th align="center">Fim</th>
|
||
|
<th align="center">operacao</th>
|
||
|
<th align="center">Tempo</th>
|
||
|
</tr>';
|
||
|
}
|
||
|
|
||
|
function PrintfootOper() {
|
||
|
echo "</table>";
|
||
|
}
|
||
|
|
||
|
?>
|