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
| <?php
header('Pragma: public');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Content-Type: application/force-download');
header('Content-Type: application/octet-stream');
header('Content-Type: application/download');
header('Content-Transfer-Encoding: binary');
header('Content-Disposition: attachment; filename=historic.xls;');
require_once '../lib/lib_mii.php';
require_once '../conf/cfg_MII.php';
$variable=new User_Mii($dblinkTrackMII, $dblinkMII);
$string_option1 = $_GET['string2'];
$string_option2 = $_GET['string1'];
$tab_appli[0]='rien';
$tab_appli[1]='rien';
$template = $_GET['template'];
$nombre=$_GET['nombre'];
$mail=$_GET['mail'];
$id=$_GET['id'];
switch ($nombre)
{case 'Open':
{
$variable->getReportCase($id,$dept="",$mail, $tab_appli,$string_option2, $string_option1,$template);
echo '<body onLoad="window.close()"></body>';
break;
}
default:
{
$date=get_date($nombre);
$variable->getReportCase($id,$dept="",$mail, $tab_appli,$string_option1,$string_option2,$template,$date);
echo '<body onLoad="window.close()"></body>';
break;
}
}
?> |
Partager