Skip to content
Permalink
Browse files

Merge branch 'bugfix'

  • Loading branch information...
RocketMan committed Mar 7, 2019
2 parents 7ec0cb7 + 6104a07 commit bde399cf73964c5558effc844b3f99f3d707cbf9
Showing with 10 additions and 8 deletions.
  1. +10 −8 ui/Search.php
@@ -25,6 +25,7 @@
namespace ZK\UI;
use ZK\Engine\Engine;
use ZK\Engine\IDJ;
use ZK\Engine\ILibrary;
use ZK\UI\UICommon as UI;
@@ -720,18 +721,18 @@ private function reviewerColHeader($header, $static) {
echo "</TH>\n";
}
private function reviewerAlbums($searchType, $searchString, $albums) {
private function reviewerAlbums($searchType, $searchString, $albums, $p) {
for($i = 0; $i < sizeof($albums); $i++){
if (! $opened ) {
if($this->noTables)
echo "<PRE><B>Artist Album Label Date Reviewed</B>\n";
else {
echo "<TABLE CELLPADDING=2 CELLSPACING=0 BORDER=0>\n";
$static = 0;
reviewerColHeader("Artist", $static);
reviewerColHeader("Album", $static);
reviewerColHeader("Label", $static);
reviewerColHeader("Date Reviewed", $static);
$this->reviewerColHeader("Artist", $static);
$this->reviewerColHeader("Album", $static);
$this->reviewerColHeader("Label", $static);
$this->reviewerColHeader("Date Reviewed", $static);
}
$opened = 1;
}
@@ -795,7 +796,7 @@ private function reviewerAlbums($searchType, $searchString, $albums) {
else
echo "</TD></TR>\n";
}
$p = $_REQUEST["p"];
if($opened && $p>0) {
echo $this->closeList();
$m = $_REQUEST["m"];
@@ -806,7 +807,7 @@ private function reviewerAlbums($searchType, $searchString, $albums) {
"?s=$searchType&amp;n=". UI::URLify($_REQUEST["n"]).
"&amp;p=". UI::URLify($p). $m.
"&amp;q=". $this->maxresults.
"&amp;action=$action&amp;session=".$this->session->getSessionID().
"&amp;action=viewDJReviews&amp;session=".$this->session->getSessionID().
"&amp;sortBy=$this->sortBy".
"\">[Next $this->maxresults albums &gt;&gt;]</A>\n";
$closed = 1;
@@ -821,6 +822,7 @@ private function reviewerAlbums($searchType, $searchString, $albums) {
}
private function searchByReviewer() {
$this->sortBy = $_REQUEST["sortBy"];
if(!$this->sortBy)$this->sortBy="Artist";
if($_REQUEST["n"]) {
@@ -834,7 +836,7 @@ private function searchByReviewer() {
$p = $_REQUEST["p"];
if($p == "") $p = 0;
$albums = Engine::api(ILibrary::class)->searchPos(ILibrary::ALBUM_AIRNAME, $p, $this->maxresults, $_REQUEST["n"], $this->sortBy);
reviewerAlbums("byReviewer", $search, $albums);
$this->reviewerAlbums("byReviewer", $search, $albums, $p);
}
}

0 comments on commit bde399c

Please sign in to comment.
You can’t perform that action at this time.