small problem with order, quicksearch working, code could be better.
This commit is contained in:
parent
ff02a42514
commit
ee0a8310de
3 changed files with 16 additions and 11 deletions
|
@ -1838,11 +1838,11 @@ class StoredFile {
|
|||
}
|
||||
|
||||
if(!is_null($order)) {
|
||||
$ob = " ORDER BY ".$g_metadata_xml_to_db_mapping[$order["category"]]. ", id " .$order["order"];
|
||||
$ob = " ORDER BY ".$g_metadata_xml_to_db_mapping[$order["category"]]." ".$order["order"].", id ";
|
||||
$sql = $sql . $ob;
|
||||
}
|
||||
else{
|
||||
$ob = " ORDER BY artist_name, id asc";
|
||||
$ob = " ORDER BY artist_name asc, id";
|
||||
$sql = $sql . $ob;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<div class="paginationControl">
|
||||
<p>
|
||||
<?php if ($this->pageCount): ?>
|
||||
<div class="paginationControl">
|
||||
|
||||
<?php echo $this->firstItemNumber; ?> - <?php echo $this->lastItemNumber; ?>
|
||||
of <?php echo $this->totalItemCount; ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<!-- First page link -->
|
||||
<?php if (isset($this->previous)): ?>
|
||||
|
@ -50,7 +50,7 @@
|
|||
<?php else: ?>
|
||||
<span class="disabled">Last</span>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue