示例#1
0
    $maincontent = $value;
}
if ($maincontent['action'] == 'download') {
    echo $dashObj->downloadCSVFile($maincontent['file']);
} elseif ($maincontent['action'] == 'downloadall') {
    echo $dashObj->downloadAllCSVFiles($maincontent['file']);
} elseif ($maincontent['action'] == 'deletefiles') {
    $csvfile = $maincontent['csvname'];
    $managerID = $maincontent['managerid'];
    $importedas = $maincontent['importedas'];
    echo $dashObj->deleteCSVFiles($csvfile, $managerID, $importedas);
} elseif ($maincontent['action'] == 'deletefilesandrecords' || $maincontent['action'] == 'deleteall') {
    $csvfile = $maincontent['csvname'];
    $managerID = $maincontent['managerid'];
    $importedas = $maincontent['importedas'];
    if (isset($maincontent['totalcount'])) {
        $totalfilescount = $maincontent['totalcount'];
    }
    if ($maincontent['action'] == 'deletefilesandrecords') {
        $action = 'deleteFilesRecords';
    } elseif ($maincontent['action'] == 'deleteall') {
        $action = 'deleteall';
    }
    echo $dashObj->deleteFilesRecords($csvfile, $managerID, $importedas, $totalfilescount, $action);
} elseif ($maincontent['action'] == 'trashall') {
    //echo 'trashall';
    $managerID = $maincontent['managerid'];
    $importedas = $maincontent['importedas'];
    $perform = $maincontent['perform'];
    echo $dashObj->restoreTrashAllRecords($managerID, $importedas, $perform);
}