2003-07-11 17:27:56 +08:00
|
|
|
<?php
|
|
|
|
if ( !canView( 'Monitors' ) )
|
|
|
|
{
|
|
|
|
$view = "error";
|
2003-07-14 22:14:34 +08:00
|
|
|
return;
|
2003-07-11 17:27:56 +08:00
|
|
|
}
|
|
|
|
$result = mysql_query( "select * from Monitors where Id = '$mid'" );
|
|
|
|
if ( !$result )
|
|
|
|
die( mysql_error() );
|
|
|
|
$monitor = mysql_fetch_assoc( $result );
|
|
|
|
|
|
|
|
if ( $zid > 0 )
|
|
|
|
{
|
|
|
|
$result = mysql_query( "select * from Zones where MonitorId = '$mid' and Id = '$zid'" );
|
|
|
|
if ( !$result )
|
|
|
|
die( mysql_error() );
|
|
|
|
$zone = mysql_fetch_assoc( $result );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$zone = array();
|
2004-01-08 18:09:35 +08:00
|
|
|
$zone['Name'] = $zmSlangNew;
|
|
|
|
$zone['LoX'] = 0;
|
|
|
|
$zone['LoY'] = 0;
|
|
|
|
$zone['HiX'] = $monitor['Width']-1;
|
|
|
|
$zone['HiY'] = $monitor['Height']-1;
|
2003-07-11 17:27:56 +08:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
<html>
|
|
|
|
<head>
|
2004-01-08 18:09:35 +08:00
|
|
|
<title>ZM - <?= $monitor['Name'] ?> - <?= $zmSlangZone ?> <?= $zone['Name'] ?></title>
|
2003-07-11 17:27:56 +08:00
|
|
|
<link rel="stylesheet" href="zm_styles.css" type="text/css">
|
|
|
|
<script language="JavaScript">
|
|
|
|
<?php
|
2004-01-08 18:09:35 +08:00
|
|
|
if ( !empty($refresh_parent) )
|
2003-07-11 17:27:56 +08:00
|
|
|
{
|
|
|
|
?>
|
|
|
|
opener.location.reload(true);
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
window.focus();
|
|
|
|
function validateForm( Form )
|
|
|
|
{
|
2003-09-23 17:52:45 +08:00
|
|
|
var errors = new Array();
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_alarm_rgb.value = (Form.new_alarm_rgb_r.value<<16)|(Form.new_alarm_rgb_g.value<<8)|Form.new_alarm_rgb_b.value;
|
2003-09-23 17:52:45 +08:00
|
|
|
if ( Form.new_min_alarm_pixels.value < Form.new_min_filter_pixels.value )
|
|
|
|
{
|
2004-01-07 20:57:07 +08:00
|
|
|
errors[errors.length] = "<?= $zmSlangMinAlarmGeMinFilter ?>";
|
2003-09-23 17:52:45 +08:00
|
|
|
}
|
|
|
|
if ( Form.new_min_filter_pixels.value < Form.new_min_blob_pixels.value )
|
|
|
|
{
|
2004-01-07 20:57:07 +08:00
|
|
|
errors[errors.length] = "<?= $zmSlangMinAlarmGeMinBlob ?>";
|
2003-09-23 17:52:45 +08:00
|
|
|
}
|
|
|
|
if ( errors.length )
|
|
|
|
{
|
|
|
|
alert( errors.join( "\n" ) );
|
|
|
|
return( false );
|
|
|
|
}
|
2003-07-11 17:27:56 +08:00
|
|
|
return( true );
|
|
|
|
}
|
|
|
|
|
|
|
|
function applyZoneType( Form )
|
|
|
|
{
|
|
|
|
if ( Form.new_type.value == 'Inactive' )
|
|
|
|
{
|
|
|
|
Form.new_alarm_rgb_r.disabled = true;
|
|
|
|
Form.new_alarm_rgb_r.value = "";
|
|
|
|
Form.new_alarm_rgb_g.disabled = true;
|
|
|
|
Form.new_alarm_rgb_g.value = "";
|
|
|
|
Form.new_alarm_rgb_b.disabled = true;
|
|
|
|
Form.new_alarm_rgb_b.value = "";
|
|
|
|
Form.new_alarm_threshold.disabled = true;
|
|
|
|
Form.new_alarm_threshold.value = "";
|
|
|
|
Form.new_min_alarm_pixels.disabled = true;
|
|
|
|
Form.new_min_alarm_pixels.value = "";
|
|
|
|
Form.new_max_alarm_pixels.disabled = true;
|
|
|
|
Form.new_max_alarm_pixels.value = "";
|
|
|
|
Form.new_filter_x.disabled = true;
|
|
|
|
Form.new_filter_x.value = "";
|
|
|
|
Form.new_filter_y.disabled = true;
|
|
|
|
Form.new_filter_y.value = "";
|
|
|
|
Form.new_min_filter_pixels.disabled = true;
|
|
|
|
Form.new_min_filter_pixels.value = "";
|
|
|
|
Form.new_max_filter_pixels.disabled = true;
|
|
|
|
Form.new_max_filter_pixels.value = "";
|
|
|
|
Form.new_min_blob_pixels.disabled = true;
|
|
|
|
Form.new_min_blob_pixels.value = "";
|
|
|
|
Form.new_max_blob_pixels.disabled = true;
|
|
|
|
Form.new_max_blob_pixels.value = "";
|
|
|
|
Form.new_min_blobs.disabled = true;
|
|
|
|
Form.new_min_blobs.value = "";
|
|
|
|
Form.new_max_blobs.disabled = true;
|
|
|
|
Form.new_max_blobs.value = "";
|
|
|
|
}
|
|
|
|
else if ( Form.new_type.value == 'Preclusive' )
|
|
|
|
{
|
|
|
|
Form.new_alarm_rgb_r.disabled = true;
|
|
|
|
Form.new_alarm_rgb_r.value = "";
|
|
|
|
Form.new_alarm_rgb_g.disabled = true;
|
|
|
|
Form.new_alarm_rgb_g.value = "";
|
|
|
|
Form.new_alarm_rgb_b.disabled = true;
|
|
|
|
Form.new_alarm_rgb_b.value = "";
|
|
|
|
Form.new_alarm_threshold.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_alarm_threshold.value = "<?= $zone['AlarmThreshold'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_min_alarm_pixels.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_min_alarm_pixels.value = "<?= $zone['MinAlarmPixels'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_max_alarm_pixels.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_max_alarm_pixels.value = "<?= $zone['MaxAlarmPixels'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_filter_x.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_filter_x.value = "<?= $zone['FilterX'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_filter_y.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_filter_y.value = "<?= $zone['FilterY'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_min_filter_pixels.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_min_filter_pixels.value = "<?= $zone['MinFilterPixels'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_max_filter_pixels.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_max_filter_pixels.value = "<?= $zone['MaxFilterPixels'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_min_blob_pixels.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_min_blob_pixels.value = "<?= $zone['MinBlobPixels'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_max_blob_pixels.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_max_blob_pixels.value = "<?= $zone['MaxBlobPixels'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_min_blobs.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_min_blobs.value = "<?= $zone['MinBlobs'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_max_blobs.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_max_blobs.value = "<?= $zone['MaxBlobs'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
Form.new_alarm_rgb_r.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_alarm_rgb_r.value = "<?= ($zone['AlarmRGB']>>16)&0xff; ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_alarm_rgb_g.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_alarm_rgb_g.value = "<?= ($zone['AlarmRGB']>>8)&0xff; ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_alarm_rgb_b.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_alarm_rgb_b.value = "<?= $zone['AlarmRGB']&0xff; ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_alarm_threshold.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_alarm_threshold.value = "<?= $zone['AlarmThreshold'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_min_alarm_pixels.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_min_alarm_pixels.value = "<?= $zone['MinAlarmPixels'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_max_alarm_pixels.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_max_alarm_pixels.value = "<?= $zone['MaxAlarmPixels'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_filter_x.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_filter_x.value = "<?= $zone['FilterX'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_filter_y.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_filter_y.value = "<?= $zone['FilterY'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_min_filter_pixels.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_min_filter_pixels.value = "<?= $zone['MinFilterPixels'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_max_filter_pixels.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_max_filter_pixels.value = "<?= $zone['MaxFilterPixels'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_min_blob_pixels.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_min_blob_pixels.value = "<?= $zone['MinBlobPixels'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_max_blob_pixels.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_max_blob_pixels.value = "<?= $zone['MaxBlobPixels'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_min_blobs.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_min_blobs.value = "<?= $zone['MinBlobs'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
Form.new_max_blobs.disabled = false;
|
2004-01-08 18:09:35 +08:00
|
|
|
Form.new_max_blobs.value = "<?= $zone['MaxBlobs'] ?>";
|
2003-07-11 17:27:56 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function toPixels( Field, maxValue )
|
|
|
|
{
|
|
|
|
Field.value = Math.round((Field.value*maxValue)/100);
|
|
|
|
}
|
|
|
|
|
|
|
|
function toPercent( Field, maxValue )
|
|
|
|
{
|
|
|
|
Field.value = Math.round((100*Field.value)/maxValue);
|
|
|
|
}
|
|
|
|
|
|
|
|
function applyZoneUnits( Form )
|
|
|
|
{
|
2004-01-08 18:09:35 +08:00
|
|
|
var max_width = <?= $monitor['Width']-1 ?>;
|
|
|
|
var max_height = <?= $monitor['Height']-1 ?>;
|
2003-07-11 17:27:56 +08:00
|
|
|
var area = (max_width+1) * (max_height+1);
|
|
|
|
|
|
|
|
if ( Form.new_units.value == 'Pixels' )
|
|
|
|
{
|
|
|
|
toPixels( Form.new_lo_x, max_width );
|
|
|
|
toPixels( Form.new_lo_y, max_height );
|
|
|
|
toPixels( Form.new_hi_x, max_width );
|
|
|
|
toPixels( Form.new_hi_y, max_height );
|
|
|
|
toPixels( Form.new_min_alarm_pixels, area );
|
|
|
|
toPixels( Form.new_max_alarm_pixels, area );
|
|
|
|
toPixels( Form.new_min_filter_pixels, area );
|
|
|
|
toPixels( Form.new_max_filter_pixels, area );
|
|
|
|
toPixels( Form.new_min_blob_pixels, area );
|
|
|
|
toPixels( Form.new_max_blob_pixels, area );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
toPercent( Form.new_lo_x, max_width );
|
|
|
|
toPercent( Form.new_lo_y, max_height );
|
|
|
|
toPercent( Form.new_hi_x, max_width );
|
|
|
|
toPercent( Form.new_hi_y, max_height );
|
|
|
|
toPercent( Form.new_min_alarm_pixels, area );
|
|
|
|
toPercent( Form.new_max_alarm_pixels, area );
|
|
|
|
toPercent( Form.new_min_filter_pixels, area );
|
|
|
|
toPercent( Form.new_max_filter_pixels, area );
|
|
|
|
toPercent( Form.new_min_blob_pixels, area );
|
|
|
|
toPercent( Form.new_max_blob_pixels, area );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function checkBounds( Field, fieldText, minValue, maxValue)
|
|
|
|
{
|
|
|
|
if ( document.zone_form.new_units.value == "Percent" )
|
|
|
|
{
|
|
|
|
minValue = 0;
|
|
|
|
maxValue = 100;
|
|
|
|
}
|
|
|
|
if ( Field.value < minValue )
|
|
|
|
{
|
2004-01-07 20:57:07 +08:00
|
|
|
alert( fieldText + " <?= $zmSlangMustBeGe ?> " + minValue );
|
2003-07-11 17:27:56 +08:00
|
|
|
Field.value = minValue;
|
|
|
|
}
|
|
|
|
if ( Field.value > maxValue )
|
|
|
|
{
|
2004-01-07 20:57:07 +08:00
|
|
|
alert( fieldText + " <?= $zmSlangMustBeLe ?> " + maxValue );
|
2003-07-11 17:27:56 +08:00
|
|
|
Field.value = maxValue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function checkWidth( Field, fieldText )
|
|
|
|
{
|
2004-01-08 18:09:35 +08:00
|
|
|
return( checkBounds( Field, fieldText, 0, <?= $monitor['Width']-1 ?> ) );
|
2003-07-11 17:27:56 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function checkHeight( Field, fieldText )
|
|
|
|
{
|
2004-01-08 18:09:35 +08:00
|
|
|
return( checkBounds( Field, fieldText, 0, <?= $monitor['Height']-1 ?> ) );
|
2003-07-11 17:27:56 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function checkArea( Field, fieldText )
|
|
|
|
{
|
2004-01-08 18:09:35 +08:00
|
|
|
return( checkBounds( Field, fieldText, 0, <?= $monitor['Width']*$monitor['Height'] ?> ) );
|
2003-07-11 17:27:56 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function closeWindow()
|
|
|
|
{
|
|
|
|
window.close();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
|
|
|
<tr>
|
2004-01-08 18:09:35 +08:00
|
|
|
<td colspan="2" align="left" class="head"><?= $zmSlangMonitor ?> <?= $monitor['Name'] ?> - <?= $zmSlangZone ?> <?= $zone['Name'] ?></td>
|
2003-07-11 17:27:56 +08:00
|
|
|
</tr>
|
|
|
|
<form name="zone_form" method="get" action="<?= $PHP_SELF ?>" onsubmit="return validateForm( document.zone_form )">
|
|
|
|
<input type="hidden" name="view" value="<?= $view ?>">
|
|
|
|
<input type="hidden" name="action" value="zone">
|
|
|
|
<input type="hidden" name="mid" value="<?= $mid ?>">
|
|
|
|
<input type="hidden" name="zid" value="<?= $zid ?>">
|
|
|
|
<input type="hidden" name="new_alarm_rgb" value="">
|
|
|
|
<tr>
|
2004-01-07 20:57:07 +08:00
|
|
|
<td align="left" class="smallhead"><?= $zmSlangParameter ?></td><td align="left" class="smallhead"><?= $zmSlangValue ?></td>
|
2003-07-11 17:27:56 +08:00
|
|
|
</tr>
|
2004-01-08 18:09:35 +08:00
|
|
|
<tr><td align="left" class="text"><?= $zmSlangName ?></td><td align="left" class="text"><input type="text" name="new_name" value="<?= $zone['Name'] ?>" size="12" class="form"></td></tr>
|
2004-01-07 20:57:07 +08:00
|
|
|
<tr><td align="left" class="text"><?= $zmSlangType ?></td><td align="left" class="text"><select name="new_type" class="form" onchange="applyZoneType(document.zone_form)">
|
2003-07-11 17:27:56 +08:00
|
|
|
<?php
|
|
|
|
foreach ( getEnumValues( 'Zones', 'Type' ) as $opt_type )
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<option value="<?= $opt_type ?>"<?php if ( $opt_type == $zone['Type'] ) { ?> selected<?php } ?>><?= $opt_type ?></option>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select></td></tr>
|
2004-01-07 20:57:07 +08:00
|
|
|
<tr><td align="left" class="text"><?= $zmSlangUnits ?></td><td align="left" class="text"><select name="new_units" class="form" onchange="applyZoneUnits(document.zone_form)">
|
2003-07-11 17:27:56 +08:00
|
|
|
<?php
|
|
|
|
foreach ( getEnumValues( 'Zones', 'Units' ) as $opt_units )
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<option value="<?= $opt_units ?>"<?php if ( $opt_units == $zone['Units'] ) { ?> selected<?php } ?>><?= $opt_units ?></option>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select></td></tr>
|
2004-01-08 18:09:35 +08:00
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneMinX ?></td><td align="left" class="text"><input type="text" name="new_lo_x" value="<?= $zone['LoX'] ?>" size="4" class="form" onchange="checkWidth(this,'Minimum X')"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneMinY ?></td><td align="left" class="text"><input type="text" name="new_lo_y" value="<?= $zone['LoY'] ?>" size="4" class="form" onchange="checkHeight(this,'Minimum Y')"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneMaxX ?></td><td align="left" class="text"><input type="text" name="new_hi_x" value="<?= $zone['HiX'] ?>" size="4" class="form" onchange="checkWidth(this,'Maximum X')"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneMaxY ?></td><td align="left" class="text"><input type="text" name="new_hi_y" value="<?= $zone['HiY'] ?>" size="4" class="form" onchange="checkHeight(this,'Maximum Y')"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneAlarmColour ?></td><td align="left" class="text">R:<input type="text" name="new_alarm_rgb_r" value="<?= ($zone['AlarmRGB']>>16)&0xff ?>" size="3" class="form"> G:<input type="text" name="new_alarm_rgb_g" value="<?= ($zone['AlarmRGB']>>8)&0xff ?>" size="3" class="form"> B:<input type="text" name="new_alarm_rgb_b" value="<?= $zone['AlarmRGB']&0xff ?>" size="3" class="form"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneAlarmThreshold ?></td><td align="left" class="text"><input type="text" name="new_alarm_threshold" value="<?= $zone['AlarmThreshold'] ?>" size="4" class="form"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneMinAlarmedArea ?></td><td align="left" class="text"><input type="text" name="new_min_alarm_pixels" value="<?= $zone['MinAlarmPixels'] ?>" size="6" class="form" onchange="checkArea(this,'Minimum Alarmed Area')"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneMaxAlarmedArea ?></td><td align="left" class="text"><input type="text" name="new_max_alarm_pixels" value="<?= $zone['MaxAlarmPixels'] ?>" size="6" class="form" onchange="checkArea(this,'Maximum Alarmed Area')"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneFilterWidth ?></td><td align="left" class="text"><input type="text" name="new_filter_x" value="<?= $zone['FilterX'] ?>" size="4" class="form"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneFilterHeight ?></td><td align="left" class="text"><input type="text" name="new_filter_y" value="<?= $zone['FilterY'] ?>" size="4" class="form"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneMinFilteredArea ?></td><td align="left" class="text"><input type="text" name="new_min_filter_pixels" value="<?= $zone['MinFilterPixels'] ?>" size="6" class="form" onchange="checkArea(this,'Minimum Filtered Area')"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneMaxFilteredArea ?></td><td align="left" class="text"><input type="text" name="new_max_filter_pixels" value="<?= $zone['MaxFilterPixels'] ?>" size="6" class="form" onchange="checkArea(this,'Minimum Filtered Area')"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneMinBlobArea ?></td><td align="left" class="text"><input type="text" name="new_min_blob_pixels" value="<?= $zone['MinBlobPixels'] ?>" size="6" class="form"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneMaxBlobArea ?></td><td align="left" class="text"><input type="text" name="new_max_blob_pixels" value="<?= $zone['MaxBlobPixels'] ?>" size="6" class="form"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneMinBlobs ?></td><td align="left" class="text"><input type="text" name="new_min_blobs" value="<?= $zone['MinBlobs'] ?>" size="4" class="form"></td></tr>
|
|
|
|
<tr><td align="left" class="text"><?= $zmSlangZoneMaxBlobs ?></td><td align="left" class="text"><input type="text" name="new_max_blobs" value="<?= $zone['MaxBlobs'] ?>" size="4" class="form"></td></tr>
|
2003-07-11 17:27:56 +08:00
|
|
|
<tr><td colspan="2" align="left" class="text"> </td></tr>
|
|
|
|
<tr>
|
|
|
|
<td align="left"> </td>
|
2004-01-07 20:57:07 +08:00
|
|
|
<td align="left"><input type="submit" value="<?= $zmSlangSave ?>" class="form"<?php if ( !canEdit( 'Monitors' ) ) { ?> disabled<?php } ?>> <input type="button" value="<?= $zmSlangCancel ?>" class="form" onClick="closeWindow()"></td>
|
2003-07-11 17:27:56 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html>
|