$http_query = '';
foreach ($arr as $key => $value) {
    $http_query .= $value . '=' . ${$value} . '&';
    if (${$value}) {
        $param[$value] = ${$value};
    }
}
$page_size = PAGE_SIZE;
$page_no = !isset($_GET['page_no']) || intval($_GET['page_no']) < 1 ? 1 : intval($_GET['page_no']);
$start = ($page_no - 1) * $page_size;
if ($_GET['download'] == 1) {
    $data['result'] = Complaint::getUnicomBusinessSpList($param, $start, 0);
} else {
    $data['result'] = Complaint::getUnicomBusinessSpList($param, $start, $page_size);
}
$row_count = Complaint::getUnicomBusinessSpListCount($param);
//导出excel下载
if ($_GET['download'] == 1) {
    $downloadStr = array_to_string($data);
    //var_dump($data);exit;
    Common::exportExcel($downloadStr, 'unicom_business_sp_list');
    exit;
}
$page_html = Pagination::showPager("unicom_business_sp_list.php?" . $http_query, $page_no, PAGE_SIZE, $row_count);
$export_excel = "unicom_business_sp_list.php?download=1&" . $http_query;
// $page_html=Pagination::showPager("black_list.php?class_name=$class_name&user_name=$user_name&start_date=$start_date&end_date=$end_date",$page_no,PAGE_SIZE,$row_count);
Template::assign("error", $error);
Template::assign("_POST", $_POST);
Template::assign('_GET', $_GET);
Template::assign("data", $data);
Template::assign("param", $param);