Esempio n. 1
0
<?php

error_reporting(0);
include_once 'base.php';
$survey = new Surveys();
$tk = $_GET['tk'];
$id = $_GET['id'];
switch ($tk) {
    case "create_survey":
        $survey->createSurvey();
        break;
    case "create_question":
        $survey->createQuestion();
        break;
    case "edit_survey":
        $survey->editSurvey();
        break;
    case "delete_survey":
        $survey->deleteSurvey($id);
        break;
    case "delete_question":
        $survey->deleteQuestion($id);
        break;
    case "edit_question":
        $survey->editQuestion($id);
        break;
    case "complete_survey":
        $survey->completeSurvey();
        break;
}