コード例 #1
0
ファイル: reports.php プロジェクト: codegooglecom/seopanel
$controller->spTextTools = $controller->getLanguageTexts('seotools', $_SESSION['lang_code']);
$controller->set('spTextTools', $controller->spTextTools);
$controller->spTextKeyword = $controller->getLanguageTexts('keyword', $_SESSION['lang_code']);
$controller->set('spTextKeyword', $controller->spTextKeyword);
$controller->spTextPanel = $controller->getLanguageTexts('panel', $_SESSION['lang_code']);
$controller->set('spTextPanel', $controller->spTextPanel);
$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);