summaryrefslogtreecommitdiffstats
path: root/admin/survey/classes/class.SurveyGetHeatMapRadij.php
blob: 78980758adbcc85135d9b94d28b5ef20bac95016 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/** 
 *  November 2016
 * 
 * Pridobi podatke o radiju za heatmap
 * 
 * @author Patrik Pucer
 */
class SurveyGetHeatMapRadij
{	
		
    function __construct() {
    }

    function ajax() {
		
        if(isset($_POST['sprid'])) {
			$anketa = $_POST['anketa'];
			$sprid = $_POST['sprid'];
			$heatmapId = 'heatmap'.$sprid;
			
			SurveyUserSession::Init($anketa);
			// Shranimo spremenjene nastavitve radija v bazo
			$radij = SurveyUserSession::getData($heatmapId);
			echo $radij;		
        }
		exit();
    }
}