<?php include_once "../../include/session.class.php"; include_once "../../include/mysqldao.class.php"; require_once "../../control/tongji.include.php"; require_once "../../include/function.include.php"; $tongji = new Tongji(); $org_data = $tongji->getCNO(); if (isset($_GET['i_time'])) { $next = intval($_GET['i_time']) + 1; $time[0] = strtotime($_GET['i_time'] . '-09-01 00:00:00'); $time[1] = strtotime($next . '-09-01 00:00:00'); } else { $time[0] = strtotime(getYear() . '-09-01 00:00:00'); $time[1] = strtotime(getYear() + 1 . '-09-01 00:00:00'); } if (isset($_GET['i_time_year'])) { $year = intval($_GET['i_time_year']); $time[0] = strtotime($year . '-01-31 00:00:00'); $time[1] = strtotime($year + 1 . '-01-31 00:00:00'); } if ($_POST["submit"] == "导出Excel") { $file_name = iconv("UTF-8", "GB2312", '学院申报统计表'); Header("Content-type:charset=utf-8"); Header("Content-type:application/octet-stream"); Header("Accept-Ranges:bytes"); Header("Content-type:application/vnd.ms-excel"); Header("Content-Disposition:filename={$file_name}.xls"); ?> <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel"