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
b0f4d153e7
commit
ef47726438
|
@ -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>
|
||||
|
||||
* 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;
|
||||
}
|
||||
|
||||
|
||||
//debugPrint($_POST);
|
||||
|
||||
$action = get_parameter('action', 'new_map');
|
||||
|
||||
echo '<form id="form_setup" method="post" onSubmit="fillOrderField();">';
|
||||
|
|
|
@ -42,7 +42,7 @@ switch ($action) {
|
|||
default:
|
||||
$actionParameter = 'update';
|
||||
$item = get_db_row_filter('treport_content', array('id_rc' => $idItem));
|
||||
//debugPrint($item);
|
||||
|
||||
$type = $item['type'];
|
||||
switch ($type) {
|
||||
case 'avg_value':
|
||||
|
|
|
@ -156,7 +156,7 @@ if (((($offset == 0) && ($config["block_size"] > $countItems)) ||
|
|||
|
||||
$count = 0;
|
||||
$rowPair = true;
|
||||
//debugPrint($items);
|
||||
|
||||
foreach ($items as $item) {
|
||||
if ($rowPair)
|
||||
$table->rowclass[$count] = 'rowPair';
|
||||
|
|
|
@ -82,15 +82,13 @@ switch ($activeTab) {
|
|||
switch ($action) {
|
||||
case 'update':
|
||||
//Update background
|
||||
//debugPrint(get_db_row_filter('tlayout', array('id' => $idVisualConsole)));
|
||||
|
||||
$background = get_parameter('background');
|
||||
$width = get_parameter('width');
|
||||
$height = get_parameter('height');
|
||||
process_sql_update('tlayout', array('background' => $background,
|
||||
'width' => $width, 'height' => $height), array('id' => $idVisualConsole));
|
||||
|
||||
//debugPrint(get_db_row_filter('tlayout', array('id' => $idVisualConsole)));
|
||||
|
||||
//Update elements in visual map
|
||||
$idsElements = get_db_all_rows_filter('tlayout_data', array('id_layout' => $idVisualConsole), array('id'));
|
||||
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",
|
||||
$selectText, $subQuery, $where, $filter, $orderbyText);
|
||||
|
||||
$alerts = get_db_all_rows_sql ($sql); //debugPrint($sql);
|
||||
$alerts = get_db_all_rows_sql ($sql);
|
||||
|
||||
if ($alerts === false)
|
||||
return array ();
|
||||
|
@ -243,7 +243,7 @@ function get_agent_alerts_compound ($id_agent = false, $filter = '', $options =
|
|||
WHERE id_agent IN (%s) %s %s",
|
||||
$selectText, $subQuery, $where, $filter);
|
||||
|
||||
$alerts = get_db_all_rows_sql ($sql);//debugPrint($sql);
|
||||
$alerts = get_db_all_rows_sql ($sql);
|
||||
|
||||
if ($alerts === false)
|
||||
return array ();
|
||||
|
|
Loading…
Reference in New Issue