2003-07-11 17:27:56 +08:00
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
//
|
|
|
|
// ZoneMinder web event view 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
|
|
|
if ( !canView( 'Events' ) )
|
|
|
|
{
|
|
|
|
$view = "error";
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if ( !isset($mode) )
|
|
|
|
{
|
|
|
|
if ( canStream() )
|
|
|
|
$mode = "stream";
|
|
|
|
else
|
|
|
|
$mode = "still";
|
|
|
|
}
|
2003-07-11 17:27:56 +08:00
|
|
|
|
2004-01-08 19:45:57 +08:00
|
|
|
$result = mysql_query( "select E.*,M.Name as MonitorName,M.Width,M.Height from Events as E, Monitors as M where E.Id = '$eid' and E.MonitorId = M.Id" );
|
|
|
|
if ( !$result )
|
|
|
|
die( mysql_error() );
|
|
|
|
$event = mysql_fetch_assoc( $result );
|
2003-07-11 17:27:56 +08:00
|
|
|
|
2004-01-08 19:45:57 +08:00
|
|
|
$result = mysql_query( "select * from Events where Id < '$eid' and MonitorId = '$mid' order by Id desc limit 0,1" );
|
|
|
|
if ( !$result )
|
|
|
|
die( mysql_error() );
|
|
|
|
$prev_event = mysql_fetch_assoc( $result );
|
|
|
|
|
|
|
|
$result = mysql_query( "select * from Events where Id > '$eid' and MonitorId = '$mid' order by Id asc limit 0,1" );
|
|
|
|
if ( !$result )
|
|
|
|
die( mysql_error() );
|
|
|
|
$next_event = mysql_fetch_assoc( $result );
|
|
|
|
|
|
|
|
if ( !isset( $rate ) )
|
|
|
|
$rate = 1;
|
|
|
|
if ( !isset( $scale ) )
|
|
|
|
$scale = 1;
|
2003-07-11 17:27:56 +08:00
|
|
|
|
2004-01-08 19:45:57 +08:00
|
|
|
$frames_per_page = EVENT_FRAMES_PER_LINE * EVENT_FRAME_LINES;
|
2003-11-14 18:28:17 +08:00
|
|
|
|
2004-01-08 19:45:57 +08:00
|
|
|
$paged = $event['Frames'] > $frames_per_page;
|
2003-11-14 18:28:17 +08:00
|
|
|
|
2003-07-11 17:27:56 +08:00
|
|
|
?>
|
|
|
|
<html>
|
|
|
|
<head>
|
2004-01-08 18:09:35 +08:00
|
|
|
<title>ZM - <?= $zmSlangEvent ?> - <?= $event['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 19:45:57 +08:00
|
|
|
if ( !$event )
|
|
|
|
{
|
2003-07-11 17:27:56 +08:00
|
|
|
?>
|
|
|
|
opener.location.reload(true);
|
|
|
|
window.close();
|
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
}
|
2003-07-11 17:27:56 +08:00
|
|
|
?>
|
|
|
|
window.focus();
|
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
if ( !empty($refresh_parent) )
|
|
|
|
{
|
2003-07-11 17:27:56 +08:00
|
|
|
?>
|
|
|
|
opener.location.reload(true);
|
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
}
|
2003-07-11 17:27:56 +08:00
|
|
|
?>
|
|
|
|
function refreshWindow()
|
|
|
|
{
|
|
|
|
window.location.reload(true);
|
|
|
|
}
|
|
|
|
function closeWindow()
|
|
|
|
{
|
|
|
|
window.close();
|
|
|
|
}
|
|
|
|
function newWindow(Url,Name,Width,Height)
|
|
|
|
{
|
2003-12-16 22:39:43 +08:00
|
|
|
var Name = window.open(Url,Name,"resizable,width="+Width+",height="+Height);
|
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 border="0" cellspacing="0" cellpadding="4" width="100%">
|
|
|
|
<tr>
|
|
|
|
<td colspan="3" align="left" class="text">
|
|
|
|
<form name="rename_form" method="get" action="<?= $PHP_SELF ?>">
|
|
|
|
<input type="hidden" name="view" value="<?= $view ?>">
|
|
|
|
<input type="hidden" name="action" value="rename">
|
|
|
|
<input type="hidden" name="mid" value="<?= $mid ?>">
|
|
|
|
<input type="hidden" name="eid" value="<?= $eid ?>">
|
2004-01-08 18:09:35 +08:00
|
|
|
<input type="text" size="16" name="event_name" value="<?= $event['Name'] ?>" class="form">
|
2004-01-07 20:57:07 +08:00
|
|
|
<input type="submit" value="<?= $zmSlangRename ?>" class="form"<?php if ( !canEdit( 'Events' ) ) { ?> disabled<?php } ?>></form></td>
|
2003-10-16 17:02:07 +08:00
|
|
|
<?php if ( 0 ) { ?>
|
2003-10-10 18:38:30 +08:00
|
|
|
<td colspan="2" align="right" class="text">
|
2003-07-11 17:27:56 +08:00
|
|
|
<form name="learn_form" method="get" action="<?= $PHP_SELF ?>">
|
|
|
|
<input type="hidden" name="view" value="<?= $view ?>">
|
|
|
|
<input type="hidden" name="action" value="learn">
|
|
|
|
<input type="hidden" name="mid" value="<?= $mid ?>">
|
|
|
|
<input type="hidden" name="eid" value="<?= $eid ?>">
|
|
|
|
<input type="hidden" name="mark_eid" value="<?= $eid ?>">
|
|
|
|
<?php if ( LEARN_MODE ) { ?>
|
2004-01-08 18:09:35 +08:00
|
|
|
Learn Pref: <select name="learn_state" class="form" onChange="learn_form.submit();"><option value=""<?php if ( !$event['LearnState'] ) echo " selected" ?>><?= $zmSlangIgnore ?></option><option value="-"<?php if ( $event['LearnState']=='-' ) echo " selected" ?>><?= $zmSlangExclude ?></option><option value="+"<?php if ( $event['LearnState']=='+' ) echo " selected" ?>><?= $zmSlangInclude ?></option></select>
|
2003-07-11 17:27:56 +08:00
|
|
|
<?php } ?>
|
|
|
|
</form></td>
|
2003-10-16 17:02:07 +08:00
|
|
|
<?php } ?>
|
|
|
|
<td colspan="3" align="right" class="text">
|
2003-10-19 17:47:52 +08:00
|
|
|
<form name="view_form" method="get" action="<?= $PHP_SELF ?>">
|
2003-10-10 18:38:30 +08:00
|
|
|
<input type="hidden" name="view" value="<?= $view ?>">
|
|
|
|
<input type="hidden" name="mid" value="<?= $mid ?>">
|
|
|
|
<input type="hidden" name="eid" value="<?= $eid ?>">
|
2004-01-07 20:57:07 +08:00
|
|
|
<?= $zmSlangRate ?>: <?= buildSelect( "rate", $rates, "document.view_form.submit();" ); ?>
|
|
|
|
<?= $zmSlangScale ?>: <?= buildSelect( "scale", $scales, "document.view_form.submit();" ); ?>
|
2003-10-10 18:38:30 +08:00
|
|
|
</form>
|
|
|
|
</td>
|
2003-07-11 17:27:56 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2003-11-14 18:28:17 +08:00
|
|
|
<?php if ( $mode == "stream" ) { ?>
|
2004-01-07 20:57:07 +08:00
|
|
|
<td align="center" class="text"><a href="javascript: refreshWindow();"><?= $zmSlangReplay ?></a></td>
|
2004-01-08 18:09:35 +08:00
|
|
|
<?php } elseif ( $paged && !empty($page) ) { ?>
|
2004-01-07 20:57:07 +08:00
|
|
|
<td align="center" class="text"><a href="<?= $PHP_SELF ?>?view=event&mode=still&mid=<?= $mid ?>&eid=<?= $eid ?>&page=0"><?= $zmSlangAll ?></a></td>
|
2004-01-08 18:09:35 +08:00
|
|
|
<?php } elseif ( $paged && empty($page) ) { ?>
|
2004-01-07 20:57:07 +08:00
|
|
|
<td align="center" class="text"><a href="<?= $PHP_SELF ?>?view=event&mode=still&mid=<?= $mid ?>&eid=<?= $eid ?>&page=1"><?= $zmSlangPaged ?></a></td>
|
2003-11-14 18:28:17 +08:00
|
|
|
<?php } else { ?>
|
|
|
|
<td align="center" class="text"> </td>
|
|
|
|
<?php } ?>
|
2004-01-07 20:57:07 +08:00
|
|
|
<td align="center" class="text"><?php if ( canEdit( 'Events' ) ) { ?><a href="<?= $PHP_SELF ?>?view=none&action=delete&mid=<?= $mid ?>&mark_eid=<?= $eid ?>"><?= $zmSlangDelete ?></a><?php } else { ?> <?php } ?></td>
|
2004-01-08 18:09:35 +08:00
|
|
|
<?php if ( $event['Archived'] ) { ?>
|
2004-01-07 20:57:07 +08:00
|
|
|
<td align="center" class="text"><?php if ( canEdit( 'Events' ) ) { ?><a href="<?= $PHP_SELF ?>?view=<?= $view ?>&action=unarchive&mid=<?= $mid ?>&eid=<?= $eid ?>"><?= $zmSlangUnarchive ?></a><?php } else { ?> <?php } ?></td>
|
2003-07-11 17:27:56 +08:00
|
|
|
<?php } else { ?>
|
2004-01-07 20:57:07 +08:00
|
|
|
<td align="center" class="text"><?php if ( canEdit( 'Events' ) ) { ?><a href="<?= $PHP_SELF ?>?view=<?= $view ?>&action=archive&mid=<?= $mid ?>&eid=<?= $eid ?>"><?= $zmSlangArchive ?></a><?php } else { ?> <?php } ?></td>
|
2003-07-11 17:27:56 +08:00
|
|
|
<?php } ?>
|
|
|
|
<?php if ( $mode == "stream" ) { ?>
|
2004-01-07 20:57:07 +08:00
|
|
|
<td align="center" class="text"><a href="<?= $PHP_SELF ?>?view=event&mode=still&mid=<?= $mid ?>&eid=<?= $eid ?>&page=1"><?= $zmSlangStills ?></a></td>
|
2003-07-11 17:27:56 +08:00
|
|
|
<?php } elseif ( canStream() ) { ?>
|
2004-01-07 20:57:07 +08:00
|
|
|
<td align="center" class="text"><a href="<?= $PHP_SELF ?>?view=event&mode=stream&mid=<?= $mid ?>&eid=<?= $eid ?>"><?= $zmSlangStream ?></a></td>
|
2003-07-11 17:27:56 +08:00
|
|
|
<?php } else { ?>
|
|
|
|
<td align="center" class="text"> </td>
|
|
|
|
<?php } ?>
|
|
|
|
<?php if ( ZM_OPT_MPEG != "no" ) { ?>
|
2004-01-08 18:09:35 +08:00
|
|
|
<td align="center" class="text"><a href="javascript: newWindow( '<?= $PHP_SELF ?>?view=video&eid=<?= $eid ?>', 'zmVideo', <?= $jws['video']['w']+$event['Width'] ?>, <?= $jws['video']['h']+$event['Height'] ?> );"><?= $zmSlangVideo ?></a></td>
|
2003-07-11 17:27:56 +08:00
|
|
|
<?php } else { ?>
|
|
|
|
<td align="center" class="text"> </td>
|
|
|
|
<?php } ?>
|
2004-01-07 20:57:07 +08:00
|
|
|
<td align="right" class="text"><a href="javascript: closeWindow();"><?= $zmSlangClose ?></a></td>
|
2003-07-11 17:27:56 +08:00
|
|
|
</tr>
|
2003-11-14 18:28:17 +08:00
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
if ( $mode == "still" && $paged && !empty($page) )
|
|
|
|
{
|
2003-11-14 18:28:17 +08:00
|
|
|
?>
|
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
$pages = (int)ceil($event['Frames']/$frames_per_page);
|
|
|
|
$max_shortcuts = 5;
|
2003-11-14 18:28:17 +08:00
|
|
|
?>
|
|
|
|
<tr><td colspan="6" align="center" class="text">
|
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
if ( $page < 0 )
|
|
|
|
$page = 1;
|
|
|
|
if ( $page > $pages )
|
|
|
|
$page = $pages;
|
2003-11-14 18:28:17 +08:00
|
|
|
|
2004-01-08 19:45:57 +08:00
|
|
|
if ( $page > 1 )
|
|
|
|
{
|
|
|
|
$new_pages = array();
|
|
|
|
$pages_used = array();
|
|
|
|
$lo_exp = max(2,log($page-1)/log($max_shortcuts));
|
|
|
|
for ( $i = 0; $i < $max_shortcuts; $i++ )
|
2003-11-14 18:28:17 +08:00
|
|
|
{
|
2004-01-08 19:45:57 +08:00
|
|
|
$new_page = round($page-pow($lo_exp,$i));
|
|
|
|
if ( isset($pages_used[$new_page]) )
|
|
|
|
continue;
|
|
|
|
if ( $new_page <= 1 )
|
|
|
|
break;
|
|
|
|
$pages_used[$new_page] = true;
|
|
|
|
array_unshift( $new_pages, $new_page );
|
|
|
|
}
|
|
|
|
if ( !isset($pages_used[1]) )
|
|
|
|
array_unshift( $new_pages, 1 );
|
2003-11-14 18:28:17 +08:00
|
|
|
|
2004-01-08 19:45:57 +08:00
|
|
|
foreach ( $new_pages as $new_page )
|
|
|
|
{
|
2003-11-14 18:28:17 +08:00
|
|
|
?>
|
|
|
|
<a href="<?= $PHP_SELF ?>?view=event&mode=still&mid=<?= $mid ?>&eid=<?= $eid ?>&page=<?= $new_page ?>"><?= $new_page ?></a>
|
|
|
|
<?php
|
|
|
|
}
|
2004-01-08 19:45:57 +08:00
|
|
|
}
|
2003-11-14 18:28:17 +08:00
|
|
|
?>
|
|
|
|
- <?= $page ?> -
|
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
if ( $page < $pages )
|
|
|
|
{
|
|
|
|
$new_pages = array();
|
|
|
|
$pages_used = array();
|
|
|
|
$hi_exp = max(2,log($pages-$page)/log($max_shortcuts));
|
|
|
|
for ( $i = 0; $i < $max_shortcuts; $i++ )
|
2003-11-14 18:28:17 +08:00
|
|
|
{
|
2004-01-08 19:45:57 +08:00
|
|
|
$new_page = round($page+pow($hi_exp,$i));
|
|
|
|
if ( isset($pages_used[$new_page]) )
|
|
|
|
continue;
|
|
|
|
if ( $new_page > $pages )
|
|
|
|
break;
|
|
|
|
$pages_used[$new_page] = true;
|
|
|
|
array_push( $new_pages, $new_page );
|
|
|
|
}
|
|
|
|
if ( !isset($pages_used[$pages]) )
|
|
|
|
array_push( $new_pages, $pages );
|
2003-11-14 18:28:17 +08:00
|
|
|
|
2004-01-08 19:45:57 +08:00
|
|
|
foreach ( $new_pages as $new_page )
|
|
|
|
{
|
2003-11-14 18:28:17 +08:00
|
|
|
?>
|
|
|
|
<a href="<?= $PHP_SELF ?>?view=event&mode=still&mid=<?= $mid ?>&eid=<?= $eid ?>&page=<?= $new_page ?>"><?= $new_page ?></a>
|
|
|
|
<?php
|
|
|
|
}
|
2004-01-08 19:45:57 +08:00
|
|
|
}
|
2003-11-14 18:28:17 +08:00
|
|
|
?>
|
|
|
|
</td></tr>
|
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
}
|
2003-11-14 18:28:17 +08:00
|
|
|
?>
|
2003-07-11 17:27:56 +08:00
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
if ( $mode == "stream" )
|
|
|
|
{
|
|
|
|
$stream_src = ZM_PATH_ZMS."?path=".ZM_PATH_WEB."&event=$eid&rate=$rate&scale=$scale";
|
2004-01-27 17:57:12 +08:00
|
|
|
if ( canStreamNative() )
|
2003-07-11 17:27:56 +08:00
|
|
|
{
|
|
|
|
?>
|
2004-01-08 18:09:35 +08:00
|
|
|
<tr><td colspan="6" align="center" valign="middle"><img src="<?= $stream_src ?>" border="0" width="<?= reScale( $event['Width'], $scale ) ?>" height="<?= reScale( $event['Height'], $scale ) ?>"></td></tr>
|
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-08 18:09:35 +08:00
|
|
|
<tr><td colspan="6" align="center" valign="middle"><applet code="com.charliemouse.cambozola.Viewer" archive="<?= ZM_PATH_CAMBOZOLA ?>" align="middle" width="<?= reScale( $event['Width'], $scale ) ?>" height="<?= reScale( $event['Height'], $scale ) ?>"><param name="url" value="<?= $stream_src ?>"></applet></td></tr>
|
2003-07-11 17:27:56 +08:00
|
|
|
<?php
|
|
|
|
}
|
2004-01-08 19:45:57 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$sql = "select * from Frames where EventID = '$eid' order by Id";
|
|
|
|
if ( $paged && !empty($page) )
|
|
|
|
$sql .= " limit ".(($page-1)*$frames_per_page).", ".$frames_per_page;
|
|
|
|
$result = mysql_query( $sql );
|
|
|
|
if ( !$result )
|
|
|
|
die( mysql_error() );
|
2003-07-11 17:27:56 +08:00
|
|
|
?>
|
|
|
|
<tr><td colspan="6"><table border="0" cellpadding="0" cellspacing="2" align="center">
|
|
|
|
<tr>
|
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
$count = 0;
|
|
|
|
$scale = IMAGE_SCALING;
|
|
|
|
$fraction = sprintf( "%.2f", 1/$scale );
|
|
|
|
$thumb_width = $event['Width']/4;
|
|
|
|
$thumb_height = $event['Height']/4;
|
|
|
|
while( $row = mysql_fetch_assoc( $result ) )
|
|
|
|
{
|
|
|
|
$frame_id = $row['FrameId'];
|
|
|
|
$image_path = $row['ImagePath'];
|
|
|
|
|
|
|
|
$capt_image = $image_path;
|
|
|
|
if ( $scale == 1 || !file_exists( ZM_PATH_NETPBM."/jpegtopnm" ) )
|
2003-07-11 17:27:56 +08:00
|
|
|
{
|
2004-01-08 19:45:57 +08:00
|
|
|
$anal_image = preg_replace( "/capture/", "analyse", $image_path );
|
2003-07-11 17:27:56 +08:00
|
|
|
|
2004-01-08 19:45:57 +08:00
|
|
|
if ( file_exists($anal_image) && filesize( $anal_image ) )
|
2003-07-11 17:27:56 +08:00
|
|
|
{
|
2004-01-08 19:45:57 +08:00
|
|
|
$thumb_image = $anal_image;
|
2003-07-11 17:27:56 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2004-01-08 19:45:57 +08:00
|
|
|
$thumb_image = $capt_image;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$thumb_image = preg_replace( "/capture/", "thumb", $capt_image );
|
2003-07-11 17:27:56 +08:00
|
|
|
|
2004-01-08 19:45:57 +08:00
|
|
|
if ( !file_exists($thumb_image) || !filesize( $thumb_image ) )
|
|
|
|
{
|
|
|
|
$anal_image = preg_replace( "/capture/", "analyse", $capt_image );
|
|
|
|
if ( file_exists( $anal_image ) )
|
|
|
|
$command = ZM_PATH_NETPBM."/jpegtopnm -dct fast $anal_image | ".ZM_PATH_NETPBM."/pnmscalefixed $fraction | ".ZM_PATH_NETPBM."/ppmtojpeg --dct=fast > $thumb_image";
|
|
|
|
else
|
|
|
|
$command = ZM_PATH_NETPBM."/jpegtopnm -dct fast $capt_image | ".ZM_PATH_NETPBM."/pnmscalefixed $fraction | ".ZM_PATH_NETPBM."/ppmtojpeg --dct=fast > $thumb_image";
|
|
|
|
#exec( escapeshellcmd( $command ) );
|
|
|
|
exec( $command );
|
2003-07-11 17:27:56 +08:00
|
|
|
}
|
2004-01-08 19:45:57 +08:00
|
|
|
}
|
|
|
|
$img_class = $row['AlarmFrame']?"alarm":"normal";
|
2003-07-11 17:27:56 +08:00
|
|
|
?>
|
2004-01-08 18:55:16 +08:00
|
|
|
<td align="center" width="88"><a href="javascript: newWindow( '<?= $PHP_SELF ?>?view=frame&eid=<?= $eid ?>&fid=<?= $frame_id ?>', 'zmImage', <?= $event['Width']+$jws['image']['w'] ?>, <?= $event['Height']+$jws['image']['h'] ?> );"><img src="<?= $thumb_image ?>" width="<?= $thumb_width ?>" height="<? echo $thumb_height ?>" class="<?= $img_class ?>" alt="<?= $frame_id ?>/<?= $row['Score'] ?>"></a></td>
|
2003-07-11 17:27:56 +08:00
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
flush();
|
|
|
|
if ( !(++$count % 4) )
|
|
|
|
{
|
2003-07-11 17:27:56 +08:00
|
|
|
?>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<?php
|
|
|
|
}
|
2004-01-08 19:45:57 +08:00
|
|
|
}
|
2003-07-11 17:27:56 +08:00
|
|
|
?>
|
|
|
|
</tr>
|
|
|
|
</table></td></tr>
|
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
}
|
2003-07-11 17:27:56 +08:00
|
|
|
?>
|
|
|
|
<tr>
|
|
|
|
<td colspan="6"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
|
2004-01-08 18:09:35 +08:00
|
|
|
<td width="25%" align="center" class="text"><?php if ( $prev_event ) { ?><a href="<?= $PHP_SELF ?>?view=<?= $view ?>&mode=<?= $mode ?>&mid=<?= $mid ?>&eid=<?= $prev_event['Id'] ?>&page=<?= $page ?>"><?= $zmSlangPrev ?></a><?php } else { ?> <?php } ?></td>
|
|
|
|
<td width="25%" align="center" class="text"><?php if ( canEdit( 'Events' ) && $prev_event ) { ?><a href="<?= $PHP_SELF ?>?view=<?= $view ?>&mode=<?= $mode ?>&mid=<?= $mid ?>&eid=<?= $prev_event['Id'] ?>&action=delete&mid=<?= $mid ?>&mark_eid=<?= $eid ?>&page=<?= $page ?>"><?= $zmSlangDeleteAndPrev ?></a><?php } else { ?> <?php } ?></td>
|
|
|
|
<td width="25%" align="center" class="text"><?php if ( canEdit( 'Events' ) && $next_event ) { ?><a href="<?= $PHP_SELF ?>?view=<?= $view ?>&mode=<?= $mode ?>&mid=<?= $mid ?>&eid=<?= $next_event['Id'] ?>&action=delete&mid=<?= $mid ?>&mark_eid=<?= $eid ?>&page=<?= $page ?>"><?= $zmSlangDeleteAndNext ?></a><?php } else { ?> <?php } ?></td>
|
|
|
|
<td width="25%" align="center" class="text"><?php if ( $next_event ) { ?><a href="<?= $PHP_SELF ?>?view=<?= $view ?>&mode=<?= $mode ?>&mid=<?= $mid ?>&eid=<?= $next_event['Id'] ?>&page=<?= $page ?>"><?= $zmSlangNext ?></a><?php } else { ?> <?php } ?></td>
|
2003-07-11 17:27:56 +08:00
|
|
|
</tr></table></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html>
|