<?
if( $_REQUEST['mode'] == 'excel' ) {
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php" ;) ;
header("Content-Type: application/force-download" ;) ;
header("Content-Type: application/octet-stream" ;) ;
header("Content-Type: application/download" ;) ;
header("Content-Disposition: attachment; filename=user_work_time.xls" ;) ;
} else {
require ($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php" ;) ;
$APPLICATION->SetTitle("текст" ;) ;
?>
///тут много кода
<?if( $_REQUEST["gen"]=="yes" ) :
?>
<?endif;?>
if( $_REQUEST['mode'] == 'excel' ) {
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php" ;) ;
header("Content-Type: application/force-download" ;) ;
header("Content-Type: application/octet-stream" ;) ;
header("Content-Type: application/download" ;) ;
header("Content-Disposition: attachment; filename=user_work_time.xls" ;) ;
} else {
require ($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php" ;) ;
$APPLICATION->SetTitle("текст" ;) ;
?>
///тут много кода
<?if( $_REQUEST["gen"]=="yes" ) :
?>
<?endif;?>