2003-07-11 17:27:56 +08:00
< ? php
2004-01-08 19:45:57 +08:00
//
// ZoneMinder web console file, $Date$, $Revision$
// Copyright (C) 2003 Philip Coombes
//
// 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.
//
2003-07-11 17:27:56 +08:00
2004-01-08 19:45:57 +08:00
$running = daemonCheck ();
$status = $running ? $zmSlangRunning : $zmSlangStopped ;
2003-07-11 17:27:56 +08:00
2004-01-08 19:45:57 +08:00
if ( ZM_WEB_REFRESH_METHOD == " http " )
2004-04-19 19:23:40 +08:00
header ( " Refresh: " . ZM_WEB_REFRESH_MAIN . " ; URL= $PHP_SELF " );
2004-01-08 19:45:57 +08:00
header ( " Expires: Mon, 26 Jul 1997 05:00:00 GMT " ); // Date in the past
header ( " Last-Modified: " . gmdate ( " D, d M Y H:i:s " ) . " GMT " ); // always modified
header ( " Cache-Control: no-store, no-cache, must-revalidate " ); // HTTP/1.1
header ( " Cache-Control: post-check=0, pre-check=0 " , false );
header ( " Pragma: no-cache " ); // HTTP/1.0
$db_now = strftime ( " %Y-%m-%d %H:%M:%S " );
$sql = " select M.*, count(if(E.Archived=0,1,NULL)) as EventCount, count(if(E.Archived,1,NULL)) as ArchEventCount, count(if(E.StartTime>' $db_now ' - INTERVAL 1 HOUR && E.Archived = 0,1,NULL)) as HourEventCount, count(if(E.StartTime>' $db_now ' - INTERVAL 1 DAY && E.Archived = 0,1,NULL)) as DayEventCount, count(if(E.StartTime>' $db_now ' - INTERVAL 7 DAY && E.Archived = 0,1,NULL)) as WeekEventCount, count(if(E.StartTime>' $db_now ' - INTERVAL 1 MONTH && E.Archived = 0,1,NULL)) as MonthEventCount from Monitors as M left join Events as E on E.MonitorId = M.Id group by M.Id order by M.Id " ;
$result = mysql_query ( $sql );
if ( ! $result )
echo mysql_error ();
$monitors = array ();
$max_width = 0 ;
$max_height = 0 ;
$cycle_count = 0 ;
while ( $row = mysql_fetch_assoc ( $result ) )
{
if ( ! visibleMonitor ( $row [ 'Id' ] ) )
{
continue ;
}
$row [ 'zmc' ] = zmcCheck ( $row );
$row [ 'zma' ] = zmaCheck ( $row );
$sql = " select count(Id) as ZoneCount from Zones where MonitorId = ' " . $row [ 'Id' ] . " ' " ;
$result2 = mysql_query ( $sql );
if ( ! $result2 )
2003-07-11 17:27:56 +08:00
echo mysql_error ();
2004-01-08 19:45:57 +08:00
$row2 = mysql_fetch_assoc ( $result2 );
$monitors [] = array_merge ( $row , $row2 );
if ( $row [ 'Function' ] != 'None' )
2003-07-11 17:27:56 +08:00
{
2004-01-08 19:45:57 +08:00
$cycle_count ++ ;
if ( $max_width < $row [ 'Width' ] ) $max_width = $row [ 'Width' ];
if ( $max_height < $row [ 'Height' ] ) $max_height = $row [ 'Height' ];
2003-07-11 17:27:56 +08:00
}
2004-01-08 19:45:57 +08:00
}
$montage_rows = intval ( ceil ( $cycle_count / ZM_WEB_MONTAGE_MAX_COLS ));
$montage_cols = $cycle_count >= ZM_WEB_MONTAGE_MAX_COLS ? ZM_WEB_MONTAGE_MAX_COLS : $cycle_count ;
2004-02-16 03:47:23 +08:00
$montage_width = ZM_WEB_MONTAGE_WIDTH ? ZM_WEB_MONTAGE_WIDTH : $max_width ;
$montage_height = ZM_WEB_MONTAGE_HEIGHT ? ZM_WEB_MONTAGE_HEIGHT : $max_height ;
2004-01-08 19:45:57 +08:00
2003-07-11 17:27:56 +08:00
?>
< html >
< head >
< title > ZM - Console </ title >
< link rel = " stylesheet " href = " zm_styles.css " type = " text/css " >
2004-01-25 23:43:11 +08:00
< link rel = " shortcut icon " href = " favicon.ico " >
< link rel = " icon " type = " image/ico " href = " favicon.ico " >
2003-07-11 17:27:56 +08:00
< script language = " JavaScript " >
window . resizeTo ( < ? = $jws [ 'console' ][ 'w' ] ?> , <?= $jws['console']['h'] ?> );
function newWindow ( Url , Name , Width , Height )
{
var Name = window . open ( Url , Name , " resizable,width= " + Width + " ,height= " + Height );
}
function scrollWindow ( Url , Name , Width , Height )
{
var Name = window . open ( Url , Name , " resizable,scrollbars,width= " + Width + " ,height= " + Height );
}
function configureButton ( form , name )
{
var checked = false ;
for ( var i = 0 ; i < form . elements . length ; i ++ )
{
if ( form . elements [ i ] . name . indexOf ( name ) == 0 )
{
if ( form . elements [ i ] . checked )
{
checked = true ;
break ;
}
}
}
form . delete_btn . disabled = ! checked ;
}
function confirmDelete ()
{
return ( confirm ( 'Warning, deleting a monitor also deletes all events and database entries associated with it.\nAre you sure you wish to delete?' ) );
}
< ? php
2004-01-08 19:45:57 +08:00
if ( ZM_WEB_REFRESH_METHOD == " javascript " )
{
2003-07-11 17:27:56 +08:00
?>
2004-04-19 19:23:40 +08:00
window . setTimeout ( " window.location.replace('<?= $PHP_SELF ?>') " , < ? = ( ZM_WEB_REFRESH_MAIN * 1000 ) ?> );
2003-07-11 17:27:56 +08:00
< ? php
2004-01-08 19:45:57 +08:00
}
2003-07-11 17:27:56 +08:00
?>
2004-01-27 18:17:23 +08:00
< ? php
2004-02-07 18:28:54 +08:00
if ( ZM_CHECK_FOR_UPDATES && canEdit ( 'System' ) && ZM_DYN_LAST_VERSION && ( ZM_VERSION != ZM_DYN_LAST_VERSION ) && ( ZM_DYN_LAST_VERSION != ZM_DYN_CURR_VERSION ) && ( ZM_DYN_NEXT_REMINDER < time () ) )
2004-01-27 18:17:23 +08:00
{
?>
newWindow ( '<?= $PHP_SELF ?>?view=version' , 'zmVersion' , < ? = $jws [ 'version' ][ 'w' ] ?> , <?= $jws['version']['h'] ?> );
< ? php
}
?>
2003-07-11 17:27:56 +08:00
</ script >
</ head >
2003-12-16 22:56:36 +08:00
< body scroll = " auto " >
2003-07-11 17:27:56 +08:00
< table align = " center " border = " 0 " cellspacing = " 2 " cellpadding = " 2 " width = " 96% " >
< tr >
< td class = " smallhead " align = " left " >< ? = date ( " D jS M, g:ia " ) ?> </td>
2004-01-27 18:17:23 +08:00
< td class = " bighead " align = " center " >< strong >< a href = " http://www.zoneminder.com " target = " ZoneMinder " > ZoneMinder </ a > < ? = $zmSlangConsole ?> - <?php if ( canEdit( 'System' ) ) { ?><a href="javascript: newWindow( '<?= $PHP_SELF ?>?view=state', 'zmState', <?= $jws['state']['w'] ?>, <?= $jws['state']['h'] ?> );"><?= $status ?></a> - <?php } ?><?= makeLink( "javascript: newWindow( '$PHP_SELF?view=version', 'zmVersion', ".$jws['version']['w'].", ".$jws['version']['h']." );", "v".ZM_VERSION, canEdit( 'System' ) ) ?></strong></td>
2004-04-21 17:20:28 +08:00
< td class = " smallhead " align = " right " >< ? = $zmSlangLoad ?> : <?= getLoad() ?> / <?= $zmSlangDisk ?>: <?= getDiskPercent() ?>%</td>
2003-07-11 17:27:56 +08:00
</ tr >
< tr >
< td class = " smallhead " align = " left " >
< ? php
2004-01-08 19:45:57 +08:00
if ( canView ( 'Stream' ) && $cycle_count > 1 )
{
2003-07-11 17:27:56 +08:00
?>
2004-02-19 23:43:05 +08:00
< a href = " javascript: newWindow( '<?= $PHP_SELF ?>?view=cycle', 'zmCycle', <?= $montage_width + $jws['cycle'] ['w'] ?>, <?= $montage_height + $jws['cycle'] ['h'] ?> ); " >< ? = sprintf ( $zmClangMonitorCount , count ( $monitors ), zmVlang ( $zmVlangMonitor , count ( $monitors ) ) ) ?> </a> (<a href="javascript: newWindow( '<?= $PHP_SELF ?>?view=montage', 'zmMontage', <?= ($montage_cols*$montage_width)+$jws['montage']['w'] ?>, <?= ($montage_rows*((ZM_WEB_COMPACT_MONTAGE?4:40)+$montage_height))+$jws['montage']['h'] ?> );"><?= $zmSlangMontage ?></a>)
2003-07-11 17:27:56 +08:00
< ? php
2004-01-08 19:45:57 +08:00
}
else
{
2003-07-11 17:27:56 +08:00
?>
2004-01-07 20:57:07 +08:00
< ? = sprintf ( $zmClangMonitorCount , count ( $monitors ), zmVlang ( $zmVlangMonitor , count ( $monitors ) ) ) ?>
2003-07-11 17:27:56 +08:00
< ? php
2004-01-08 19:45:57 +08:00
}
2003-07-11 17:27:56 +08:00
?>
</ td >
< ? php
2004-01-08 19:45:57 +08:00
if ( ZM_OPT_USE_AUTH )
{
2003-07-11 17:27:56 +08:00
?>
2004-01-08 18:09:35 +08:00
< td class = " smallhead " align = " center " >< ? = $zmSlangLoggedInAs ?> <a href="javascript: newWindow( '<?= $PHP_SELF ?>?view=logout', 'zmLogout', <?= $jws['logout']['w'] ?>, <?= $jws['logout']['h'] ?>);"><?= $user['Username'] ?></a>, <?= strtolower( $zmSlangConfiguredFor ) ?>
2003-07-11 17:27:56 +08:00
< ? php
2004-01-08 19:45:57 +08:00
}
else
{
2003-07-11 17:27:56 +08:00
?>
2004-01-07 20:57:07 +08:00
< td class = " smallhead " align = " center " >< ? = $zmSlangConfiguredFor ?>
2003-07-11 17:27:56 +08:00
< ? php
2004-01-08 19:45:57 +08:00
}
2003-07-11 17:27:56 +08:00
?>
2004-01-08 18:09:35 +08:00
& nbsp ; < a href = " javascript: newWindow( '<?= $PHP_SELF ?>?view=bandwidth', 'zmBandwidth', <?= $jws['bandwidth'] ['w'] ?>, <?= $jws['bandwidth'] ['h'] ?>); " >< ? = strtolower ( $bw_array [ $bandwidth ] ) ?> </a> <?= strtolower( $zmSlangBandwidth ) ?></td>
< td class = " smallhead " align = " right " >< ? = makeLink ( " javascript: newWindow( ' $PHP_SELF ?view=options', 'zmOptions', " . $jws [ 'options' ][ 'w' ] . " , " . $jws [ 'options' ][ 'h' ] . " ); " , $zmSlangOptions , canView ( 'System' ) ) ?> </td>
2003-07-11 17:27:56 +08:00
</ tr >
</ table >
< table align = " center " border = " 0 " cellspacing = " 2 " cellpadding = " 2 " width = " 96% " >
< form name = " monitor_form " method = " get " action = " <?= $PHP_SELF ?> " onSubmit = " return(confirmDelete()); " >
< input type = " hidden " name = " view " value = " <?= $view ?> " >
< input type = " hidden " name = " action " value = " delete " >
2004-01-07 20:57:07 +08:00
< tr >< td align = " left " class = " smallhead " >< ? = $zmSlangId ?> </td>
< td align = " left " class = " smallhead " >< ? = $zmSlangName ?> </td>
< td align = " left " class = " smallhead " >< ? = $zmSlangFunction ?> </td>
< td align = " left " class = " smallhead " >< ? = $zmSlangSource ?> </td>
< td align = " right " class = " smallhead " >< ? = $zmSlangEvents ?> </td>
< td align = " right " class = " smallhead " >< ? = $zmSlangHour ?> </td>
< td align = " right " class = " smallhead " >< ? = $zmSlangDay ?> </td>
< td align = " right " class = " smallhead " >< ? = $zmSlangWeek ?> </td>
< td align = " right " class = " smallhead " >< ? = $zmSlangMonth ?> </td>
< td align = " right " class = " smallhead " >< ? = $zmSlangArchive ?> </td>
< td align = " right " class = " smallhead " >< ? = $zmSlangZones ?> </td>
< td align = " center " class = " smallhead " >< ? = $zmSlangMark ?> </td>
2003-07-11 17:27:56 +08:00
</ tr >
< ? php
2004-01-08 19:45:57 +08:00
$event_count = 0 ;
$hour_event_count = 0 ;
$day_event_count = 0 ;
$week_event_count = 0 ;
$month_event_count = 0 ;
$arch_event_count = 0 ;
$zone_count = 0 ;
foreach ( $monitors as $monitor )
{
$event_count += $monitor [ 'EventCount' ];
$hour_event_count += $monitor [ 'HourEventCount' ];
$day_event_count += $monitor [ 'DayEventCount' ];
$week_event_count += $monitor [ 'WeekEventCount' ];
$month_event_count += $monitor [ 'MonthEventCount' ];
$arch_event_count += $monitor [ 'ArchEventCount' ];
$zone_count += $monitor [ 'ZoneCount' ];
2003-07-11 17:27:56 +08:00
?>
< tr >
2004-01-08 18:09:35 +08:00
< td align = " center " class = " text " >< ? = makeLink ( " javascript: newWindow( ' $PHP_SELF ?view=monitor&mid= " . $monitor [ 'Id' ] . " ', 'zmMonitor', " . $jws [ 'monitor' ][ 'w' ] . " , " . $jws [ 'monitor' ][ 'h' ] . " ); " , $monitor [ 'Id' ] . '.' , canView ( 'Monitors' ) ) ?> </td>
2003-07-11 17:27:56 +08:00
< ? php
2004-01-08 19:45:57 +08:00
if ( ! $monitor [ 'zmc' ] )
{
$dclass = " redtext " ;
}
else
{
if ( ! $monitor [ 'zma' ] )
2003-07-11 17:27:56 +08:00
{
2004-01-08 19:45:57 +08:00
$dclass = " ambtext " ;
2003-07-11 17:27:56 +08:00
}
else
{
2004-01-08 19:45:57 +08:00
$dclass = " gretext " ;
2003-10-08 22:48:35 +08:00
}
2004-01-08 19:45:57 +08:00
}
if ( $monitor [ 'Function' ] == 'None' )
{
$fclass = " redtext " ;
}
elseif ( $monitor [ 'Function' ] == 'Monitor' )
{
$fclass = " ambtext " ;
}
else
{
$fclass = " gretext " ;
}
if ( $monitor [ 'RunMode' ] == 'Triggered' )
{
$fclass .= " em " ;
}
2003-07-11 17:27:56 +08:00
?>
2004-01-15 05:18:52 +08:00
< td align = " left " class = " text " >< ? = makeLink ( " javascript: newWindow( ' $PHP_SELF ?view=watch&mid= " . $monitor [ 'Id' ] . " ', 'zmWatch " . $monitor [ 'Id' ] . " ', " . ( $monitor [ 'Width' ] + $jws [ 'watch' ][ 'w' ]) . " , " . ( $monitor [ 'Height' ] + $jws [ 'watch' ][ 'h' ]) . " ); " , $monitor [ 'Name' ], canView ( 'Stream' ) ) ?> </td>
2004-01-08 18:09:35 +08:00
< td align = " left " class = " text " >< ? = makeLink ( " javascript: newWindow( ' $PHP_SELF ?view=function&mid= " . $monitor [ 'Id' ] . " ', 'zmFunction', " . $jws [ 'function' ][ 'w' ] . " , " . $jws [ 'function' ][ 'h' ] . " ); " , " <span class= \" $fclass\ " > " . $monitor['Function'] . " </ span > " , canEdit( 'Monitors' ) ) ?></td>
< ? php if ( $monitor [ 'Type' ] == " Local " ) { ?>
< td align = " left " class = " text " >< ? = makeLink ( " javascript: newWindow( ' $PHP_SELF ?view=monitor&mid= " . $monitor [ 'Id' ] . " ', 'zmMonitor', " . $jws [ 'monitor' ][ 'w' ] . " , " . $jws [ 'monitor' ][ 'h' ] . " ); " , " <span class= \" $dclass\ " >/ dev / video " . $monitor['Device'] . " ( " . $monitor['Channel'] . " ) </ span > " , canEdit( 'Monitors' ) ) ?></td>
2003-07-11 17:27:56 +08:00
< ? php } else { ?>
2004-02-16 03:17:38 +08:00
< td align = " left " class = " text " >< ? = makeLink ( " javascript: newWindow( ' $PHP_SELF ?view=monitor&mid= " . $monitor [ 'Id' ] . " ', 'zmMonitor', " . $jws [ 'monitor' ][ 'w' ] . " , " . $jws [ 'monitor' ][ 'h' ] . " ); " , " <span class= \" $dclass\ " > " .preg_replace( '/^.*@/', '', $monitor['Host'] ). " </ span > " , canEdit( 'Monitors' ) ) ?></td>
2003-07-11 17:27:56 +08:00
< ? php } ?>
2004-02-16 03:42:00 +08:00
< td align = " right " class = " text " >< ? = makeLink ( " javascript: scrollWindow( ' $PHP_SELF ?view=events&page=1&filter=1&trms=2&attr1=MonitorId&op1=%3d&val1= " . $monitor [ 'Id' ] . " &cnj2=and&attr2=Archived&val2=0', 'zmEvents', " . $jws [ 'events' ][ 'w' ] . " , " . $jws [ 'events' ][ 'h' ] . " ); " , $monitor [ 'EventCount' ], canView ( 'Events' ) ) ?> </td>
2004-04-20 00:00:40 +08:00
< td align = " right " class = " text " >< ? = makeLink ( " javascript: scrollWindow( ' $PHP_SELF ?view=events&page=1&filter=1&trms=3&attr1=MonitorId&op1=%3d&val1= " . $monitor [ 'Id' ] . " &cnj2=and&attr2=Archived&val2=0&cnj3=and&attr3=DateTime&op3=%3e%3d&val3=-1+hour', 'zmEvents', " . $jws [ 'events' ][ 'w' ] . " , " . $jws [ 'events' ][ 'h' ] . " ); " , $monitor [ 'HourEventCount' ], canView ( 'Events' ) ) ?> </td>
< td align = " right " class = " text " >< ? = makeLink ( " javascript: scrollWindow( ' $PHP_SELF ?view=events&page=1&filter=1&trms=3&attr1=MonitorId&op1=%3d&val1= " . $monitor [ 'Id' ] . " &cnj2=and&attr2=Archived&val2=0&cnj3=and&attr3=DateTime&op3=%3e%3d&val3=-1+day', 'zmEvents', " . $jws [ 'events' ][ 'w' ] . " , " . $jws [ 'events' ][ 'h' ] . " ); " , $monitor [ 'DayEventCount' ], canView ( 'Events' ) ) ?> </td>
< td align = " right " class = " text " >< ? = makeLink ( " javascript: scrollWindow( ' $PHP_SELF ?view=events&page=1&filter=1&trms=3&attr1=MonitorId&op1=%3d&val1= " . $monitor [ 'Id' ] . " &cnj2=and&attr2=Archived&val2=0&cnj3=and&attr3=DateTime&op3=%3e%3d&val3=-1+week', 'zmEvents', " . $jws [ 'events' ][ 'w' ] . " , " . $jws [ 'events' ][ 'h' ] . " ); " , $monitor [ 'WeekEventCount' ], canView ( 'Events' ) ) ?> </td>
< td align = " right " class = " text " >< ? = makeLink ( " javascript: scrollWindow( ' $PHP_SELF ?view=events&page=1&filter=1&trms=3&attr1=MonitorId&op1=%3d&val1= " . $monitor [ 'Id' ] . " &cnj2=and&attr2=Archived&val2=0&cnj3=and&attr3=DateTime&op3=%3e%3d&val3=-1+month', 'zmEvents', " . $jws [ 'events' ][ 'w' ] . " , " . $jws [ 'events' ][ 'h' ] . " ); " , $monitor [ 'MonthEventCount' ], canView ( 'Events' ) ) ?> </td>
2004-03-15 18:03:16 +08:00
< td align = " right " class = " text " >< ? = makeLink ( " javascript: scrollWindow( ' $PHP_SELF ?view=events&page=1&filter=1&trms=2&attr1=MonitorId&op1=%3d&val1= " . $monitor [ 'Id' ] . " &cnj2=and&attr2=Archived&val2=1', 'zmEvents', " . $jws [ 'events' ][ 'w' ] . " , " . $jws [ 'events' ][ 'h' ] . " ); " , $monitor [ 'ArchEventCount' ], canView ( 'Events' ) ) ?> </td>
2004-01-08 18:09:35 +08:00
< td align = " right " class = " text " >< ? = makeLink ( " javascript: newWindow( ' $PHP_SELF ?view=zones&mid= " . $monitor [ 'Id' ] . " ', 'zmZones', " . ( $monitor [ 'Width' ] + $jws [ 'zones' ][ 'w' ]) . " , " . ( $monitor [ 'Height' ] + $jws [ 'zones' ][ 'h' ]) . " ); " , $monitor [ 'ZoneCount' ], canView ( 'Monitors' ) ) ?> </td>
< td align = " center " class = " text " >< input type = " checkbox " name = " mark_mids[] " value = " <?= $monitor['Id'] ?> " onClick = " configureButton( document.monitor_form, 'mark_mids' ); " < ? php if ( ! canEdit ( 'Monitors' ) || isset ( $user [ 'MonitorIds' ]) ) { ?> disabled<?php } ?>></td>
2003-07-11 17:27:56 +08:00
</ tr >
< ? php
2004-01-08 19:45:57 +08:00
}
2003-07-11 17:27:56 +08:00
?>
< tr >
< td colspan = " 2 " align = " center " >
2004-01-07 20:57:07 +08:00
< input type = " button " value = " <?= $zmSlangRefresh ?> " class = " form " onClick = " javascript: location.reload(true); " >
2003-07-11 17:27:56 +08:00
</ td >
< td colspan = " 2 " align = " center " >
2004-01-08 18:09:35 +08:00
< input type = " button " value = " <?= $zmSlangAddNewMonitor ?> " class = " form " onClick = " javascript: newWindow( '<?= $PHP_SELF ?>?view=monitor', 'zmMonitor', <?= $jws['monitor'] ['w'] ?>, <?= $jws['monitor'] ['h'] ?>); " < ? php if ( ! canEdit ( 'Monitors' ) || isset ( $user [ 'MonitorIds' ]) ) { ?> disabled<?php } ?>>
2003-07-11 17:27:56 +08:00
</ td >
2004-02-16 03:42:00 +08:00
< td align = " right " class = " text " >< ? = makeLink ( " javascript: scrollWindow( ' $PHP_SELF ?view=events&page=1&filter=1&trms=1&attr1=Archived&val1=0', 'zmEvents', " . $jws [ 'events' ][ 'w' ] . " , " . $jws [ 'events' ][ 'h' ] . " ); " , $event_count , canView ( 'Events' ) ) ?> </td>
2004-04-20 00:00:40 +08:00
< td align = " right " class = " text " >< ? = makeLink ( " javascript: scrollWindow( ' $PHP_SELF ?view=events&page=1&filter=1&trms=2&attr1=Archived&val1=0&cnj2=and&attr2=DateTime&op2=%3e%3d&val2=-1+hour', 'zmEvents', " . $jws [ 'events' ][ 'w' ] . " , " . $jws [ 'events' ][ 'h' ] . " ); " , $hour_event_count , canView ( 'Events' ) ) ?> </td>
< td align = " right " class = " text " >< ? = makeLink ( " javascript: scrollWindow( ' $PHP_SELF ?view=events&page=1&filter=1&trms=2&attr1=Archived&val1=0&cnj2=and&attr2=DateTime&op2=%3e%3d&val2=-1+day', 'zmEvents', " . $jws [ 'events' ][ 'w' ] . " , " . $jws [ 'events' ][ 'h' ] . " ); " , $day_event_count , canView ( 'Events' ) ) ?> </td>
< td align = " right " class = " text " >< ? = makeLink ( " javascript: scrollWindow( ' $PHP_SELF ?view=events&page=1&filter=1&trms=2&attr1=Archived&val1=0&cnj2=and&attr2=DateTime&op2=%3e%3d&val2=-1+week', 'zmEvents', " . $jws [ 'events' ][ 'w' ] . " , " . $jws [ 'events' ][ 'h' ] . " ); " , $week_event_count , canView ( 'Events' ) ) ?> </td>
< td align = " right " class = " text " >< ? = makeLink ( " javascript: scrollWindow( ' $PHP_SELF ?view=events&page=1&filter=1&trms=2&attr1=Archived&val1=0&cnj2=and&attr2=DateTime&op2=%3e%3d&val2=-1+month', 'zmEvents', " . $jws [ 'events' ][ 'w' ] . " , " . $jws [ 'events' ][ 'h' ] . " ); " , $month_event_count , canView ( 'Events' ) ) ?> </td>
2004-02-16 03:42:00 +08:00
< td align = " right " class = " text " >< ? = makeLink ( " javascript: scrollWindow( ' $PHP_SELF ?view=events&page=1&filter=1&trms=1&attr1=Archived&val1=1', 'zmEvents', " . $jws [ 'events' ][ 'w' ] . " , " . $jws [ 'events' ][ 'h' ] . " ); " , $arch_event_count , canView ( 'Events' ) ) ?> </td>
2003-07-11 17:27:56 +08:00
< td align = " right " class = " text " >< ? = $zone_count ?> </td>
2004-01-07 20:57:07 +08:00
< td align = " center " >< input type = " submit " name = " delete_btn " value = " <?= $zmSlangDelete ?> " class = " form " disabled ></ td >
2003-07-11 17:27:56 +08:00
</ tr >
</ form >
</ table >
</ body >
</ html >