2013-03-22 Ramon Novoa <rnovoa@artica.es>
* operation/gis_maps/ajax.php, godmode/agentes/agent_conf_gis.php: Fixed coordinate precision and display order. Fixes bug #3608628. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7879 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
59754bfdf6
commit
925b3f9308
|
@ -1,3 +1,9 @@
|
|||
2013-03-22 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* operation/gis_maps/ajax.php,
|
||||
godmode/agentes/agent_conf_gis.php: Fixed coordinate precision and
|
||||
display order. Fixes bug #3608628.
|
||||
|
||||
2013-03-22 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql: Added missing
|
||||
|
|
|
@ -52,11 +52,11 @@ $table->head[0] =__('Agent position');
|
|||
$table->head_colspan[0] = 2;
|
||||
|
||||
$table->data[1][0] = __('Latitude: ');
|
||||
$table->data[1][1] = html_print_input_text_extended ('latitude', $agentData['stored_latitude'], 'text-latitude', '', 10, 10, false, '',
|
||||
$table->data[1][1] = html_print_input_text_extended ('latitude', $agentData['stored_latitude'], 'text-latitude', '', 20, 20, false, '',
|
||||
array('onchange' => "setIgnoreGISDataEnabled()", 'onkeyup' => "setIgnoreGISDataEnabled()"), true);
|
||||
|
||||
$table->data[2][0] = __('Longitude: ');
|
||||
$table->data[2][1] = html_print_input_text_extended ('longitude', $agentData['stored_longitude'], 'text-longitude', '', 10, 10, false, '',
|
||||
$table->data[2][1] = html_print_input_text_extended ('longitude', $agentData['stored_longitude'], 'text-longitude', '', 20, 20, false, '',
|
||||
array('onchange' => "setIgnoreGISDataEnabled()", 'onkeyup' => "setIgnoreGISDataEnabled()"), true);
|
||||
|
||||
$table->data[3][0] = __('Altitude: ');
|
||||
|
|
|
@ -139,7 +139,7 @@ switch ($opt) {
|
|||
$returnJSON = array();
|
||||
$returnJSON['correct'] = 1;
|
||||
$returnJSON['content'] = __('Agent') . ': <a style="font-weight: bolder;" href="?sec=estado&sec2=operation/agentes/ver_agente&id_agente=' . $row['tagente_id_agente'] . '">'.agents_get_name($row['tagente_id_agente']).'</a><br />';
|
||||
$returnJSON['content'] .= __('Position (Long, Lat, Alt)') . ': (' . $row['longitude'] . ', ' . $row['latitude'] . ', ' . $row['altitude'] . ') <br />';
|
||||
$returnJSON['content'] .= __('Position (Lat, Long, Alt)') . ': (' . $row['latitude'] . ', ' . $row['longitude'] . ', ' . $row['altitude'] . ') <br />';
|
||||
$returnJSON['content'] .= __('Start contact') . ': ' . $row['start_timestamp'] . '<br />';
|
||||
$returnJSON['content'] .= __('Last contact') . ': ' . $row['end_timestamp'] . '<br />';
|
||||
$returnJSON['content'] .= __('Num reports') . ': '.$row['number_of_packages'].'<br />';
|
||||
|
@ -160,11 +160,11 @@ switch ($opt) {
|
|||
|
||||
//it's positioned in default position of map.
|
||||
if ($agentDataGIS === false) {
|
||||
$returnJSON['content'] .= __('Position (Long, Lat, Alt)') . ': ' . __("Default position of map.") . '<br />';
|
||||
$returnJSON['content'] .= __('Position (Lat, Long, Alt)') . ': ' . __("Default position of map.") . '<br />';
|
||||
}
|
||||
else
|
||||
{
|
||||
$returnJSON['content'] .= __('Position (Long, Lat, Alt)') . ': (' . $agentDataGIS['stored_longitude'] . ', ' . $agentDataGIS['stored_latitude'] . ', ' . $agentDataGIS['stored_altitude'] . ') <br />';
|
||||
$returnJSON['content'] .= __('Position (Lat, Long, Alt)') . ': (' . $agentDataGIS['stored_latitude'] . ', ' . $agentDataGIS['stored_longitude'] . ', ' . $agentDataGIS['stored_altitude'] . ') <br />';
|
||||
}
|
||||
$agent_ip_address = agents_get_address ($id_agente);
|
||||
if ($agent_ip_address || $agent_ip_address != '') {
|
||||
|
|
Loading…
Reference in New Issue