2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
//
|
|
|
|
// ZoneMinder web console file, $Date$, $Revision$
|
2008-07-25 17:48:16 +08:00
|
|
|
// Copyright (C) 2001-2008 Philip Coombes
|
2008-07-14 21:54:50 +08:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
|
|
|
// as published by the Free Software Foundation; either version 2
|
|
|
|
// of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
//
|
|
|
|
|
|
|
|
$eventCounts = array(
|
|
|
|
array(
|
|
|
|
"title" => $SLANG['Events'],
|
|
|
|
"filter" => array(
|
|
|
|
"terms" => array(
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"title" => $SLANG['Hour'],
|
|
|
|
"filter" => array(
|
|
|
|
"terms" => array(
|
2009-10-21 05:36:17 +08:00
|
|
|
array( "attr" => "DateTime", "op" => ">=", "val" => "-1 hour" ),
|
2008-07-14 21:54:50 +08:00
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"title" => $SLANG['Day'],
|
|
|
|
"filter" => array(
|
|
|
|
"terms" => array(
|
2009-10-21 05:36:17 +08:00
|
|
|
array( "attr" => "DateTime", "op" => ">=", "val" => "-1 day" ),
|
2008-07-14 21:54:50 +08:00
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"title" => $SLANG['Week'],
|
|
|
|
"filter" => array(
|
|
|
|
"terms" => array(
|
2009-10-21 05:36:17 +08:00
|
|
|
array( "attr" => "DateTime", "op" => ">=", "val" => "-7 day" ),
|
2008-07-14 21:54:50 +08:00
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"title" => $SLANG['Month'],
|
|
|
|
"filter" => array(
|
|
|
|
"terms" => array(
|
2009-10-21 05:36:17 +08:00
|
|
|
array( "attr" => "DateTime", "op" => ">=", "val" => "-1 month" ),
|
2008-07-14 21:54:50 +08:00
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"title" => $SLANG['Archived'],
|
|
|
|
"filter" => array(
|
|
|
|
"terms" => array(
|
|
|
|
array( "attr" => "Archived", "op" => "=", "val" => "1" ),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
|
|
|
$running = daemonCheck();
|
|
|
|
$status = $running?$SLANG['Running']:$SLANG['Stopped'];
|
|
|
|
|
|
|
|
if ( $group = dbFetchOne( "select * from Groups where Id = '".(empty($_COOKIE['zmGroup'])?0:dbEscape($_COOKIE['zmGroup']))."'" ) )
|
2010-02-16 01:11:58 +08:00
|
|
|
$groupIds = array_flip(explode( ',', $group['MonitorIds'] ));
|
2008-07-14 21:54:50 +08:00
|
|
|
|
|
|
|
noCacheHeaders();
|
|
|
|
|
|
|
|
$maxWidth = 0;
|
|
|
|
$maxHeight = 0;
|
|
|
|
$cycleCount = 0;
|
|
|
|
$minSequence = 0;
|
|
|
|
$maxSequence = 1;
|
|
|
|
$seqIdList = array();
|
|
|
|
$monitors = dbFetchAll( "select * from Monitors order by Sequence asc" );
|
2008-10-06 03:16:45 +08:00
|
|
|
$displayMonitors = array();
|
2008-07-14 21:54:50 +08:00
|
|
|
for ( $i = 0; $i < count($monitors); $i++ )
|
|
|
|
{
|
|
|
|
if ( !visibleMonitor( $monitors[$i]['Id'] ) )
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if ( $group && !empty($groupIds) && !array_key_exists( $monitors[$i]['Id'], $groupIds ) )
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
$monitors[$i]['Show'] = true;
|
|
|
|
if ( empty($minSequence) || ($monitors[$i]['Sequence'] < $minSequence) )
|
|
|
|
{
|
|
|
|
$minSequence = $monitors[$i]['Sequence'];
|
|
|
|
}
|
|
|
|
if ( $monitors[$i]['Sequence'] > $maxSequence )
|
|
|
|
{
|
|
|
|
$maxSequence = $monitors[$i]['Sequence'];
|
|
|
|
}
|
|
|
|
$monitors[$i]['zmc'] = zmcStatus( $monitors[$i] );
|
|
|
|
$monitors[$i]['zma'] = zmaStatus( $monitors[$i] );
|
|
|
|
$monitors[$i]['ZoneCount'] = dbFetchOne( "select count(Id) as ZoneCount from Zones where MonitorId = '".$monitors[$i]['Id']."'", "ZoneCount" );
|
|
|
|
$counts = array();
|
|
|
|
for ( $j = 0; $j < count($eventCounts); $j++ )
|
|
|
|
{
|
|
|
|
$filter = addFilterTerm( $eventCounts[$j]['filter'], count($eventCounts[$j]['filter']['terms']), array( "cnj" => "and", "attr" => "MonitorId", "op" => "=", "val" => $monitors[$i]['Id'] ) );
|
|
|
|
parseFilter( $filter );
|
|
|
|
$counts[] = "count(if(1".$filter['sql'].",1,NULL)) as EventCount$j";
|
|
|
|
$monitors[$i]['eventCounts'][$j]['filter'] = $filter;
|
|
|
|
}
|
|
|
|
$sql = "select ".join($counts,", ")." from Events as E where MonitorId = '".$monitors[$i]['Id']."'";
|
|
|
|
$counts = dbFetchOne( $sql );
|
|
|
|
if ( $monitors[$i]['Function'] != 'None' )
|
|
|
|
{
|
|
|
|
$cycleCount++;
|
|
|
|
$scaleWidth = reScale( $monitors[$i]['Width'], $monitors[$i]['DefaultScale'], ZM_WEB_DEFAULT_SCALE );
|
|
|
|
$scaleHeight = reScale( $monitors[$i]['Height'], $monitors[$i]['DefaultScale'], ZM_WEB_DEFAULT_SCALE );
|
|
|
|
if ( $maxWidth < $scaleWidth ) $maxWidth = $scaleWidth;
|
|
|
|
if ( $maxHeight < $scaleHeight ) $maxHeight = $scaleHeight;
|
|
|
|
}
|
|
|
|
$monitors[$i] = array_merge( $monitors[$i], $counts );
|
|
|
|
$seqIdList[] = $monitors[$i]['Id'];
|
2008-10-06 03:16:45 +08:00
|
|
|
$displayMonitors[] = $monitors[$i];
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
|
|
|
$lastId = 0;
|
|
|
|
$seqIdUpList = array();
|
|
|
|
foreach ( $seqIdList as $seqId )
|
|
|
|
{
|
|
|
|
if ( !empty($lastId) )
|
|
|
|
$seqIdUpList[$seqId] = $lastId;
|
|
|
|
else
|
|
|
|
$seqIdUpList[$seqId] = $seqId;
|
|
|
|
$lastId = $seqId;
|
|
|
|
}
|
|
|
|
$lastId = 0;
|
|
|
|
$seqIdDownList = array();
|
|
|
|
foreach ( array_reverse($seqIdList) as $seqId )
|
|
|
|
{
|
|
|
|
if ( !empty($lastId) )
|
|
|
|
$seqIdDownList[$seqId] = $lastId;
|
|
|
|
else
|
|
|
|
$seqIdDownList[$seqId] = $seqId;
|
|
|
|
$lastId = $seqId;
|
|
|
|
}
|
|
|
|
|
2008-07-15 17:04:09 +08:00
|
|
|
$cycleWidth = $maxWidth;
|
|
|
|
$cycleHeight = $maxHeight;
|
2008-07-14 21:54:50 +08:00
|
|
|
|
|
|
|
$eventsView = ZM_WEB_EVENTS_VIEW;
|
|
|
|
$eventsWindow = 'zm'.ucfirst(ZM_WEB_EVENTS_VIEW);
|
|
|
|
|
|
|
|
$eventCount = 0;
|
|
|
|
for ( $i = 0; $i < count($eventCounts); $i++ )
|
|
|
|
{
|
|
|
|
$eventCounts[$i]['total'] = 0;
|
|
|
|
}
|
|
|
|
$zoneCount = 0;
|
2008-10-06 03:16:45 +08:00
|
|
|
foreach( $displayMonitors as $monitor )
|
2008-07-14 21:54:50 +08:00
|
|
|
{
|
|
|
|
for ( $i = 0; $i < count($eventCounts); $i++ )
|
|
|
|
{
|
|
|
|
$eventCounts[$i]['total'] += $monitor['EventCount'.$i];
|
|
|
|
}
|
|
|
|
$zoneCount += $monitor['ZoneCount'];
|
|
|
|
}
|
|
|
|
|
2008-07-23 00:24:36 +08:00
|
|
|
$seqUpFile = getSkinFile( 'graphics/seq-u.gif' );
|
|
|
|
$seqDownFile = getSkinFile( 'graphics/seq-d.gif' );
|
|
|
|
|
2008-07-14 21:54:50 +08:00
|
|
|
xhtmlHeaders( __FILE__, $SLANG['Console'] );
|
|
|
|
?>
|
|
|
|
<body>
|
|
|
|
<div id="page">
|
|
|
|
<form name="monitorForm" method="get" action="<?= $_SERVER['PHP_SELF'] ?>">
|
2008-09-26 17:47:20 +08:00
|
|
|
<input type="hidden" name="view" value="<?= $view ?>"/>
|
2008-07-14 21:54:50 +08:00
|
|
|
<input type="hidden" name="action" value=""/>
|
|
|
|
<div id="header">
|
2008-07-16 21:32:37 +08:00
|
|
|
<h3 id="systemTime"><?= preg_match( '/%/', DATE_FMT_CONSOLE_LONG )?strftime( DATE_FMT_CONSOLE_LONG ):date( DATE_FMT_CONSOLE_LONG ) ?></h3>
|
|
|
|
<h3 id="systemStats"><?= $SLANG['Load'] ?>: <?= getLoad() ?> / <?= $SLANG['Disk'] ?>: <?= getDiskPercent() ?>%</h3>
|
|
|
|
<h2 id="title"><a href="http://www.zoneminder.com" target="ZoneMinder">ZoneMinder</a> <?= $SLANG['Console'] ?> - <?= makePopupLink( '?view=state', 'zmState', 'state', $status, canEdit( 'System' ) ) ?> - <?= makePopupLink( '?view=version', 'zmVersion', 'version', "v".ZM_VERSION, canEdit( 'System' ) ) ?></h2>
|
2008-07-14 21:54:50 +08:00
|
|
|
<div class="clear"></div>
|
2008-10-06 03:16:45 +08:00
|
|
|
<div id="monitorSummary"><?= makePopupLink( '?view=groups', 'zmGroups', 'groups', sprintf( $CLANG['MonitorCount'], count($displayMonitors), zmVlang( $VLANG['Monitor'], count($displayMonitors) ) ).($group?' ('.$group['Name'].')':''), canView( 'System' ) ); ?></div>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
2008-09-01 21:58:27 +08:00
|
|
|
if ( ZM_OPT_X10 && canView( 'Devices' ) )
|
2008-07-14 21:54:50 +08:00
|
|
|
{
|
|
|
|
?>
|
2008-07-16 21:32:37 +08:00
|
|
|
<div id="devices"><?= makePopupLink( '?view=devices', 'zmDevices', 'devices', $SLANG['Devices'] ) ?></div>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
}
|
2008-09-01 21:58:27 +08:00
|
|
|
if ( canView( 'System' ) )
|
|
|
|
{
|
2008-07-14 21:54:50 +08:00
|
|
|
?>
|
2008-07-16 21:32:37 +08:00
|
|
|
<div id="options"><?= makePopupLink( '?view=options', 'zmOptions', 'options', $SLANG['Options'] ) ?></div>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
2008-09-01 21:58:27 +08:00
|
|
|
}
|
2008-07-14 21:54:50 +08:00
|
|
|
if ( canView( 'Stream' ) && $cycleCount > 1 )
|
|
|
|
{
|
|
|
|
$cycleGroup = isset($_COOKIE['zmGroup'])?$_COOKIE['zmGroup']:0;
|
|
|
|
?>
|
2009-10-17 01:09:16 +08:00
|
|
|
<div id="cycleMontage"><?= makePopupLink( '?view=cycle&group='.$cycleGroup, 'zmCycle'.$cycleGroup, array( 'cycle', $cycleWidth, $cycleHeight ), $SLANG['Cycle'], $running ) ?> / <?= makePopupLink( '?view=montage&group='.$cycleGroup, 'zmMontage'.$cycleGroup, 'montage', $SLANG['Montage'], $running ) ?></div>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2008-07-16 22:03:18 +08:00
|
|
|
<h3 id="loginBandwidth"><?php
|
2008-07-14 21:54:50 +08:00
|
|
|
if ( ZM_OPT_USE_AUTH )
|
|
|
|
{
|
|
|
|
?><?= $SLANG['LoggedInAs'] ?> <?= makePopupLink( '?view=logout', 'zmLogout', 'logout', $user['Username'], (ZM_AUTH_TYPE == "builtin") ) ?>, <?= strtolower( $SLANG['ConfiguredFor'] ) ?><?php
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
?><?= $SLANG['ConfiguredFor'] ?><?php
|
|
|
|
}
|
2008-07-16 22:03:18 +08:00
|
|
|
?> <?= makePopupLink( '?view=bandwidth', 'zmBandwidth', 'bandwidth', $bwArray[$_COOKIE['zmBandwidth']], ($user && $user['MaxBandwidth'] != 'low' ) ) ?> <?= $SLANG['Bandwidth'] ?></h3>
|
2008-07-14 21:54:50 +08:00
|
|
|
</div>
|
|
|
|
<div id="content">
|
|
|
|
<table id="consoleTable" cellspacing="0">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="colName"><?= $SLANG['Name'] ?></th>
|
|
|
|
<th class="colFunction"><?= $SLANG['Function'] ?></th>
|
|
|
|
<th class="colSource"><?= $SLANG['Source'] ?></th>
|
|
|
|
<?php
|
|
|
|
for ( $i = 0; $i < count($eventCounts); $i++ )
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<th class="colEvents"><?= $eventCounts[$i]['title'] ?></th>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<th class="colZones"><?= $SLANG['Zones'] ?></th>
|
|
|
|
<?php
|
|
|
|
if ( canEdit('Monitors') )
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<th class="colOrder"><?= $SLANG['Order'] ?></th>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<th class="colMark"><?= $SLANG['Mark'] ?></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<td class="colLeftButtons" colspan="3">
|
|
|
|
<input type="button" value="<?= $SLANG['Refresh'] ?>" onclick="location.reload(true);"/>
|
2008-09-29 21:15:13 +08:00
|
|
|
<?= makePopupButton( '?view=monitor', 'zmMonitor0', 'monitor', $SLANG['AddNewMonitor'], (canEdit( 'Monitors' ) && !$user['MonitorIds']) ) ?>
|
2009-10-17 01:09:16 +08:00
|
|
|
<?= makePopupButton( '?view=filter&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3c&filter[terms][0][val]=now', 'zmFilter', 'filter', $SLANG['Filters'], canView( 'Events' ) ) ?>
|
2008-07-14 21:54:50 +08:00
|
|
|
</td>
|
|
|
|
<?php
|
|
|
|
for ( $i = 0; $i < count($eventCounts); $i++ )
|
|
|
|
{
|
|
|
|
parseFilter( $eventCounts[$i]['filter'] );
|
|
|
|
?>
|
2009-10-17 01:09:16 +08:00
|
|
|
<td class="colEvents"><?= makePopupLink( '?view='.$eventsView.'&page=1'.$eventCounts[$i]['filter']['query'], $eventsWindow, $eventsView, $eventCounts[$i]['total'], canView( 'Events' ) ) ?></td>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<td class="colZones"><?= $zoneCount ?></td>
|
|
|
|
<td class="colRightButtons" colspan="<?= canEdit('Monitors')?2:1 ?>"><input type="button" name="editBtn" value="<?= $SLANG['Edit'] ?>" onclick="editMonitor( this )" disabled="disabled"/><input type="button" name="deleteBtn" value="<?= $SLANG['Delete'] ?>" onclick="deleteMonitor( this )" disabled="disabled"/></td>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
2008-10-06 03:16:45 +08:00
|
|
|
foreach( $displayMonitors as $monitor )
|
2008-07-14 21:54:50 +08:00
|
|
|
{
|
|
|
|
?>
|
|
|
|
<tr>
|
|
|
|
<?php
|
|
|
|
if ( !$monitor['zmc'] )
|
|
|
|
$dclass = "errorText";
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if ( !$monitor['zma'] )
|
|
|
|
$dclass = "warnText";
|
|
|
|
else
|
|
|
|
$dclass = "infoText";
|
|
|
|
}
|
|
|
|
if ( $monitor['Function'] == 'None' )
|
|
|
|
$fclass = "errorText";
|
|
|
|
elseif ( $monitor['Function'] == 'Monitor' )
|
|
|
|
$fclass = "warnText";
|
|
|
|
else
|
|
|
|
$fclass = "infoText";
|
|
|
|
if ( !$monitor['Enabled'] )
|
|
|
|
$fclass .= " disabledText";
|
|
|
|
$scale = max( reScale( SCALE_BASE, $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE ), SCALE_BASE );
|
|
|
|
?>
|
2009-10-17 01:09:16 +08:00
|
|
|
<td class="colName"><?= makePopupLink( '?view=watch&mid='.$monitor['Id'], 'zmWatch'.$monitor['Id'], array( 'watch', reScale( $monitor['Width'], $scale ), reScale( $monitor['Height'], $scale ) ), $monitor['Name'], $running && ($monitor['Function'] != 'None') && canView( 'Stream' ) ) ?></td>
|
|
|
|
<td class="colFunction"><?= makePopupLink( '?view=function&mid='.$monitor['Id'], 'zmFunction', 'function', '<span class="'.$fclass.'">'.$monitor['Function'].'</span>', canEdit( 'Monitors' ) ) ?></td>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php if ( $monitor['Type'] == "Local" ) { ?>
|
2009-10-17 01:09:16 +08:00
|
|
|
<td class="colSource"><?= makePopupLink( '?view=monitor&mid='.$monitor['Id'], 'zmMonitor'.$monitor['Id'], 'monitor', '<span class="'.$dclass.'">'.$monitor['Device'].' ('.$monitor['Channel'].')</span>', canEdit( 'Monitors' ) ) ?></td>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php } elseif ( $monitor['Type'] == "Remote" ) { ?>
|
2009-10-17 01:09:16 +08:00
|
|
|
<td class="colSource"><?= makePopupLink( '?view=monitor&mid='.$monitor['Id'], 'zmMonitor'.$monitor['Id'], 'monitor', '<span class="'.$dclass.'">'.preg_replace( '/^.*@/', '', $monitor['Host'] ).'</span>', canEdit( 'Monitors' ) ) ?></td>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php } elseif ( $monitor['Type'] == "File" ) { ?>
|
2009-10-17 01:09:16 +08:00
|
|
|
<td class="colSource"><?= makePopupLink( '?view=monitor&mid='.$monitor['Id'], 'zmMonitor'.$monitor['Id'], 'monitor', '<span class="'.$dclass.'">'.preg_replace( '/^.*\//', '', $monitor['Path'] ).'</span>', canEdit( 'Monitors' ) ) ?></td>
|
2009-01-20 23:01:32 +08:00
|
|
|
<?php } elseif ( $monitor['Type'] == "Ffmpeg" ) { ?>
|
2009-10-17 01:09:16 +08:00
|
|
|
<td class="colSource"><?= makePopupLink( '?view=monitor&mid='.$monitor['Id'], 'zmMonitor'.$monitor['Id'], 'monitor', '<span class="'.$dclass.'">'.preg_replace( '/^.*\//', '', $monitor['Path'] ).'</span>', canEdit( 'Monitors' ) ) ?></td>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php } else { ?>
|
|
|
|
<td class="colSource"> </td>
|
|
|
|
<?php } ?>
|
|
|
|
<?php
|
|
|
|
for ( $i = 0; $i < count($eventCounts); $i++ )
|
|
|
|
{
|
|
|
|
?>
|
2009-10-17 01:09:16 +08:00
|
|
|
<td class="colEvents"><?= makePopupLink( '?view='.$eventsView.'&page=1'.$monitor['eventCounts'][$i]['filter']['query'], $eventsWindow, $eventsView, $monitor['EventCount'.$i], canView( 'Events' ) ) ?></td>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2009-10-17 01:09:16 +08:00
|
|
|
<td class="colZones"><?= makePopupLink( '?view=zones&mid='.$monitor['Id'], 'zmZones', array( 'zones', $monitor['Width'], $monitor['Height'] ), $monitor['ZoneCount'], canView( 'Monitors' ) ) ?></td>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
if ( canEdit('Monitors') )
|
|
|
|
{
|
|
|
|
?>
|
2009-10-17 01:09:16 +08:00
|
|
|
<td class="colOrder"><?= makeLink( '?view='.$view.'&action=sequence&mid='.$monitor['Id'].'&smid='.$seqIdUpList[$monitor['Id']], '<img src="'.$seqUpFile.'" alt="Up"/>', $monitor['Sequence']>$minSequence ) ?><?= makeLink( '?view='.$view.'&action=sequence&mid='.$monitor['Id'].'&smid='.$seqIdDownList[$monitor['Id']], '<img src="'.$seqDownFile.'" alt="Down"/>', $monitor['Sequence']<$maxSequence ) ?></td>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2011-02-07 00:14:16 +08:00
|
|
|
<td class="colMark"><input type="checkbox" name="markMids[]" value="<?= $monitor['Id'] ?>" onclick="setButtonStates( this )"<?php if ( !canEdit( 'Monitors' ) ) { ?> disabled="disabled"<?php } ?>/></td>
|
2008-07-14 21:54:50 +08:00
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|