0) {
$qstr = $argv[1];
} else {
$qstr = safeQueryString();
}
$qpars = parseQuery("AL", $qstr);
?>
EMDB discography search:
Erik's Music Database - discography search: "
. prettyQuery($qpars) . "\n";
printBanner("");
$qids = getQueryIDs($qpars);
$pids = getPageIDs($qpars, $qids);
$qidct = count($qids);
$pidct = count($pids);
?>
Search returned " . $qidct . " hits";
if ($qidct != $pidct)
print " (" . $pidct . " shown)";
print ": ";
printLink("Previous page", prevQueryURL($qpars));
print " ";
printLink("Next page", nextQueryURL($qpars, $qidct));
print " ";
$dpars = $qpars;
$dpars["d"] = 1 - $dpars["d"];
$dpars["o"] = 0;
$disp = ($dpars["d"] == 0) ? "text" : "images";
printLink("Show " . $disp, queryURL($dpars));
print " ";
printLink("Refine this search", refinePageURL($qpars, $qidct));
print "\n";
if ($qpars["d"] == 0) {
print "\n";
print ' Click in "Album ID" column to see track list and cover image ';
print '(if available). Click on keywords other columns for related ';
print 'discographic searches. The "#STI" column may contain ';
print '"#S" (if there are scores available, click for score search), ';
print '"T" (if a track table is available) and/or ';
print '"I" (if a cover image is available).' . "
\n";
}
?>
\n";
$ct = 0;
foreach ($pids as $id) {
$cimg = coverImage($id);
if (! file_exists($cimg)) continue;
$newrow = ($ct > 0 && ($ct%4) == 0);
if ($newrow)
print "\n";
printSplash1($id, $cimg);
$ct++;
}
print "
\n";
}
function printSplash1($id, $cimg) {
print '';
print ' ';
print $id . " | \n";
}
$disp = $qpars["d"];
if ($disp == 1)
printSplash($pids);
else
printNormal($pids);
?>