| @@ 33-36 (lines=4) @@ | ||
| 30 | //round-up the coordinates |
|
| 31 | $coords = explode('/',$coordinates); |
|
| 32 | $coordinates = ''; |
|
| 33 | foreach ($coords as $coord) { |
|
| 34 | list($x,$y) = explode(';',$coord); |
|
| 35 | $coordinates .= round($x).';'.round($y).'/'; |
|
| 36 | } |
|
| 37 | $coordinates = substr($coordinates,0,-1); |
|
| 38 | ||
| 39 | $TBL_TRACK_E_HOTSPOT = Database::get_main_table(TABLE_STATISTIC_TRACK_E_HOTSPOT); |
|
| @@ 44-47 (lines=4) @@ | ||
| 41 | //round-up the coordinates |
|
| 42 | $coords = explode('/',$coordinates); |
|
| 43 | $coordinates = ''; |
|
| 44 | foreach ($coords as $coord) { |
|
| 45 | list($x,$y) = explode(';',$coord); |
|
| 46 | $coordinates .= round($x).';'.round($y).'/'; |
|
| 47 | } |
|
| 48 | $coordinates = substr($coordinates,0,-1); |
|
| 49 | ||
| 50 | $TBL_TRACK_E_HOTSPOT = Database::get_main_table(TABLE_STATISTIC_TRACK_E_HOTSPOT); |
|
| @@ 76-81 (lines=6) @@ | ||
| 73 | $coords = explode('/', $_GET['hotspot']); |
|
| 74 | ||
| 75 | if (is_array($coords) && count($coords) > 0) { |
|
| 76 | foreach ($coords as $coord) { |
|
| 77 | if (!empty($coord)) { |
|
| 78 | list($x, $y) = explode(';', $coord); |
|
| 79 | $user_array .= round($x).';'.round($y).'/'; |
|
| 80 | } |
|
| 81 | } |
|
| 82 | } |
|
| 83 | } |
|
| 84 | ||
| @@ 4093-4096 (lines=4) @@ | ||
| 4090 | // round-up the coordinates |
|
| 4091 | $coords = explode('/',$user_answer); |
|
| 4092 | $user_array = ''; |
|
| 4093 | foreach ($coords as $coord) { |
|
| 4094 | list($x,$y) = explode(';',$coord); |
|
| 4095 | $user_array .= round($x).';'.round($y).'/'; |
|
| 4096 | } |
|
| 4097 | $user_array = substr($user_array,0,-1); |
|
| 4098 | } else { |
|
| 4099 | if (!empty($studentChoice)) { |
|
| @@ 4248-4251 (lines=4) @@ | ||
| 4245 | //round-up the coordinates |
|
| 4246 | $coords = explode('/',$user_answer); |
|
| 4247 | $user_array = ''; |
|
| 4248 | foreach ($coords as $coord) { |
|
| 4249 | list($x,$y) = explode(';',$coord); |
|
| 4250 | $user_array .= round($x).';'.round($y).'/'; |
|
| 4251 | } |
|
| 4252 | $user_array = substr($user_array,0,-1); |
|
| 4253 | ||
| 4254 | if ($next) { |
|