diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php
index f0c9e959c9..3b393c2fec 100644
--- a/pandora_console/operation/agentes/stat_win.php
+++ b/pandora_console/operation/agentes/stat_win.php
@@ -73,10 +73,11 @@ $label = base64_decode(get_parameter('label', ''));
Pandora FMS Graph ()
-
+
-
+
+
";
}
- $utime = get_system_time ();
- $current = date("Y-m-d", $utime);
+ // Build date
+ $date = strtotime("$start_date $start_time");
+ $now = time();
- if ($start_date != $current)
- $date = strtotime($start_date);
- else
- $date = $utime;
+ if ($date > $now)
+ $date = $now;
$urlImage = ui_get_full_url(false, false, false, false);
@@ -271,12 +272,13 @@ $label = base64_decode(get_parameter('label', ''));
$data = array();
$data[0] = __('Begin date');
- $data[1] = html_print_input_text ("start_date",
- substr($start_date, 0, 10),'', 15, 255, true);
- $data[1] .= html_print_image ("images/calendar_view_day.png",
- true, array(
- "onclick" => "scwShow(scwID('text-start_date'),this);",
- "style" => 'vertical-align: bottom;'));
+ $data[1] = html_print_input_text ("start_date", $start_date,'', 10, 20, true);
+ $table->data[] = $data;
+ $table->rowclass[] = '';
+
+ $data = array();
+ $data[0] = __('Begin time');
+ $data[1] = html_print_input_text ("start_time", $start_time,'', 10, 10, true);
$table->data[] = $data;
$table->rowclass[] = '';
@@ -399,6 +401,15 @@ $label = base64_decode(get_parameter('label', ''));