<?php header("Content-Type:text/html;charset=utf-8"); require '../include/init.inc.php'; $user_info = UserSession::getSessionInfo(); $arr = array('start_date', 'start_date_search', 'table', 'del', 'delpro', 'id'); $start_date = $start_date_search = $table = $del = $delpro = $id = ""; extract($_GET, EXTR_IF_EXISTS); $province_id = $user_info['province_id'] ? $user_info['province_id'] : $province_id; if ($del && $table) { Complaint::delData($id, $table); } $data['result'] = Complaint::getImprotData($start_date_search, $table, $province_id); $menus = MenuUrl::getMenuByIds($user_info['shortcuts']); $name_map = array('基础信息' => 'base', '不规范定制' => 'custom', '工信部投诉' => 'complaints', '收入' => 'income', '增值收入' => 'value_income', '各省工信部申请数据表' => 'complaint_province', '各业务类型工信部申请数据表' => 'complaint_class'); $mapName = array('base' => '基础信息', 'custom' => '不规范定制', 'complaints' => '工信部投诉', 'income' => '收入', 'value_income' => '增值收入', 'complaint_province' => '各省工信部申请数据表', 'complaint_class' => '各业务类型工信部申请数据表'); if (Common::isPost()) { // $file = $_FILES['excel']['tmp_name']; // var_dump($file); // $excel_array = ExcelReader::readXLS($file); // var_dump($excel_array); // exit; $date = $_POST['start_date']; $table = $_POST['table']; $province_id = $_POST['province_id']; if ($table && $date && $province_id !== null) { if (empty($_FILES['excel'])) { OSAdmin::alert("error", "empty file"); } else { if ($_FILES['excel']['error'] != 0) { $message = 'ÉÏ´«Îļþʧ°Ü,error number(' . $_FILES['excel']['error'] . ')';