2013-02-07 Sergio Martin <sergio.martin@artica.es>

* godmode/agentes/agent_conf_gis.php
	godmode/agentes/agent_manager.php
	godmode/massive/massive_edit_agents.php: Change a strings of 
	ignore gis option in agent configuration to be more usable



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7609 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2013-02-07 16:54:21 +00:00
parent e1b1339dc4
commit d003228405
4 changed files with 17 additions and 10 deletions

View File

@ -1,3 +1,10 @@
2013-02-07 Sergio Martin <sergio.martin@artica.es>
* godmode/agentes/agent_conf_gis.php
godmode/agentes/agent_manager.php
godmode/massive/massive_edit_agents.php: Change a strings of
ignore gis option in agent configuration to be more usable
2013-02-07 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_ui.php, include/ajax/agent.php: improved the

View File

@ -61,8 +61,8 @@ $table->data[3][1] = html_print_input_text_extended ('altitude', $agentData['sto
array('onchange' => "setIgnoreGISDataEnabled()", 'onkeyup' => "setIgnoreGISDataEnabled()"), true);
$table->data[4][0] = __('Ignore new GIS data:');
$table->data[4][1] = __('Disabled').' '.html_print_radio_button_extended ("update_gis_data", 1, '', $updateGisData, false, '', 'style="margin-right: 40px;"', true);
$table->data[4][1] .= __('Enabled').' '.html_print_radio_button_extended ("update_gis_data", 0, '', $updateGisData, false, '', 'style="margin-right: 40px;"', true);
$table->data[4][1] = __('Yes').' '.html_print_radio_button_extended ("update_gis_data", 0, '', $updateGisData, false, '', 'style="margin-right: 40px;"', true);
$table->data[4][1] .= __('No').' '.html_print_radio_button_extended ("update_gis_data", 1, '', $updateGisData, false, '', 'style="margin-right: 40px;"', true);
$url = 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=gis&id_agente='.$id_agente;
echo "<form method='post' action='" . $url . "' onsubmit ='return validateFormFields();'>";
@ -76,8 +76,8 @@ echo "</form>";
?>
<script type="text/javascript">
function setIgnoreGISDataEnabled() {
$("#radiobtn0001").removeAttr("checked");
$("#radiobtn0002").attr("checked","checked");
$("#radiobtn0002").removeAttr("checked");
$("#radiobtn0001").attr("checked","checked");
}
function validateFormFields() {

View File

@ -303,12 +303,12 @@ $table->data[4][1] = html_print_select($arraySelectIcon, "icon_path",
if ($config['activate_gis']) {
$table->data[5][0] = __('Ignore new GIS data:');
$table->data[5][1] = __('Disabled') . ' ' .
html_print_radio_button_extended ("update_gis_data", 1, '',
$update_gis_data, false, '', 'style="margin-right: 40px;"', true);
$table->data[5][1] .= __('Enabled') . ' ' .
$table->data[5][1] = __('Yes') . ' ' .
html_print_radio_button_extended ("update_gis_data", 0, '',
$update_gis_data, false, '', 'style="margin-right: 40px;"', true);
$table->data[5][1] .= __('No') . ' ' .
html_print_radio_button_extended ("update_gis_data", 1, '',
$update_gis_data, false, '', 'style="margin-right: 40px;"', true);
}
$table->data[6][0] = __('Url address');

View File

@ -352,8 +352,8 @@ $table->data[4][1] = html_print_select($arraySelectIcon, "icon_path", $icon_path
if ($config['activate_gis']) {
$table->data[5][0] = __('Ignore new GIS data:');
$table->data[5][1] = __('No change').' '.html_print_radio_button_extended ("update_gis_data", -1, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true);
$table->data[5][1] .= __('Disabled').' '.html_print_radio_button_extended ("update_gis_data", 1, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true);
$table->data[5][1] .= __('Active').' '.html_print_radio_button_extended ("update_gis_data", 0, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true);
$table->data[5][1] .= __('Yes').' '.html_print_radio_button_extended ("update_gis_data", 0, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true);
$table->data[5][1] .= __('No').' '.html_print_radio_button_extended ("update_gis_data", 1, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true);
}
$table->data[6][0] = __('Quiet');