search uses pagination
This commit is contained in:
parent
c24a152eba
commit
75cd410ba4
9 changed files with 136 additions and 64 deletions
|
@ -20,3 +20,15 @@
|
|||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
echo "page: " . $this->page;
|
||||
echo "curr: " . $this->curr;
|
||||
|
||||
echo $this->paginationControl($this->paginator,
|
||||
'Sliding',
|
||||
'library/paginator.phtml');
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
|
44
application/views/scripts/library/paginator.phtml
Normal file
44
application/views/scripts/library/paginator.phtml
Normal file
|
@ -0,0 +1,44 @@
|
|||
|
||||
<?php if ($this->pageCount): ?>
|
||||
<div class="paginationControl">
|
||||
<?php echo $this->firstItemNumber; ?> - <?php echo $this->lastItemNumber; ?>
|
||||
of <?php echo $this->totalItemCount; ?>
|
||||
|
||||
<!-- First page link -->
|
||||
<?php if (isset($this->previous)): ?>
|
||||
<a href="<?php echo $this->url(array('page' => $this->first)); ?>">
|
||||
First
|
||||
</a> |
|
||||
<?php else: ?>
|
||||
<span class="disabled">First</span> |
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Previous page link -->
|
||||
<?php if (isset($this->previous)): ?>
|
||||
<a href="<?php echo $this->url(array('page' => $this->previous)); ?>">
|
||||
< Previous
|
||||
</a> |
|
||||
<?php else: ?>
|
||||
<span class="disabled">< Previous</span> |
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Next page link -->
|
||||
<?php if (isset($this->next)): ?>
|
||||
<a href="<?php echo $this->url(array('page' => $this->next)); ?>">
|
||||
Next >
|
||||
</a> |
|
||||
<?php else: ?>
|
||||
<span class="disabled">Next ></span> |
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Last page link -->
|
||||
<?php if (isset($this->next)): ?>
|
||||
<a href="<?php echo $this->url(array('page' => $this->last)); ?>">
|
||||
Last
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="disabled">Last</span>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
|
@ -1,2 +1,3 @@
|
|||
<?php
|
||||
echo $this->partialLoop('library/libraryTablePartial.phtml', $this->files);
|
||||
|
||||
echo $this->partialLoop('library/libraryTablePartial.phtml', $this->files);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
$this->form->setAction($this->url());
|
||||
echo $this->form;
|
||||
?>
|
||||
<span id="search_add">Add</span>
|
||||
<span id="search_submit">Submit</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue