function exportWebAb($webAbReport)
{
    $header = array('R_DATE' => '日期', 'NUM' => '数量');
    $csv = new LibExportCsv($header, $webAbReport);
    $csv->export();
    exit;
}
function exportSafeval($safevalReport)
{
    $header = array('REP_DATE' => '日期', 'NUM' => '数量');
    $csv = new LibExportCsv($header, $safevalReport);
    $csv->export();
    exit;
}
             $value = '0';
         }
     }
 }
 //为bar添加默认值
 if (empty($roomData)) {
     $roomData = array("name" => array(''), 'avalue' => array(0), 'bvalue' => array(0));
 }
 $aRoomData = json_encode($aRoomData);
 $bRoomData = json_encode($bRoomData);
 $roomData = json_encode($roomData);
 $mapName = json_encode($mapName);
 //导出功能
 if ($command == 'exportMroomRateCompareCsv') {
     $csv = new LibExportCsv($tableHead, $tableList);
     $csv->export();
     exit;
 }
 Template::assign('ndroom', $ndroom);
 Template::assign('aRoomData', $aRoomData);
 Template::assign('bRoomData', $bRoomData);
 Template::assign('roomData', $roomData);
 Template::assign('nameMap', $mapName);
 Template::assign('tableHead', $tableHead);
 Template::assign('tableList', $tableList);
 Template::assign('start_date', $start_date);
 Template::assign('end_date', $end_date);
 Template::assign('b_start_date', $b_start_date);
 Template::assign('b_end_date', $b_end_date);
 Template::assign('a_roomname', $a_roomname);
 Template::assign('b_roomname', $b_roomname);
function exportWebAbAlarmIP($webAbAlarmIP)
{
    $header = array('R_DATE' => '异常时间', 'AB_CAUSE' => '异常原因', 'STATUS' => '处理状况', 'R_ID' => '单据号', 'R_NAME' => '异常名称', 'R_LINE' => '线路', 'P_NAME' => '隶属项目', 'SERVER_NAME' => '服务器', 'AB_TYPE' => '异常现象', 'RECORD_TIME' => '填报时间', 'R_CLOSE_DATE' => '恢复时间', 'HANDLE_TIME' => '处理历时', 'RECORDER' => '填报人', 'HANDLER' => '处理人', 'RESTORE_METHOD' => '处理方法', 'R_REMARK' => '备注');
    $csv = new LibExportCsv($header, $webAbAlarmIP);
    $csv->export();
    exit;
}
function exportCheckfile($backupCheckFile, $top)
{
    foreach ($backupCheckFile as &$item) {
        $item['UPLOADTIME'] = ' ' . $item['UPLOADTIME'] . ' ';
    }
    $header = array();
    if ($top == "ALL") {
        $header = array('UPLOADTIME' => '日期', 'FILESIZE' => '文件大小(M)');
    } else {
        $header = array('UPLOADTIME' => '日期', 'FILESIZE' => '文件大小(M)', 'CIP' => 'IP', 'RANK_ONE' => '项目', 'ADMIN' => '管理员');
    }
    $csv = new LibExportCsv($header, $backupCheckFile);
    $csv->export();
    exit;
}
Exemple #6
0
function exporAdminHost($webHostAdmin)
{
    $header = array('ADMIN' => '管理员', 'NUM' => '数量');
    $csv = new LibExportCsv($header, $webHostAdmin);
    $csv->export();
    exit;
}
Exemple #7
0
function exportSafevalType($safevalType)
{
    $header = array('VUL_TYPE' => '漏洞类型', 'NUM' => '数量');
    $csv = new LibExportCsv($header, $safevalType);
    $csv->export();
    exit;
}
Exemple #8
0
function exportCdnDownNum($cdnDownNum)
{
    $header = array('R_DATE' => '日期', 'NUM' => '数量');
    $csv = new LibExportCsv($header, $cdnDownNum);
    $csv->export();
    exit;
}