0 )
{
$result = mysql_query( "select * from Monitors where Id = '$mid'" );
if ( !$result )
die( mysql_error() );
$monitor = mysql_fetch_assoc( $result );
if ( ZM_OPT_X10 )
{
$result = mysql_query( "select * from TriggersX10 where MonitorId = '$mid'" );
if ( !$result )
die( mysql_error() );
$x10_monitor = mysql_fetch_assoc( $result );
}
}
else
{
$monitor = array();
$monitor[Name] = "New";
$monitor['Function'] = "None";
$monitor['RunMode'] = "Continuous";
$monitor[Type] = "Local";
$monitor[Port] = "80";
$monitor[Orientation] = "0";
$monitor[LabelFormat] = '%%s - %y/%m/%d %H:%M:%S';
$monitor[LabelX] = 0;
$monitor[LabelY] = 0;
$monitor[ImageBufferCount] = 100;
$monitor[WarmupCount] = 25;
$monitor[PreEventCount] = 10;
$monitor[PostEventCount] = 10;
$monitor[SectionLength] = 600;
$monitor[FrameSkip] = 0;
$monitor[MaxFPS] = 0;
$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 );
?>
ZM - Monitor = $monitor[Name] ?>
Monitor = $monitor[Name] ?> |
|
$value )
{
if ( $tab == $name )
{
?>
= $value ?> |
= $value ?> |
|