mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
2013-03-15 Miguel de Dios <miguel.dedios@artica.es>
* godmode/massive/massive_copy_modules.php: uploaded lost changes for previous fixed (days ago). * godmode/groups/group_list.php, include/graphs/functions_flot.php, include/graphs/fgraph.php, include/functions_agents.php, general/logon_ok.php: cleaned source code style. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7858 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5a393ac856
commit
cd58bcd01b
@ -1,3 +1,12 @@
|
||||
2013-03-15 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/massive/massive_copy_modules.php: uploaded lost changes
|
||||
for previous fixed (days ago).
|
||||
|
||||
* godmode/groups/group_list.php, include/graphs/functions_flot.php,
|
||||
include/graphs/fgraph.php, include/functions_agents.php,
|
||||
general/logon_ok.php: cleaned source code style.
|
||||
|
||||
2013-03-15 Mario Pulido <mario.pulido@artica.es>
|
||||
|
||||
* include/help/en/help_plugin_policy.php
|
||||
|
@ -77,13 +77,13 @@ if (is_ajax ()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if($filter_agents_json != '') {
|
||||
if ($filter_agents_json != '') {
|
||||
$filter['id_agente'] = json_decode(io_safe_output($filter_agents_json), true);
|
||||
}
|
||||
|
||||
$filter['disabled'] = $disabled;
|
||||
|
||||
if($search != '') {
|
||||
if ($search != '') {
|
||||
$filter['string'] = $search;
|
||||
}
|
||||
|
||||
|
@ -191,7 +191,7 @@ ui_require_jquery_file ('pandora.controls');
|
||||
var module_alerts;
|
||||
$(document).ready (function () {
|
||||
var source_recursion;
|
||||
$("#checkbox-source_recursion").click(function (){
|
||||
$("#checkbox-source_recursion").click(function () {
|
||||
source_recursion = this.checked ? 1 : 0;
|
||||
$("#source_id_group").trigger("change");
|
||||
});
|
||||
@ -203,7 +203,7 @@ $(document).ready (function () {
|
||||
});
|
||||
|
||||
var destiny_recursion;
|
||||
$("#checkbox-destiny_recursion").click(function (){
|
||||
$("#checkbox-destiny_recursion").click(function () {
|
||||
destiny_recursion = this.checked ? 1 : 0;
|
||||
$("#destiny_id_group").trigger("change");
|
||||
});
|
||||
@ -222,9 +222,23 @@ $(document).ready (function () {
|
||||
|
||||
$("#source_id_agent").change (function () {
|
||||
var id_agent = this.value;
|
||||
|
||||
if (id_agent == 0) {
|
||||
$("#submit-go").attr("disabled", "disabled");
|
||||
|
||||
$("span.without_modules, span.without_alerts").hide();
|
||||
$("span.without_modules").hide();
|
||||
$("span.with_modules").hide();
|
||||
$("span.without_alerts").hide();
|
||||
$("span.with_alerts").hide();
|
||||
$("#fieldset_destiny, #target_table-operations").hide();
|
||||
$("#fieldset_targets").hide();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$("#submit-go").attr("disabled", false);
|
||||
|
||||
$("#modules_loading").show ();
|
||||
$("#target_modules option, #target_alerts option").remove ();
|
||||
$("#target_modules, #target_alerts").disable ();
|
||||
|
@ -963,10 +963,18 @@ function agents_get_group_agents ($id_group = 0, $search = false, $case = "lower
|
||||
switch ($config["dbtype"]) {
|
||||
case "mysql":
|
||||
case "postgresql":
|
||||
$sql = sprintf ("SELECT id_agente, nombre FROM tagente WHERE (%s %s) AND (%s) ORDER BY nombre", $extra_sql, $search_group_sql, $search_sql);
|
||||
$sql = sprintf ("SELECT id_agente, nombre
|
||||
FROM tagente
|
||||
WHERE (%s %s) AND (%s)
|
||||
ORDER BY nombre",
|
||||
$extra_sql, $search_group_sql, $search_sql);
|
||||
break;
|
||||
case "oracle":
|
||||
$sql = sprintf ("SELECT id_agente, nombre FROM tagente WHERE (%s %s) AND (%s) ORDER BY dbms_lob.substr(nombre,4000,1)", $extra_sql, $search_group_sql, $search_sql);
|
||||
$sql = sprintf ("SELECT id_agente, nombre
|
||||
FROM tagente
|
||||
WHERE (%s %s) AND (%s)
|
||||
ORDER BY dbms_lob.substr(nombre,4000,1)",
|
||||
$extra_sql, $search_group_sql, $search_sql);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -498,7 +498,7 @@ function pie_graph($graph_type, $flash_chart, $chart_data, $width, $height,
|
||||
|
||||
$id_graph = serialize_in_temp($graph, null, $ttl);
|
||||
|
||||
switch($graph_type) {
|
||||
switch ($graph_type) {
|
||||
case "2d":
|
||||
return "<img src='" . $homedir . "include/graphs/functions_pchart.php?static_graph=1&graph_type=pie2d&ttl=".$ttl."&id_graph=".$id_graph."'>";
|
||||
break;
|
||||
|
@ -50,8 +50,7 @@ function include_javascript_dependencies_flot_graph($return = false) {
|
||||
<script language="javascript" type="text/javascript" src="'.
|
||||
ui_get_full_url($metaconsole_hack . '/include/graphs/flot/jquery.flot.symbol.min.js') .'"></script>
|
||||
<script language="javascript" type="text/javascript" src="'.
|
||||
ui_get_full_url($metaconsole_hack . '/include/graphs/flot/pandora.flot.js') .'"></script>
|
||||
';
|
||||
ui_get_full_url($metaconsole_hack . '/include/graphs/flot/pandora.flot.js') .'"></script>';
|
||||
$output .= "
|
||||
<script type='text/javascript'>
|
||||
function pieHover(event, pos, obj)
|
||||
@ -77,9 +76,7 @@ function include_javascript_dependencies_flot_graph($return = false) {
|
||||
percent = parseFloat(obj.series.percent).toFixed(2);
|
||||
alert(''+obj.series.label+': '+percent+'%');
|
||||
}
|
||||
</script>
|
||||
"
|
||||
;
|
||||
</script>";
|
||||
|
||||
if (!$return)
|
||||
echo $output;
|
||||
|
Loading…
x
Reference in New Issue
Block a user