2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
//
|
|
|
|
// ZoneMinder web events view 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
|
2016-12-26 23:23:16 +08:00
|
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2008-07-14 21:54:50 +08:00
|
|
|
//
|
|
|
|
|
2017-05-06 02:25:25 +08:00
|
|
|
if ( !canView( 'Events' ) || (!empty($_REQUEST['execute']) && !canEdit('Events')) ) {
|
2017-06-01 09:34:38 +08:00
|
|
|
$view = 'error';
|
|
|
|
return;
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
|
|
|
|
2017-01-02 23:35:51 +08:00
|
|
|
require_once( 'includes/Event.php' );
|
|
|
|
|
2008-07-14 21:54:50 +08:00
|
|
|
|
2014-03-22 05:16:56 +08:00
|
|
|
$countSql = 'SELECT count(E.Id) AS EventCount FROM Monitors AS M INNER JOIN Events AS E ON (M.Id = E.MonitorId) WHERE';
|
2016-04-02 02:07:27 +08:00
|
|
|
$eventsSql = 'SELECT E.*,M.Name AS MonitorName,M.DefaultScale FROM Monitors AS M INNER JOIN Events AS E on (M.Id = E.MonitorId) WHERE';
|
2014-03-22 05:16:56 +08:00
|
|
|
if ( $user['MonitorIds'] ) {
|
2015-02-24 03:34:13 +08:00
|
|
|
$user_monitor_ids = ' M.Id in ('.$user['MonitorIds'].')';
|
2014-03-22 05:16:56 +08:00
|
|
|
$countSql .= $user_monitor_ids;
|
|
|
|
$eventsSql .= $user_monitor_ids;
|
|
|
|
} else {
|
2017-06-01 09:34:38 +08:00
|
|
|
$countSql .= ' 1';
|
|
|
|
$eventsSql .= ' 1';
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
parseSort();
|
|
|
|
parseFilter( $_REQUEST['filter'] );
|
|
|
|
$filterQuery = $_REQUEST['filter']['query'];
|
|
|
|
|
2017-05-06 02:25:25 +08:00
|
|
|
if ( $_REQUEST['filter']['sql'] ) {
|
2017-06-01 09:34:38 +08:00
|
|
|
$countSql .= $_REQUEST['filter']['sql'];
|
|
|
|
$eventsSql .= $_REQUEST['filter']['sql'];
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
2014-03-22 05:16:56 +08:00
|
|
|
$eventsSql .= " ORDER BY $sortColumn $sortOrder";
|
2008-07-14 21:54:50 +08:00
|
|
|
|
2008-09-26 17:47:20 +08:00
|
|
|
if ( isset($_REQUEST['page']) )
|
2017-06-01 09:34:38 +08:00
|
|
|
$page = validInt($_REQUEST['page']);
|
2008-09-26 17:47:20 +08:00
|
|
|
else
|
2017-06-01 09:34:38 +08:00
|
|
|
$page = 0;
|
2008-09-26 17:47:20 +08:00
|
|
|
if ( isset($_REQUEST['limit']) )
|
2017-06-01 09:34:38 +08:00
|
|
|
$limit = validInt($_REQUEST['limit']);
|
2008-09-26 17:47:20 +08:00
|
|
|
else
|
2017-06-01 09:34:38 +08:00
|
|
|
$limit = 0;
|
2008-09-26 17:47:20 +08:00
|
|
|
|
2008-07-14 21:54:50 +08:00
|
|
|
$nEvents = dbFetchOne( $countSql, 'EventCount' );
|
2017-05-06 02:25:25 +08:00
|
|
|
if ( !empty($limit) && $nEvents > $limit ) {
|
2017-06-01 09:34:38 +08:00
|
|
|
$nEvents = $limit;
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
|
|
|
$pages = (int)ceil($nEvents/ZM_WEB_EVENTS_PER_PAGE);
|
2016-04-16 04:11:53 +08:00
|
|
|
if ( !empty($page) ) {
|
2017-05-06 02:25:25 +08:00
|
|
|
if ( $page < 0 )
|
|
|
|
$page = 1;
|
|
|
|
else if ( $page > $pages )
|
|
|
|
$page = $pages;
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
2017-05-06 02:25:25 +08:00
|
|
|
|
2014-03-22 05:16:56 +08:00
|
|
|
if ( !empty($page) ) {
|
2017-05-06 02:25:25 +08:00
|
|
|
$limitStart = (($page-1)*ZM_WEB_EVENTS_PER_PAGE);
|
|
|
|
if ( empty( $limit ) ) {
|
|
|
|
$limitAmount = ZM_WEB_EVENTS_PER_PAGE;
|
|
|
|
} else {
|
|
|
|
$limitLeft = $limit - $limitStart;
|
|
|
|
$limitAmount = ($limitLeft>ZM_WEB_EVENTS_PER_PAGE)?ZM_WEB_EVENTS_PER_PAGE:$limitLeft;
|
|
|
|
}
|
|
|
|
$eventsSql .= " limit $limitStart, $limitAmount";
|
2014-03-22 05:16:56 +08:00
|
|
|
} elseif ( !empty( $limit ) ) {
|
2017-05-31 01:47:30 +08:00
|
|
|
$eventsSql .= ' limit 0, '.$limit;
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
$maxShortcuts = 5;
|
2009-10-17 01:09:16 +08:00
|
|
|
$pagination = getPagination( $pages, $page, $maxShortcuts, $filterQuery.$sortQuery.'&limit='.$limit );
|
2008-07-14 21:54:50 +08:00
|
|
|
|
|
|
|
$focusWindow = true;
|
|
|
|
|
2015-05-10 21:10:30 +08:00
|
|
|
xhtmlHeaders(__FILE__, translate('Events') );
|
2008-07-14 21:54:50 +08:00
|
|
|
|
|
|
|
?>
|
|
|
|
<body>
|
|
|
|
<div id="page">
|
2017-11-21 03:52:21 +08:00
|
|
|
<?php echo getNavBarHTML() ?>
|
2008-07-14 21:54:50 +08:00
|
|
|
<div id="header">
|
2017-11-28 21:23:54 +08:00
|
|
|
<div id="info">
|
|
|
|
<h2><?php echo sprintf( $CLANG['EventCount'], $nEvents, zmVlang( $VLANG['Event'], $nEvents ) ) ?></h2>
|
|
|
|
<a id="refreshLink" href="#" onclick="location.reload(true);"><?php echo translate('Refresh') ?></a>
|
|
|
|
</div>
|
|
|
|
<div id="pagination">
|
2017-11-21 03:30:23 +08:00
|
|
|
<?php
|
|
|
|
if ( $pagination ) {
|
|
|
|
?>
|
2017-11-28 21:23:54 +08:00
|
|
|
<h2 class="pagination"><?php echo $pagination ?></h2>
|
2017-11-21 03:30:23 +08:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
2017-05-06 02:25:25 +08:00
|
|
|
if ( $pages > 1 ) {
|
2017-05-31 01:47:30 +08:00
|
|
|
if ( !empty($page) ) {
|
2008-07-14 21:54:50 +08:00
|
|
|
?>
|
2015-05-10 21:10:30 +08:00
|
|
|
<a href="?view=<?php echo $view ?>&page=0<?php echo $filterQuery ?><?php echo $sortQuery ?>&limit=<?php echo $limit ?>"><?php echo translate('ViewAll') ?></a>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
2017-05-31 01:47:30 +08:00
|
|
|
} else {
|
2008-07-14 21:54:50 +08:00
|
|
|
?>
|
2015-05-10 21:10:30 +08:00
|
|
|
<a href="?view=<?php echo $view ?>&page=1<?php echo $filterQuery ?><?php echo $sortQuery ?>&limit=<?php echo $limit ?>"><?php echo translate('ViewPaged') ?></a>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
2017-05-31 01:47:30 +08:00
|
|
|
}
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
|
|
|
?>
|
2017-11-28 21:23:54 +08:00
|
|
|
</div>
|
|
|
|
<div id="controls">
|
2017-11-21 03:52:21 +08:00
|
|
|
<a href="#" onclick="window.history.back();"><?php echo translate('Back') ?></a>
|
2017-11-28 21:23:54 +08:00
|
|
|
<a id="timelineLink" href="?view=timeline<?php echo $filterQuery ?>"><?php echo translate('ShowTimeline') ?></a>
|
2008-07-14 21:54:50 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="content">
|
|
|
|
<form name="contentForm" id="contentForm" method="post" action="">
|
2014-12-05 07:44:23 +08:00
|
|
|
<input type="hidden" name="view" value="<?php echo $view ?>"/>
|
2008-07-14 21:54:50 +08:00
|
|
|
<input type="hidden" name="action" value=""/>
|
2014-12-05 07:44:23 +08:00
|
|
|
<input type="hidden" name="page" value="<?php echo $page ?>"/>
|
|
|
|
<?php echo $_REQUEST['filter']['fields'] ?>
|
|
|
|
<input type="hidden" name="sort_field" value="<?php echo validHtmlStr($_REQUEST['sort_field']) ?>"/>
|
|
|
|
<input type="hidden" name="sort_asc" value="<?php echo validHtmlStr($_REQUEST['sort_asc']) ?>"/>
|
|
|
|
<input type="hidden" name="limit" value="<?php echo $limit ?>"/>
|
2017-10-17 03:20:26 +08:00
|
|
|
<table id="contentTable" class="major">
|
2008-07-14 21:54:50 +08:00
|
|
|
<tbody>
|
|
|
|
<?php
|
|
|
|
$count = 0;
|
2017-10-19 00:43:51 +08:00
|
|
|
$disk_space_total = 0;
|
|
|
|
|
2017-11-10 04:03:23 +08:00
|
|
|
$results = dbQuery( $eventsSql );
|
|
|
|
while ( $event_row = dbFetchNext( $results ) ) {
|
|
|
|
$event = new Event( $event_row );
|
2017-11-16 02:01:07 +08:00
|
|
|
if ( $event_row['Archived'] )
|
|
|
|
$archived = true;
|
|
|
|
else
|
|
|
|
$unarchived = true;
|
|
|
|
|
2017-06-01 09:34:38 +08:00
|
|
|
if ( ($count++%ZM_WEB_EVENTS_PER_PAGE) == 0 ) {
|
2008-07-14 21:54:50 +08:00
|
|
|
?>
|
|
|
|
<tr>
|
2015-05-10 21:10:30 +08:00
|
|
|
<th class="colId"><a href="<?php echo sortHeader( 'Id' ) ?>"><?php echo translate('Id') ?><?php echo sortTag( 'Id' ) ?></a></th>
|
|
|
|
<th class="colName"><a href="<?php echo sortHeader( 'Name' ) ?>"><?php echo translate('Name') ?><?php echo sortTag( 'Name' ) ?></a></th>
|
|
|
|
<th class="colMonitor"><a href="<?php echo sortHeader( 'MonitorName' ) ?>"><?php echo translate('Monitor') ?><?php echo sortTag( 'MonitorName' ) ?></a></th>
|
|
|
|
<th class="colCause"><a href="<?php echo sortHeader( 'Cause' ) ?>"><?php echo translate('Cause') ?><?php echo sortTag( 'Cause' ) ?></a></th>
|
|
|
|
<th class="colTime"><a href="<?php echo sortHeader( 'StartTime' ) ?>"><?php echo translate('Time') ?><?php echo sortTag( 'StartTime' ) ?></a></th>
|
|
|
|
<th class="colDuration"><a href="<?php echo sortHeader( 'Length' ) ?>"><?php echo translate('Duration') ?><?php echo sortTag( 'Length' ) ?></a></th>
|
|
|
|
<th class="colFrames"><a href="<?php echo sortHeader( 'Frames' ) ?>"><?php echo translate('Frames') ?><?php echo sortTag( 'Frames' ) ?></a></th>
|
|
|
|
<th class="colAlarmFrames"><a href="<?php echo sortHeader( 'AlarmFrames' ) ?>"><?php echo translate('AlarmBrFrames') ?><?php echo sortTag( 'AlarmFrames' ) ?></a></th>
|
|
|
|
<th class="colTotScore"><a href="<?php echo sortHeader( 'TotScore' ) ?>"><?php echo translate('TotalBrScore') ?><?php echo sortTag( 'TotScore' ) ?></a></th>
|
|
|
|
<th class="colAvgScore"><a href="<?php echo sortHeader( 'AvgScore' ) ?>"><?php echo translate('AvgBrScore') ?><?php echo sortTag( 'AvgScore' ) ?></a></th>
|
|
|
|
<th class="colMaxScore"><a href="<?php echo sortHeader( 'MaxScore' ) ?>"><?php echo translate('MaxBrScore') ?><?php echo sortTag( 'MaxScore' ) ?></a></th>
|
2017-05-31 01:47:30 +08:00
|
|
|
<?php
|
2017-10-19 00:43:51 +08:00
|
|
|
if ( ZM_WEB_EVENT_DISK_SPACE ) {
|
|
|
|
?>
|
2016-07-20 05:34:01 +08:00
|
|
|
<th class="colDiskSpace"><a href="<?php echo sortHeader( 'DiskSpace' ) ?>"><?php echo translate('DiskSpace') ?><?php echo sortTag( 'DiskSpace' ) ?></a></th>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
2017-05-31 01:47:30 +08:00
|
|
|
}
|
|
|
|
if ( ZM_WEB_LIST_THUMBS ) {
|
2008-07-14 21:54:50 +08:00
|
|
|
?>
|
2015-05-10 21:10:30 +08:00
|
|
|
<th class="colThumbnail"><?php echo translate('Thumbnail') ?></th>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
2017-05-31 01:47:30 +08:00
|
|
|
}
|
2008-07-14 21:54:50 +08:00
|
|
|
?>
|
|
|
|
<th class="colMark"><input type="checkbox" name="toggleCheck" value="1" onclick="toggleCheckbox( this, 'markEids' );"<?php if ( !canEdit( 'Events' ) ) { ?> disabled="disabled"<?php } ?>/></th>
|
|
|
|
</tr>
|
|
|
|
<?php
|
2017-05-31 01:47:30 +08:00
|
|
|
}
|
|
|
|
$scale = max( reScale( SCALE_BASE, $event->DefaultScale(), ZM_WEB_DEFAULT_SCALE ), SCALE_BASE );
|
2008-07-14 21:54:50 +08:00
|
|
|
?>
|
2017-10-23 07:59:17 +08:00
|
|
|
<tr<?php if ($event->Archived()) echo ' class="archived"' ?>>
|
2017-11-21 03:45:56 +08:00
|
|
|
<td class="colId"><a href="?view=event&eid=<?php echo $event->Id().$filterQuery.$sortQuery.'&page=1"> '.$event->Id().($event->Archived()?'*':'') ?></a></td>
|
|
|
|
<td class="colName"><a href="?view=event&eid=<?php echo $event->Id().$filterQuery.$sortQuery.'&page=1"> '.validHtmlStr($event->Name()).($event->Archived()?'*':'') ?></a></td>
|
2017-10-23 07:59:17 +08:00
|
|
|
<td class="colMonitorName"><?php echo makePopupLink( '?view=monitor&mid='.$event->MonitorId(), 'zmMonitor'.$event->Monitorid(), 'monitor', $event->MonitorName(), canEdit( 'Monitors' ) ) ?></td>
|
2016-07-20 05:34:01 +08:00
|
|
|
<td class="colCause"><?php echo makePopupLink( '?view=eventdetail&eid='.$event->Id(), 'zmEventDetail', 'eventdetail', validHtmlStr($event->Cause()), canEdit( 'Events' ), 'title="'.htmlspecialchars($event->Notes()).'"' ) ?></td>
|
|
|
|
<td class="colTime"><?php echo strftime( STRF_FMT_DATETIME_SHORTER, strtotime($event->StartTime()) ) ?></td>
|
|
|
|
<td class="colDuration"><?php echo gmdate("H:i:s", $event->Length() ) ?></td>
|
|
|
|
<td class="colFrames"><?php echo makePopupLink( '?view=frames&eid='.$event->Id(), 'zmFrames', 'frames', $event->Frames() ) ?></td>
|
|
|
|
<td class="colAlarmFrames"><?php echo makePopupLink( '?view=frames&eid='.$event->Id(), 'zmFrames', 'frames', $event->AlarmFrames() ) ?></td>
|
|
|
|
<td class="colTotScore"><?php echo $event->TotScore() ?></td>
|
|
|
|
<td class="colAvgScore"><?php echo $event->AvgScore() ?></td>
|
|
|
|
<td class="colMaxScore"><?php echo makePopupLink( '?view=frame&eid='.$event->Id().'&fid=0', 'zmImage', array( 'image', reScale( $event->Width(), $scale ), reScale( $event->Height(), $scale ) ), $event->MaxScore() ) ?></td>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
2017-05-31 01:47:30 +08:00
|
|
|
if ( ZM_WEB_EVENT_DISK_SPACE ) {
|
2017-10-19 00:43:51 +08:00
|
|
|
$disk_space_total += $event->DiskSpace();
|
2017-05-31 01:47:30 +08:00
|
|
|
?>
|
2016-07-21 03:20:51 +08:00
|
|
|
<td class="colDiskSpace"><?php echo human_filesize( $event->DiskSpace() ) ?></td>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
2017-05-31 01:47:30 +08:00
|
|
|
}
|
|
|
|
if ( ZM_WEB_LIST_THUMBS ) {
|
|
|
|
if ( $thumbData = $event->createListThumbnail() ) {
|
2017-05-06 02:25:25 +08:00
|
|
|
?>
|
|
|
|
<td class="colThumbnail">
|
2017-05-31 01:47:30 +08:00
|
|
|
<?php
|
2017-10-11 03:11:59 +08:00
|
|
|
if ( file_exists( $event->Path().'/snapshot.jpg' ) ) {
|
2017-10-17 03:20:26 +08:00
|
|
|
Warning("Using snapshot");
|
2017-10-11 03:11:59 +08:00
|
|
|
$imgSrc = '?view=image&eid='.$event->Id().'&fid=snapshot&width='.$thumbData['Width'].'&height='.$thumbData['Height'];
|
|
|
|
} else {
|
2017-10-17 03:20:26 +08:00
|
|
|
Warning("Not Using snapshot" . $event->Path().'/snapshot.jpg' );
|
2017-05-31 01:47:30 +08:00
|
|
|
$imgSrc = '?view=image&eid='.$event->Id().'&fid='.$thumbData['FrameId'].'&width='.$thumbData['Width'].'&height='.$thumbData['Height'];
|
2017-10-11 03:11:59 +08:00
|
|
|
}
|
2017-07-06 22:49:54 +08:00
|
|
|
$streamSrc = $event->getStreamSrc( array( 'mode'=>'jpeg', 'scale'=>$scale, 'maxfps'=>ZM_WEB_VIDEO_MAXFPS, 'replay'=>'single') );
|
2017-05-06 02:25:25 +08:00
|
|
|
|
2017-05-31 01:47:30 +08:00
|
|
|
$imgHtml = '<img id="thumbnail'.$event->id().'" src="'.$imgSrc.'" alt="'. validHtmlStr('Event '.$event->Id()) .'" style="width:'. validInt($thumbData['Width']) .'px;height:'. validInt( $thumbData['Height'] ).'px;" onmouseover="this.src=\''.$streamSrc.'\';" onmouseout="this.src=\''.$imgSrc.'\';"/>';
|
2017-05-06 02:25:25 +08:00
|
|
|
|
2017-05-31 01:47:30 +08:00
|
|
|
echo makePopupLink(
|
|
|
|
'?view=frame&eid='.$event->Id().'&fid='.$thumbData['FrameId'],
|
|
|
|
'zmImage',
|
|
|
|
array( 'image', reScale( $event->Width(), $scale ), reScale( $event->Height(), $scale ) ),
|
|
|
|
$imgHtml
|
|
|
|
);
|
2008-07-14 21:54:50 +08:00
|
|
|
?>
|
2017-05-31 01:47:30 +08:00
|
|
|
</td>
|
2017-05-06 02:25:25 +08:00
|
|
|
<?php
|
2017-05-31 01:47:30 +08:00
|
|
|
} else {
|
2008-09-30 23:29:14 +08:00
|
|
|
?>
|
|
|
|
<td class="colThumbnail"> </td>
|
|
|
|
<?php
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
2017-05-31 01:47:30 +08:00
|
|
|
} // end if ZM_WEB_LIST_THUMBS
|
2008-07-14 21:54:50 +08:00
|
|
|
?>
|
2016-07-20 05:34:01 +08:00
|
|
|
<td class="colMark"><input type="checkbox" name="markEids[]" value="<?php echo $event->Id() ?>" onclick="configureButton( this, 'markEids' );"<?php if ( !canEdit( 'Events' ) ) { ?> disabled="disabled"<?php } ?>/></td>
|
2008-07-14 21:54:50 +08:00
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</tbody>
|
2017-10-19 00:43:51 +08:00
|
|
|
<?php
|
|
|
|
if ( ZM_WEB_EVENT_DISK_SPACE ) {
|
|
|
|
?>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<td colspan="11">Totals:</td>
|
|
|
|
<td class="colDiskSpace"><?php echo human_filesize( $disk_space_total ) ?></td>
|
|
|
|
<?php
|
|
|
|
if ( ZM_WEB_LIST_THUMBS ) {
|
|
|
|
?><td></td>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2008-07-14 21:54:50 +08:00
|
|
|
</table>
|
|
|
|
<?php
|
2017-05-31 01:47:30 +08:00
|
|
|
if ( $pagination ) {
|
2008-07-14 21:54:50 +08:00
|
|
|
?>
|
2014-12-05 07:44:23 +08:00
|
|
|
<h3 class="pagination"><?php echo $pagination ?></h3>
|
2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
}
|
2017-05-31 01:47:30 +08:00
|
|
|
if ( true || canEdit( 'Events' ) ) {
|
2008-07-14 21:54:50 +08:00
|
|
|
?>
|
|
|
|
<div id="contentButtons">
|
2015-05-10 21:10:30 +08:00
|
|
|
<input type="button" name="viewBtn" value="<?php echo translate('View') ?>" onclick="viewEvents( this, 'markEids' );" disabled="disabled"/>
|
|
|
|
<input type="button" name="archiveBtn" value="<?php echo translate('Archive') ?>" onclick="archiveEvents( this, 'markEids' )" disabled="disabled"/>
|
|
|
|
<input type="button" name="unarchiveBtn" value="<?php echo translate('Unarchive') ?>" onclick="unarchiveEvents( this, 'markEids' );" disabled="disabled"/>
|
|
|
|
<input type="button" name="editBtn" value="<?php echo translate('Edit') ?>" onclick="editEvents( this, 'markEids' )" disabled="disabled"/>
|
|
|
|
<input type="button" name="exportBtn" value="<?php echo translate('Export') ?>" onclick="exportEvents( this, 'markEids' )" disabled="disabled"/>
|
|
|
|
<input type="button" name="deleteBtn" value="<?php echo translate('Delete') ?>" onclick="deleteEvents( this, 'markEids' );" disabled="disabled"/>
|
2008-07-14 21:54:50 +08:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-11-16 02:01:07 +08:00
|
|
|
<script type="text/javascript">
|
|
|
|
// These are defined in the .js.php but need to be updated down here.
|
|
|
|
archivedEvents = <?php echo !empty($archived)?'true':'false' ?>;
|
|
|
|
unarchivedEvents = <?php echo !empty($unarchived)?'true':'false' ?>;
|
|
|
|
</script>
|
2008-07-14 21:54:50 +08:00
|
|
|
</body>
|
|
|
|
</html>
|