2010-04-28 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_agents.php, godmode/gis_maps/configure_gis_map.php, godmode/reporting/reporting_builder.list_items.php, godmode/reporting/visual_console_builder.php, godmode/reporting/reporting_builder.item_editor.php: cleaned debug traces in the source code. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2627 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
fc5f6ee516
commit
f1c9ccb1b4
|
@ -1,3 +1,11 @@
|
||||||
|
2010-04-28 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_agents.php, godmode/gis_maps/configure_gis_map.php,
|
||||||
|
godmode/reporting/reporting_builder.list_items.php,
|
||||||
|
godmode/reporting/visual_console_builder.php,
|
||||||
|
godmode/reporting/reporting_builder.item_editor.php: cleaned debug traces in
|
||||||
|
the source code.
|
||||||
|
|
||||||
2010-04-28 Miguel de Dios <miguel.dedios@artica.es>
|
2010-04-28 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* godmode/reporting/reporting_builder.php: fixed the lost type in the edit
|
* godmode/reporting/reporting_builder.php: fixed the lost type in the edit
|
||||||
|
|
|
@ -84,9 +84,6 @@ if (! give_acl ($config['id_user'], 0, "IW")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//debugPrint($_POST);
|
|
||||||
|
|
||||||
$action = get_parameter('action', 'new_map');
|
$action = get_parameter('action', 'new_map');
|
||||||
|
|
||||||
echo '<form id="form_setup" method="post" onSubmit="fillOrderField();">';
|
echo '<form id="form_setup" method="post" onSubmit="fillOrderField();">';
|
||||||
|
|
|
@ -42,7 +42,7 @@ switch ($action) {
|
||||||
default:
|
default:
|
||||||
$actionParameter = 'update';
|
$actionParameter = 'update';
|
||||||
$item = get_db_row_filter('treport_content', array('id_rc' => $idItem));
|
$item = get_db_row_filter('treport_content', array('id_rc' => $idItem));
|
||||||
//debugPrint($item);
|
|
||||||
$type = $item['type'];
|
$type = $item['type'];
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'avg_value':
|
case 'avg_value':
|
||||||
|
|
|
@ -156,7 +156,7 @@ if (((($offset == 0) && ($config["block_size"] > $countItems)) ||
|
||||||
|
|
||||||
$count = 0;
|
$count = 0;
|
||||||
$rowPair = true;
|
$rowPair = true;
|
||||||
//debugPrint($items);
|
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
if ($rowPair)
|
if ($rowPair)
|
||||||
$table->rowclass[$count] = 'rowPair';
|
$table->rowclass[$count] = 'rowPair';
|
||||||
|
|
|
@ -82,15 +82,13 @@ switch ($activeTab) {
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case 'update':
|
case 'update':
|
||||||
//Update background
|
//Update background
|
||||||
//debugPrint(get_db_row_filter('tlayout', array('id' => $idVisualConsole)));
|
|
||||||
$background = get_parameter('background');
|
$background = get_parameter('background');
|
||||||
$width = get_parameter('width');
|
$width = get_parameter('width');
|
||||||
$height = get_parameter('height');
|
$height = get_parameter('height');
|
||||||
process_sql_update('tlayout', array('background' => $background,
|
process_sql_update('tlayout', array('background' => $background,
|
||||||
'width' => $width, 'height' => $height), array('id' => $idVisualConsole));
|
'width' => $width, 'height' => $height), array('id' => $idVisualConsole));
|
||||||
|
|
||||||
//debugPrint(get_db_row_filter('tlayout', array('id' => $idVisualConsole)));
|
|
||||||
|
|
||||||
//Update elements in visual map
|
//Update elements in visual map
|
||||||
$idsElements = get_db_all_rows_filter('tlayout_data', array('id_layout' => $idVisualConsole), array('id'));
|
$idsElements = get_db_all_rows_filter('tlayout_data', array('id_layout' => $idVisualConsole), array('id'));
|
||||||
foreach ($idsElements as $idElement) {
|
foreach ($idsElements as $idElement) {
|
||||||
|
|
|
@ -171,7 +171,7 @@ function get_agent_alerts_simple ($id_agent = false, $filter = '', $options = fa
|
||||||
WHERE id_agent_module in (%s) %s %s %s",
|
WHERE id_agent_module in (%s) %s %s %s",
|
||||||
$selectText, $subQuery, $where, $filter, $orderbyText);
|
$selectText, $subQuery, $where, $filter, $orderbyText);
|
||||||
|
|
||||||
$alerts = get_db_all_rows_sql ($sql); //debugPrint($sql);
|
$alerts = get_db_all_rows_sql ($sql);
|
||||||
|
|
||||||
if ($alerts === false)
|
if ($alerts === false)
|
||||||
return array ();
|
return array ();
|
||||||
|
@ -243,7 +243,7 @@ function get_agent_alerts_compound ($id_agent = false, $filter = '', $options =
|
||||||
WHERE id_agent IN (%s) %s %s",
|
WHERE id_agent IN (%s) %s %s",
|
||||||
$selectText, $subQuery, $where, $filter);
|
$selectText, $subQuery, $where, $filter);
|
||||||
|
|
||||||
$alerts = get_db_all_rows_sql ($sql);//debugPrint($sql);
|
$alerts = get_db_all_rows_sql ($sql);
|
||||||
|
|
||||||
if ($alerts === false)
|
if ($alerts === false)
|
||||||
return array ();
|
return array ();
|
||||||
|
|
Loading…
Reference in New Issue