示例#1
0
$controller->spTextReport = $controller->getLanguageTexts('report', $_SESSION['lang_code']);
$controller->set('spTextReport', $controller->spTextReport);
$controller->layout = 'ajax';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    switch ($_POST['sec']) {
        case "kwchecker":
            $controller->showQuickRankChecker($_POST);
            break;
        case "reportsum":
            $controller->showKeywordReportSummary($_POST);
            break;
        case "schedule":
            $controller->saveReportSchedule($_POST);
            break;
        default:
            $controller->showReports($_POST);
            break;
    }
} else {
    switch ($_GET['sec']) {
        case "show-info":
            $controller->showTimeReport($_GET);
            break;
        case "kwchecker":
            $controller->quickRankChecker($_GET);
            break;
        case "reportsum":
            $controller->showKeywordReportSummary($_GET);
            break;
        case "schedule":
            $controller->showReportsScheduler(false, $_GET);