show_albums(); break; case 'show_all_songs': $artist = get_artist_name(scrub_in($_REQUEST['artist'])); echo "

" . _("All songs by") . " $artist

"; $song_ids = get_song_ids_from_artist($_REQUEST['artist']); show_songs($song_ids); break; case 'update_from_tags': $artist = new Artist($_REQUEST['artist']); echo "
" . _("Starting Update from Tags") . ". . .
\n"; $catalog = new Catalog(); $catalog->update_single_item('artist',$_REQUEST['artist']); echo "
" . _("Update From Tags Complete") . "   "; echo "[" . _("Return") . "]"; break; case 'match': case 'Match': $match = scrub_in($_REQUEST['match']); preg_match("/^(\w*)/", $match, $matches); show_alphabet_list('artists','artists.php',$match); if ($match === "Browse") { show_alphabet_form('',_("Show Artists starting with"),"artists.php?action=match"); show_artists(); } elseif ($match === "Show_all") { show_alphabet_form('',_("Show Artists starting with"),"artists.php?action=match"); $_SESSION['view_offset_limit'] = 999999; show_artists(); } else { $chr = preg_replace("/[^a-zA-Z0-9]/", "", $matches[1]); show_alphabet_form($chr,_("Show Artists starting with"),"artists.php?action=match"); if ($chr == '') { show_artists('A'); } else { show_artists($chr); } } break; default: show_alphabet_list('artists','artists.php'); show_alphabet_form('',_("Show Artists starting with"),"artists.php?action=match"); show_artists('A'); break; } echo "

"; show_page_footer ('Artists', '',$user->prefs['display_menu']); ?>