get('hotspot_image') ? $spremenljivkaParams->get('hotspot_image') : ""); $hotspot_region_visibility_option = ($spremenljivkaParams->get('hotspot_region_visibility_option') ? $spremenljivkaParams->get('hotspot_region_visibility_option') : 0); //$hotspot_tooltips_option = ($spremenljivkaParams->get('hotspot_tooltips_option') ? $spremenljivkaParams->get('hotspot_tooltips_option') : 1); //po default-u skrij namig $hotspot_tooltips_option = 1; //naj bo 1 tako, da je skrito, saj trenutno tega v heatmap ne rabimo $hotspot_region_color = ($spremenljivkaParams->get('hotspot_region_color') ? $spremenljivkaParams->get('hotspot_region_color') : ""); $heatmap_num_clicks = ($spremenljivkaParams->get('heatmap_num_clicks') ? $spremenljivkaParams->get('heatmap_num_clicks') : 1); $heatmap_show_clicks = ($spremenljivkaParams->get('heatmap_show_clicks') ? $spremenljivkaParams->get('heatmap_show_clicks') : 0); //za checkbox $disable_heatmap_show_clicks_hidden = ($heatmap_show_clicks == 1) ? 'disabled' : ''; $heatmap_click_color = ($spremenljivkaParams->get('heatmap_click_color') ? $spremenljivkaParams->get('heatmap_click_color') : ""); $heatmap_click_size = ($spremenljivkaParams->get('heatmap_click_size') ? $spremenljivkaParams->get('heatmap_click_size') : 5); $heatmap_click_shape = ($spremenljivkaParams->get('heatmap_click_shape') ? $spremenljivkaParams->get('heatmap_click_shape') : 1); $heatmap_show_counter_clicks = ($spremenljivkaParams->get('heatmap_show_counter_clicks') ? $spremenljivkaParams->get('heatmap_show_counter_clicks') : 0); //za prikazovanje/skrivanje stevca klikov // Pri vpogledu moramo deaktivirati canvas in tipke (quick_edit & quick_view = 0) $quick_view = json_encode(get('quick_view')); echo '
'; //imena obmocij iz srv_vrednost $sql1 = sisplet_query("SELECT id, naslov FROM srv_vrednost WHERE spr_id='".$row['id']."' ORDER BY vrstni_red"); $sqlR = sisplet_query("SELECT region_coords, vre_id FROM srv_hotspot_regions WHERE spr_id='".$row['id']."'"); //ce so podatki ze v bazi (rec. uporabnik klikne 'Prejsnja stran') //$sql1a = sisplet_query("SELECT lat, lng, address, text FROM srv_data_map WHERE spr_id='$spremenljivka' AND usr_id='" . get('usr_id') . "' AND loop_id $loop_id"); $sql1a = sisplet_query("SELECT lat, lng, address, text FROM srv_data_heatmap WHERE spr_id='$spremenljivka' AND usr_id='" . get('usr_id') . "' AND loop_id $loop_id"); $heatmap_data = array(); while ($row1a = mysqli_fetch_array($sql1a)) { $heatmap_data[] = $row1a; } echo ''; //prikaz slike $findme = 'img'; $pos = strpos($hotspot_image, $findme); if($pos === false) { //string NOT present } else { //string present $usemap = 'id="hotspot_'.$row['id'].'_image" usemap="#hotspot_'.$row['id'].'_usemap"'; //v $hotspot_image je potrebno dodati usemap="#hotspot_image_'.$row['id'].'" za identificiranje mape $hotspot_image = substr_replace($hotspot_image, $usemap, 5, 0); //dodaj zeleni string v $hotspot_image } echo '
'.$hotspot_image.''; //prikaz slike - konec //canvas echo ''; echo ''; //Za obmocja echo ''; while ($rowR = mysqli_fetch_array($sqlR)) { echo ''; } echo ''; //************************************************************************************************ //izris radio button in checkbox, ki bo skrita in beležila odgovore na sliki echo '
'; RadioCheckboxSelect::getInstance()->display($spremenljivka); //prikaze radio button in checkbox z odgovori echo '
'; //izris radio button in checkbox, ki bo skrita in beležila odgovore na sliki - konec //*********************************************************************************** //Za obmocja - konec //GUMBA echo '
'; //gumb za resetiranje vseh tock echo ''; echo ' '; //gumb za resetiranje zadnje tocke echo ''; echo '
'; //GUMBA - konec //canvas - konec //div za stevec klikov if($heatmap_show_counter_clicks){ echo '
'; echo '
'.$lang['srv_vprasanje_heatmap_num_clicks'].':
'; echo '
0
/'.$heatmap_num_clicks; echo '
'; } //div za stevec klikov - konec //div za inpute tock echo ''; //div za inpute tock - konec ?> '; echo '
'; } }