anketa = $anketa; SurveyInfo::getInstance()->SurveyInit($anketa); if (SurveyInfo::getInstance()->getSurveyColumn('db_table') == 1) $this->db_table = '_active'; } function Ajax() { switch ($_GET['a']) { case 'showQuestionRecode': $this->showQuestionRecode(); break; case 'saveQuestionRecode': $this->saveQuestionRecode(); break; case 'removeQuestionRecode': $this->removeQuestionRecode(); break; case 'add_new_numeric': $this->addNewNumeric(); break; case 'changeRecodeType': $this->changeRecodeType(); break; case 'recodeSpremenljivkaNew': $this->recodeSpremenljivkaNew(); break; case 'recodeVrednostNew': $this->recodeVrednostNew(); break; case 'runRecodeVredonosti': $this->runRecodeVredonosti(); break; case 'removeSpremenljivka': $this->removeSpremenljivka(); break; case 'enableRecodeVariable': $this->enableRecodeVariable(); break; case 'visibleRecodeVariable': $this->visibleRecodeVariable(); break; default: print_r("
Class:SurveyRecoding"); print_r($_POST); print_r($_GET); exit(); break; } } function DisplaySettings() { global $lang; echo ''; $this->DisplayDashboard(); } function showQuestionRecode() { global $lang; $spr_id = $_POST['spr_id']; if ((int)$spr_id > 0 && (int)$this->anketa > 0) { $qry_str = "SELECT naslov, variable FROM srv_spremenljivka WHERE id = '$spr_id'"; $qry = sisplet_query($qry_str); $spr_row = mysqli_fetch_assoc($qry); echo '