Cleanup events view header

This commit is contained in:
digital-gnome 2017-11-20 14:30:23 -05:00
parent 9d5447aa6a
commit e34b8abaca
4 changed files with 38 additions and 8 deletions

View File

@ -44,3 +44,13 @@
text-align: right; text-align: right;
padding-right: 8px; padding-right: 8px;
} }
#header {
display: flex;
justify-content: space-between;
}
#header h2, #header div {
line-height: 1.1;
margin:0;
}

View File

@ -44,3 +44,13 @@
text-align: right; text-align: right;
padding-right: 8px; padding-right: 8px;
} }
#header {
display: flex;
justify-content: space-between;
}
#header h2, #header div {
line-height: 1.1;
margin:0;
}

View File

@ -44,3 +44,13 @@
text-align: right; text-align: right;
padding-right: 8px; padding-right: 8px;
} }
#header {
display: flex;
justify-content: space-between;
}
#header h2, #header div {
line-height: 1.1;
margin:0;
}

View File

@ -96,6 +96,14 @@ xhtmlHeaders(__FILE__, translate('Events') );
<body> <body>
<div id="page"> <div id="page">
<div id="header"> <div id="header">
<h2><?php echo sprintf( $CLANG['EventCount'], $nEvents, zmVlang( $VLANG['Event'], $nEvents ) ) ?></h2>
<?php
if ( $pagination ) {
?>
<h2 class="pagination"><?php echo $pagination ?></h3>
<?php
}
?>
<div id="headerButtons"> <div id="headerButtons">
<?php <?php
if ( $pages > 1 ) { if ( $pages > 1 ) {
@ -112,7 +120,6 @@ if ( $pages > 1 ) {
?> ?>
<a href="#" onclick="closeWindows();"><?php echo translate('Close') ?></a> <a href="#" onclick="closeWindows();"><?php echo translate('Close') ?></a>
</div> </div>
<h2><?php echo sprintf( $CLANG['EventCount'], $nEvents, zmVlang( $VLANG['Event'], $nEvents ) ) ?></h2>
</div> </div>
<div id="content"> <div id="content">
<form name="contentForm" id="contentForm" method="post" action=""> <form name="contentForm" id="contentForm" method="post" action="">
@ -123,13 +130,6 @@ if ( $pages > 1 ) {
<input type="hidden" name="sort_field" value="<?php echo validHtmlStr($_REQUEST['sort_field']) ?>"/> <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="sort_asc" value="<?php echo validHtmlStr($_REQUEST['sort_asc']) ?>"/>
<input type="hidden" name="limit" value="<?php echo $limit ?>"/> <input type="hidden" name="limit" value="<?php echo $limit ?>"/>
<?php
if ( $pagination ) {
?>
<h3 class="pagination"><?php echo $pagination ?></h3>
<?php
}
?>
<p id="controls"> <p id="controls">
<a id="refreshLink" href="#" onclick="location.reload(true);"><?php echo translate('Refresh') ?></a> <a id="refreshLink" href="#" onclick="location.reload(true);"><?php echo translate('Refresh') ?></a>
<a id="filterLink" href="#" onclick="createPopup( '?view=filter&amp;page=<?php echo $page ?><?php echo $filterQuery ?>', 'zmFilter', 'filter' );"><?php echo translate('ShowFilterWindow') ?></a> <a id="filterLink" href="#" onclick="createPopup( '?view=filter&amp;page=<?php echo $page ?><?php echo $filterQuery ?>', 'zmFilter', 'filter' );"><?php echo translate('ShowFilterWindow') ?></a>