header("Content-Type:text/html;charset=utf-8"); require '../include/init.inc.php'; $arr = array('company_name', 'sp_company_code', 'business_code'); $company_name = $sp_company_code = $business_code = ""; $business_type = $business_name = $apply_time = $business_state = $business_apply_state = $area = ""; $method = $id = ''; extract($_GET, EXTR_IF_EXISTS); $user_info = UserSession::getSessionInfo(); $menus = MenuUrl::getMenuByIds($user_info['shortcuts']); if ($method == 'del' && !empty($id)) { $ret = Complaint::getUnicomBusiness($id); if (!$ret) { OSAdmin::alert("error", '删除条目不存在'); } else { $result = Complaint::delUnicomBusiness($id); if ($result > 0) { SysLog::addLog(UserSession::getUserName(), 'DELETE', 'UnicomBusiness', $id, json_encode($ret)); Common::exitWithSuccess('删除成功', '/complaint/unicom_business_list.php'); } else { OSAdmin::alert("error"); } } } if (Common::isPost() && $_POST['importunicombl'] == 1) { if (empty($_FILES['excel'])) { OSAdmin::alert("error", "empty file"); } else { if ($_FILES['excel']['error'] != 0) { $message = '导入出错,error number(' . $_FILES['excel']['error'] . ')'; OSAdmin::alert("error", $message);