mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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