Subversion Repositories cheapmusic

Rev

Rev 102 | Rev 105 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 102 Rev 104
Line 376... Line 376...
376
    $modal = "";
376
    $modal = "";
377
    $str = "<div class=\"card mx-auto discogs-card\">";
377
    $str = "<div class=\"card mx-auto discogs-card\">";
378
    $str .= "<div class=\"card-header bg-info d-flex h-100\">";
378
    $str .= "<div class=\"card-header bg-info d-flex h-100\">";
379
    $str .= "<p class=\"card-title font-weight-bold small flex-grow-1\">" . (string)$item->ItemInfo->Title->DisplayValue . " by ";
379
    $str .= "<p class=\"card-title font-weight-bold small flex-grow-1\">" . (string)$item->ItemInfo->Title->DisplayValue . " by ";
380
    $searchArtists = "";
380
    $searchArtists = "";
-
 
381
    $$wlArtists = "";
381
    if (!empty($artists)) {
382
    if (!empty($artists)) {
382
        if (count($artists) < 5) {
383
        if (count($artists) < 5) {
383
            $wlArtists = join(", ", $artists);
384
            $wlArtists = join(", ", $artists);
384
            if (!empty($artists) && $artists[0] != 'Various') {
385
            if (!empty($artists) && $artists[0] != 'Various') {
385
                $searchArtists = join(" ", $artists);
386
                $searchArtists = join(" ", $artists);
Line 446... Line 447...
446
        );
447
        );
447
        $wl = base64_encode(json_encode($wlArr));
448
        $wl = base64_encode(json_encode($wlArr));
448
        $str .= "  <button type=\"button\" class=\"btn btn-primary m-1 btn-sm\" onclick=\"addWishlist('" . $_SESSION['sessData']['userID'] . "',this," . $cnt . ",'" . $wl . "');\" title=\"Add to Wishlist\" data-toggle=\"tooltip\"><i class=\"fas fa-bookmark\"></i></button>";
449
        $str .= "  <button type=\"button\" class=\"btn btn-primary m-1 btn-sm\" onclick=\"addWishlist('" . $_SESSION['sessData']['userID'] . "',this," . $cnt . ",'" . $wl . "');\" title=\"Add to Wishlist\" data-toggle=\"tooltip\"><i class=\"fas fa-bookmark\"></i></button>";
449
    }
450
    }
450
 
451
 
451
    $searchTitle = 'Searching for:<br><br><strong>' . (string)$item->ItemInfo->Title->DisplayValue . ' by' . $wlArtists . '</strong>';
452
    $searchTitle = 'Searching for:<br><br><strong>' . (string)$item->ItemInfo->Title->DisplayValue . ' by ' . $wlArtists . '</strong>';
452
    if (!empty($barcode)) {
453
    if (!empty($barcode)) {
453
        $searchTitle .= " (" . displayBarcode($barcode) . ")";
454
        $searchTitle .= " (" . displayBarcode($barcode) . ")";
454
    }
455
    }
455
 
456
 
456
    $str .= "  <button type=\"submit\" name=\"submit\" value=\"discogsSearch\" class=\"btn btn-primary m-1 btn-sm\" onclick=\"document.getElementById('discogsTitle').value = '" . addslashes((string)$item->ItemInfo->Title->DisplayValue) . "';document.getElementById('discogsArtist').value = '" . addslashes($searchArtists) . "';document.getElementById('discogsBarcode').value = '" . $barcode . "';progressBar('" . sanitizeInput2($searchTitle) . "');\" title=\"Search for Store Offers\" data-toggle=\"tooltip\"><i class=\"fas fa-search\"></i></button>";
457
    $str .= "  <button type=\"submit\" name=\"submit\" value=\"discogsSearch\" class=\"btn btn-primary m-1 btn-sm\" onclick=\"document.getElementById('discogsTitle').value = '" . addslashes((string)$item->ItemInfo->Title->DisplayValue) . "';document.getElementById('discogsArtist').value = '" . addslashes($searchArtists) . "';document.getElementById('discogsBarcode').value = '" . $barcode . "';progressBar('" . sanitizeInput2($searchTitle) . "');\" title=\"Search for Store Offers\" data-toggle=\"tooltip\"><i class=\"fas fa-search\"></i></button>";