Move Events controls to sidebar
This commit is contained in:
parent
1e04e341e4
commit
02cc5d0a6c
|
@ -121,31 +121,24 @@ xhtmlHeaders(__FILE__, $SLANG['Events'] );
|
||||||
|
|
||||||
<?php include("header.php"); ?>
|
<?php include("header.php"); ?>
|
||||||
|
|
||||||
<div id="page">
|
<div class="container-fluid">
|
||||||
<div id="header">
|
<div class="row">
|
||||||
<div id="headerButtons">
|
|
||||||
<?php
|
|
||||||
if ( $pages > 1 )
|
|
||||||
{
|
|
||||||
if ( !empty($page) )
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<a href="?view=<?= $view ?>&page=0<?= $filterQuery ?><?= $sortQuery ?>&limit=<?= $limit ?>"><?= $SLANG['ViewAll'] ?></a>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<a href="?view=<?= $view ?>&page=1<?= $filterQuery ?><?= $sortQuery ?>&limit=<?= $limit ?>"><?= $SLANG['ViewPaged'] ?></a>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<h2><?= sprintf( $CLANG['EventCount'], $nEvents, zmVlang( $VLANG['Event'], $nEvents ) ) ?></h2>
|
|
||||||
</div>
|
|
||||||
<div id="content">
|
|
||||||
<form name="contentForm" id="contentForm" method="post" action="">
|
<form name="contentForm" id="contentForm" method="post" action="">
|
||||||
|
<div class="col-md-2">
|
||||||
|
<h2><?= sprintf( $CLANG['EventCount'], $nEvents, zmVlang( $VLANG['Event'], $nEvents ) ) ?></h2>
|
||||||
|
<?php if ( true || canEdit( 'Events' ) ) { ?>
|
||||||
|
<div id="contentButtons">
|
||||||
|
<input class="btn btn-defaut" type="button" name="viewBtn" value="<?= $SLANG['View'] ?>" onclick="viewEvents( this, 'markEids' );" disabled="disabled"/>
|
||||||
|
<input class="btn btn-defaut" type="button" name="archiveBtn" value="<?= $SLANG['Archive'] ?>" onclick="archiveEvents( this, 'markEids' )" disabled="disabled"/>
|
||||||
|
<input class="btn btn-defaut" type="button" name="unarchiveBtn" value="<?= $SLANG['Unarchive'] ?>" onclick="unarchiveEvents( this, 'markEids' );" disabled="disabled"/>
|
||||||
|
<input class="btn btn-defaut" type="button" name="editBtn" value="<?= $SLANG['Edit'] ?>" onclick="editEvents( this, 'markEids' )" disabled="disabled"/>
|
||||||
|
<input class="btn btn-defaut" type="button" name="exportBtn" value="<?= $SLANG['Export'] ?>" onclick="exportEvents( this, 'markEids' )" disabled="disabled"/>
|
||||||
|
<input class="btn btn-defaut" type="button" name="deleteBtn" value="<?= $SLANG['Delete'] ?>" onclick="deleteEvents( this, 'markEids' );" disabled="disabled"/>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-10">
|
||||||
<input type="hidden" name="view" value="<?= $view ?>"/>
|
<input type="hidden" name="view" value="<?= $view ?>"/>
|
||||||
<input type="hidden" name="action" value=""/>
|
<input type="hidden" name="action" value=""/>
|
||||||
<input type="hidden" name="page" value="<?= $page ?>"/>
|
<input type="hidden" name="page" value="<?= $page ?>"/>
|
||||||
|
@ -157,15 +150,11 @@ if ( $pages > 1 )
|
||||||
if ( $pagination )
|
if ( $pagination )
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<h3 class="pagination"><?= $pagination ?></h3>
|
<ul class="pagination"><?= $pagination ?></ul>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<p id="controls">
|
<table class="table">
|
||||||
<a id="refreshLink" href="#" onclick="location.reload(true);"><?= $SLANG['Refresh'] ?></a>
|
|
||||||
<a id="filterLink" href="#" onclick="createPopup( '?view=filter&page=<?= $page ?><?= $filterQuery ?>', 'zmFilter', 'filter' );"><?= $SLANG['ShowFilterWindow'] ?></a>
|
|
||||||
</p>
|
|
||||||
<table id="contentTable" class="major" cellspacing="0">
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
$count = 0;
|
$count = 0;
|
||||||
|
@ -236,29 +225,12 @@ foreach ( $events as $event )
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php
|
<?php if ( $pagination ) { ?>
|
||||||
if ( $pagination )
|
<ul class="pagination"><?= $pagination ?></ul>
|
||||||
{
|
<?php } ?>
|
||||||
?>
|
|
||||||
<h3 class="pagination"><?= $pagination ?></h3>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
if ( true || canEdit( 'Events' ) )
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<div id="contentButtons">
|
|
||||||
<input type="button" name="viewBtn" value="<?= $SLANG['View'] ?>" onclick="viewEvents( this, 'markEids' );" disabled="disabled"/>
|
|
||||||
<input type="button" name="archiveBtn" value="<?= $SLANG['Archive'] ?>" onclick="archiveEvents( this, 'markEids' )" disabled="disabled"/>
|
|
||||||
<input type="button" name="unarchiveBtn" value="<?= $SLANG['Unarchive'] ?>" onclick="unarchiveEvents( this, 'markEids' );" disabled="disabled"/>
|
|
||||||
<input type="button" name="editBtn" value="<?= $SLANG['Edit'] ?>" onclick="editEvents( this, 'markEids' )" disabled="disabled"/>
|
|
||||||
<input type="button" name="exportBtn" value="<?= $SLANG['Export'] ?>" onclick="exportEvents( this, 'markEids' )" disabled="disabled"/>
|
|
||||||
<input type="button" name="deleteBtn" value="<?= $SLANG['Delete'] ?>" onclick="deleteEvents( this, 'markEids' );" disabled="disabled"/>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue