mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Added some things to agents/modules report.
This commit is contained in:
parent
7056de8070
commit
4e81c4c21b
@ -1022,7 +1022,7 @@ You can of course remove the warnings, that's why we include the source and do n
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
html_print_select($agents, 'id_agents[]', $agents_id, $script = '', "", 0, false, true, true, '', false, "min-width: 180px");
|
html_print_select($agents, 'id_agents2[]', $agents_id, $script = '', "", 0, false, true, true, '', false, "min-width: 180px");
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -1875,6 +1875,7 @@ $(document).ready (function () {
|
|||||||
},
|
},
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
$("#id_agents").html('');
|
$("#id_agents").html('');
|
||||||
|
$("#id_agents2").html('');
|
||||||
jQuery.each (data, function (id, value) {
|
jQuery.each (data, function (id, value) {
|
||||||
// Remove keys_prefix from the index
|
// Remove keys_prefix from the index
|
||||||
id = id.substring(1);
|
id = id.substring(1);
|
||||||
@ -1883,6 +1884,7 @@ $(document).ready (function () {
|
|||||||
.attr ("value", value["id_agente"])
|
.attr ("value", value["id_agente"])
|
||||||
.html (value["nombre"]);
|
.html (value["nombre"]);
|
||||||
$("#id_agents").append (option);
|
$("#id_agents").append (option);
|
||||||
|
$("#id_agents2").append (option);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
"json"
|
"json"
|
||||||
@ -1912,13 +1914,13 @@ $(document).ready (function () {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
$("#id_agents").change (
|
$("#id_agents2").change (
|
||||||
function () {
|
function () {
|
||||||
jQuery.post ("ajax.php",
|
jQuery.post ("ajax.php",
|
||||||
{"page" : "operation/agentes/ver_agente",
|
{"page" : "operation/agentes/ver_agente",
|
||||||
"get_modules_group_json" : 1,
|
"get_modules_group_json" : 1,
|
||||||
"id_module_group" : $("#combo_modulegroup").val(),
|
"id_module_group" : $("#combo_modulegroup").val(),
|
||||||
"id_agents" : $("#id_agents").val()
|
"id_agents" : $("#id_agents2").val()
|
||||||
},
|
},
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
$("#module").html('');
|
$("#module").html('');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user