'.''.__('Google Map Type').': | '.''.trim(
+ $optionsConnectionGmapTable = ''.__('Google Map Type').': | '.trim(
html_print_select(
$gmaps_types,
'gmap_type',
@@ -305,181 +305,223 @@ $optionsConnectionOSMTable = ''.''.''.''.__('Google Maps Key').': | '.' '.''.''.html_print_input_text(
+ ).' | '.__('Google Maps Key').': | '.html_print_input_text(
'gmap_key',
$gmap_key,
'',
90,
128,
true
- ).' | '.' '.' ';
+ ).' | ';
// Image Map Connection.
- $optionsConnectionImageTable = ''.''.''.__('Image URL').': | '.''.html_print_input_text(
+ $optionsConnectionImageTable = ''.__('Image URL').': | '.html_print_input_text(
'url',
$mapConnectionDataUrl,
'',
45,
90,
true
- ).' | '.' '.''.''.__('Corners of the area of the image').': | '.' '.''.''.__('Left').': | '.''.html_print_input_text(
+ ).' | '.__('Corners of the area of the image').': | '.__('Left').': | '.html_print_input_text(
'bb_left',
$bb_left,
'',
25,
25,
true
- ).' | '.''.__('Bottom').': | '.''.html_print_input_text(
+ ).' | '.__('Bottom').': | '.html_print_input_text(
'bb_bottom',
$bb_bottom,
'',
25,
25,
true
- ).' | '.' '.''.''.__('Right').': | '.''.html_print_input_text(
+ ).' | '.__('Right').': | '.html_print_input_text(
'bb_right',
$bb_right,
'',
25,
25,
true
- ).' | '.''.__('Top').': | '.''.html_print_input_text(
+ ).' | '.__('Top').': | '.html_print_input_text(
'bb_top',
$bb_top,
'',
25,
25,
true
- ).' | '.' '.''.''.__('Image Size').': | '.' '.''.''.__('Width').': | '.''.html_print_input_text('image_width', $image_width, '', 25, 25, true).' | '.''.__('Height').': | '.''.html_print_input_text('image_height', $image_height, '', 25, 25, true).' | '.' '.' ';
+ ).' | '.__('Image Size').': | '.__('Width').': | '.html_print_input_text(
+ 'image_width',
+ $image_width,
+ '',
+ 25,
+ 25,
+ true
+ ).' | '.__('Height').': | '.html_print_input_text(
+ 'image_height',
+ $image_height,
+ '',
+ 25,
+ 25,
+ true
+ ).' | ';
- // WMS Server Connection.
- $optionsConnectionWMSTable = ''.''.''.__('WMS Server URL').' | '.''.''.html_print_input_text('url', $mapConnectionDataUrl, '', 90, 255, true).' | '.' '.''.''.__('Layers').' | '.''.html_print_input_text('layers', $layers, '', 90, 255, true).' | '.' '.' ';
+ // WMS Server Connection.
+ $optionsConnectionWMSTable = ''.__('WMS Server URL').' | '.html_print_input_text(
+ 'url',
+ $mapConnectionDataUrl,
+ '',
+ 90,
+ 255,
+ true
+ ).' | '.__('Layers').' | '.html_print_input_text(
+ 'layers',
+ $layers,
+ '',
+ 90,
+ 255,
+ true
+ ).' | ';
- if ($mapConnectionData != null) {
- switch ($mapConnection_type) {
- case 'OSM':
- $optionsConnectionTypeTable = $optionsConnectionOSMTable;
- break;
+ if ($mapConnectionData != null) {
+ switch ($mapConnection_type) {
+ case 'OSM':
+ $optionsConnectionTypeTable = $optionsConnectionOSMTable;
+ break;
- case 'Gmap':
- $optionsConnectionTypeTable = $optionsConnectionGmapTable;
- break;
+ case 'Gmap':
+ $optionsConnectionTypeTable = $optionsConnectionGmapTable;
+ break;
- case 'Static_Image':
- $optionsConnectionTypeTable = $optionsConnectionImageTable;
- break;
+ case 'Static_Image':
+ $optionsConnectionTypeTable = $optionsConnectionImageTable;
+ break;
- case 'WMS':
- $optionsConnectionTypeTable = $optionsConnectionWMSTable;
- break;
+ case 'WMS':
+ $optionsConnectionTypeTable = $optionsConnectionWMSTable;
+ break;
- default:
- // Default.
- break;
+ default:
+ // Default.
+ break;
+ }
}
- }
- echo "".$optionsConnectionTypeTable.' ';
+ echo "".$optionsConnectionTypeTable.' ';
- echo ''.__('Preview to select the center of the map and the default position of an agent without gis data').' ';
- html_print_button(__('Load preview map'), 'button_refresh', false, 'refreshMapView();', 'class="sub"');
- echo '
';
- echo "";
+ echo ''.__('Preview to select the center of the map and the default position of an agent without gis data').' ';
+ html_print_button(__('Load preview map'), 'button_refresh', false, 'refreshMapView();', 'class="sub next"');
+ echo '
';
+ echo "";
- $table->width = '60%';
- $table->data = [];
+ $table->width = '60%';
+ $table->data = [];
- // $table->colspan[0][3] = 3;
- $table->data[0][0] = '';
- $table->data[0][1] = __('Map Center');
- $table->data[0][2] = __('Default position for agents without GIS data');
+ // $table->colspan[0][3] = 3;
+ $table->data[0][0] = '';
+ $table->data[0][1] = __('Map Center');
+ $table->data[0][2] = __('Default position for agents without GIS data');
- $table->data[1][0] = __('Change in the map');
- $table->data[1][1] = html_print_radio_button_extended(
- 'radio_button',
- 1,
- '',
- 1,
- false,
- 'changeSetManualPosition(true, false)',
- '',
- true
- );
- $table->data[1][2] = html_print_radio_button_extended(
- 'radio_button',
- 2,
- '',
- 0,
- false,
- 'changeSetManualPosition(false, true)',
- '',
- true
- );
+ $table->data[1][0] = __('Change in the map');
+ $table->data[1][1] = html_print_radio_button_extended(
+ 'radio_button',
+ 1,
+ '',
+ 1,
+ false,
+ 'changeSetManualPosition(true, false)',
+ '',
+ true
+ );
+ $table->data[1][2] = html_print_radio_button_extended(
+ 'radio_button',
+ 2,
+ '',
+ 0,
+ false,
+ 'changeSetManualPosition(false, true)',
+ '',
+ true
+ );
- $table->data[2][0] = __('Latitude');
- $table->data[2][1] = html_print_input_text(
- 'center_latitude',
- $mapConnection_centerLatitude,
- '',
- 10,
- 10,
- true
- );
- $table->data[2][2] = html_print_input_text(
- 'default_latitude',
- $mapConnection_defaultLatitude,
- '',
- 10,
- 10,
- true
- );
+ $table->data[2][0] = __('Latitude');
+ $table->data[2][1] = html_print_input_text(
+ 'center_latitude',
+ $mapConnection_centerLatitude,
+ '',
+ 10,
+ 10,
+ true
+ );
+ $table->data[2][2] = html_print_input_text(
+ 'default_latitude',
+ $mapConnection_defaultLatitude,
+ '',
+ 10,
+ 10,
+ true
+ );
- $table->data[3][0] = __('Longitude');
- $table->data[3][1] = html_print_input_text(
- 'center_longitude',
- $mapConnection_centerLongitude,
- '',
- 10,
- 10,
- true
- );
- $table->data[3][2] = html_print_input_text(
- 'default_longitude',
- $mapConnection_defaultLongitude,
- '',
- 10,
- 10,
- true
- );
+ $table->data[3][0] = __('Longitude');
+ $table->data[3][1] = html_print_input_text(
+ 'center_longitude',
+ $mapConnection_centerLongitude,
+ '',
+ 10,
+ 10,
+ true
+ );
+ $table->data[3][2] = html_print_input_text(
+ 'default_longitude',
+ $mapConnection_defaultLongitude,
+ '',
+ 10,
+ 10,
+ true
+ );
- $table->data[4][0] = __('Altitude');
- $table->data[4][1] = html_print_input_text(
- 'center_altitude',
- $mapConnection_centerAltitude,
- '',
- 10,
- 10,
- true
- );
- $table->data[4][2] = html_print_input_text(
- 'default_altitude',
- $mapConnection_defaultAltitude,
- '',
- 10,
- 10,
- true
- );
- html_print_table($table);
+ $table->data[4][0] = __('Altitude');
+ $table->data[4][1] = html_print_input_text(
+ 'center_altitude',
+ $mapConnection_centerAltitude,
+ '',
+ 10,
+ 10,
+ true
+ );
+ $table->data[4][2] = html_print_input_text(
+ 'default_altitude',
+ $mapConnection_defaultAltitude,
+ '',
+ 10,
+ 10,
+ true
+ );
+ html_print_table($table);
- echo '';
- html_print_submit_button(__('Save'), '', false, 'class="sub save wand"');
- echo ' ';
- echo '';
+ echo '';
+ html_print_submit_button(__('Save'), '', false, 'class="sub save wand"');
+ echo ' ';
+ echo '';
- ui_require_javascript_file('OpenLayers/OpenLayers');
- ui_require_javascript_file('openlayers.pandora');
- ?>
+ ui_require_javascript_file('OpenLayers/OpenLayers');
+ ui_require_javascript_file('openlayers.pandora');
+ ?>
|