diff --git a/web/zm_html_view_monitor.php b/web/zm_html_view_monitor.php
index 0de97f2f1..3d3375034 100644
--- a/web/zm_html_view_monitor.php
+++ b/web/zm_html_view_monitor.php
@@ -30,13 +30,7 @@
$result = mysql_query( "select * from TriggersX10 where MonitorId = '$mid'" );
if ( !$result )
die( mysql_error() );
- if ( $x10_monitor = mysql_fetch_assoc( $result ) )
- {
- foreach( $x10_monitor as $key=>$value )
- {
- $monitor['X10'.$key] = $value;
- }
- }
+ $x10_monitor = mysql_fetch_assoc( $result );
}
}
else
@@ -61,6 +55,12 @@
$monitor[FPSReportInterval] = 1000;
$monitor[RefBlendPerc] = 10;
}
+ if ( !isset( $new_monitor ) )
+ {
+ $new_monitor = $monitor;
+ $new_monitor[Triggers] = split( ',', $monitor[Triggers] );
+ $new_x10_monitor = $x10_monitor;
+ }
$local_palettes = array( "Grey"=>1, "RGB24"=>4, "RGB565"=>3, "YUV420P"=>15 );
$remote_palettes = array( "8 bit greyscale"=>1, "24 bit colour"=>4 );
$orientations = array( "Normal"=>0, "Rotate Right"=>90, "Inverted"=>180, "Rotate Left"=>270 );
@@ -84,6 +84,13 @@ function validateForm(Form)
return( true );
}
+function submitTab(Form,Tab)
+{
+ Form.action.value = "";
+ Form.tab.value = Tab;
+ Form.submit();
+}
+
function closeWindow()
{
window.close();
@@ -113,7 +120,7 @@ function closeWindow()
else
{
?>
-
= $value ?> |
+= $value ?> |
">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameter | Value |
@@ -136,124 +213,123 @@ function closeWindow()
case 'monitor' :
{
?>
-Name | |
-Function | |