summaryrefslogtreecommitdiffstats
path: root/admin/survey/classes/class.SurveyHeatMapRadij.php
blob: c3e3c899b9f25a1207f77f5ed30377b03cfc9c2d (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
30
31
<?php
/** 
 *  November 2016
 * 
 * Pridobi podatke o klikanih tockah na slikah, za njihov prikaz v heatmap
 * 
 * @author Patrik Pucer
 */
class SurveyHeatMapRadij
{	
		
    function __construct() {
    }

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