Currently used to allow whitespace in a tag
* Mass edit of entries. Entries found with advanced search can now be editied.
Upload fields are not supported yet.
+ * Fixed bug #5
+ * Added feature #1. Collections overview has pagination at the bottom too.
1.0 - Castle 20210106
* First usable version
<div class="uk-width-1-2">
<h4>Syntax</h4>
<p>To search within the collection default search field, like the ordinary search, just type the search term and go.</p>
- <p>To search within the possible fields of a collection type the field identifier followed by : and then a space.</p>
+ <p>To search within the possible fields of a collection type the field identifier followed by : and then a space. Not every search operator does make sense with tag search fields.</p>
eg.: <code>title: bourne</code>
<p>Available fields in <b><?php echo Summoner::ifset($TemplateData['loadedCollection'], 'name'); ?></b> are:</p>
<pre style="white-space: normal">
<div class="uk-grid-small uk-grid-match uk-grid">
<div class="uk-width-3-4">
<ul class="uk-pagination" >
- <?php
- if($TemplateData['pagination']['curPage'] > 1) {
- echo '<li><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']-1))).'">
- <span uk-pagination-previous></span></a></li>';
- }
- $ellipsisShown = 0;
-
- for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) {
- $active = '';
- if($i == $TemplateData['pagination']['curPage']) $active = 'uk-active';
- if(in_array($i,$TemplateData['pagination']['visibleRange'])) {
- echo '<li class="'.$active.'"><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>$i)).'"
- title="Goto page '.$i.'">'.$i.'</a></li>';
- }
- else {
- if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) {
- echo '<li class="uk-disabled"><span>…</span></li>';
- $ellipsisShown = 1;
- }
- if($i > $TemplateData['pagination']['currentRangeEnd'] && ($ellipsisShown == 0 || $ellipsisShown == 1)) {
- echo '<li class="uk-disabled"><span>…</span></li>';
- $ellipsisShown = 2;
- }
- }
- }
-
- if($TemplateData['pagination']['curPage'] < $TemplateData['pagination']['pages']) {
- echo '<li><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']+1))).'">
- <span uk-pagination-next></span></a></li>';
- }
- ?>
+ <?php require Summoner::themefile('collections/collections_pagination.html', UI_THEME); ?>
</ul>
</div>
<div class="uk-width-1-4">
</div>
</div>
<?php } ?>
+
+<?php if(!empty($TemplateData['pagination']) && $TemplateData['pagination']['pages'] > 1) { ?>
+<div class="uk-grid-small uk-grid-match uk-grid">
+ <div class="uk-width-3-4">
+ <ul class="uk-pagination" >
+ <?php require Summoner::themefile('collections/collections_pagination.html', UI_THEME); ?>
+ </ul>
+ </div>
+</div>
+<?php } ?>
--- /dev/null
+<?php
+if($TemplateData['pagination']['curPage'] > 1) {
+ echo '<li><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']-1))).'">
+ <span uk-pagination-previous></span></a></li>';
+}
+$ellipsisShown = 0;
+
+for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) {
+ $active = '';
+ if($i == $TemplateData['pagination']['curPage']) $active = 'uk-active';
+ if(in_array($i,$TemplateData['pagination']['visibleRange'])) {
+ echo '<li class="'.$active.'"><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>$i)).'"
+ title="Goto page '.$i.'">'.$i.'</a></li>';
+ }
+ else {
+ if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) {
+ echo '<li class="uk-disabled"><span>…</span></li>';
+ $ellipsisShown = 1;
+ }
+ if($i > $TemplateData['pagination']['currentRangeEnd'] && ($ellipsisShown == 0 || $ellipsisShown == 1)) {
+ echo '<li class="uk-disabled"><span>…</span></li>';
+ $ellipsisShown = 2;
+ }
+ }
+}
+
+if($TemplateData['pagination']['curPage'] < $TemplateData['pagination']['pages']) {
+ echo '<li><a href="index.php?'.Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('page'=>($TemplateData['pagination']['curPage']+1))).'">
+ <span uk-pagination-next></span></a></li>';
+}
+?>
<p><b>Limitations</b></p>
-<p>Picture: Use URL to manually save and upload.</p>
-<p>Rating: Works only if the rating matches 1:1.</p>
<p>Data will be overwritten</p>
<form class="uk-form-horizontal uk-margin-small" method="post" enctype="multipart/form-data">