From b337d84d9af8a7db8e0171c9c0f4bedeae0ef05e Mon Sep 17 00:00:00 2001 From: xgizzmo Date: Thu, 19 Jul 2007 00:19:43 +0000 Subject: few fixups to pass W3C Validation Service (wip) --- lib/search.php | 2 +- lib/ui.lib.php | 2 +- modules/localplay/icecast.controller.php | 6 +++--- register.php | 2 +- templates/header.inc.php | 2 +- templates/rightbar.inc.php | 1 + templates/show_add_user.inc.php | 1 + templates/show_all_popular.inc.php | 1 + templates/show_artist_box.inc.php | 4 ++-- templates/show_box.inc.php | 2 +- templates/show_edit_catalog.inc.php | 1 + templates/show_now_playing_row.inc.php | 2 +- templates/show_preferences.inc.php | 2 +- templates/show_random_albums.inc.php | 2 +- templates/show_songs.inc.php | 4 ++-- 15 files changed, 19 insertions(+), 15 deletions(-) diff --git a/lib/search.php b/lib/search.php index 2e91a3ef..061f8572 100644 --- a/lib/search.php +++ b/lib/search.php @@ -219,7 +219,7 @@ function search_song($data,$operator,$method,$limit) { */ $_SESSION['userdata']['stored_search'] = $sql; - //echo "DEBUG: $sql
"; flush(); + //echo "DEBUG: $sql
"; flush(); $db_results = mysql_query($sql, dbh()); while ($r = mysql_fetch_assoc($db_results)) { diff --git a/lib/ui.lib.php b/lib/ui.lib.php index aa407adf..459e8424 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -1242,7 +1242,7 @@ function get_user_icon($name,$hover_name='',$title='') { $hov_url = Config::get('web_path') . '/images/' . $hover_icon; } - $hov_txt = "onMouseOver=\"this.src='$hov_url'; return true;\" onMouseOut=\"this.src='$img_url'; return true;\""; + $hov_txt = "onmouseover=\"this.src='$hov_url'; return true;\" onmouseout=\"this.src='$img_url'; return true;\""; } // end hover } // end if not cached diff --git a/modules/localplay/icecast.controller.php b/modules/localplay/icecast.controller.php index c95fd96a..9556d173 100644 --- a/modules/localplay/icecast.controller.php +++ b/modules/localplay/icecast.controller.php @@ -109,7 +109,7 @@ class AmpacheIcecast { function add_songs($songs) { $filename = conf('localplay_icecast_tracklist'); - //echo "$filename " . _("Opened for writing") . "
\n"; + //echo "$filename " . _("Opened for writing") . "
\n"; /* Open the file for writing */ if (!$handle = @fopen($filename, "w")) { @@ -121,7 +121,7 @@ class AmpacheIcecast { $song = new Song($song_id); $url = $song->get_url(); - //echo "$song->file
\n"; + //echo "$song->file
\n"; $line = "$song->file\n"; if (!fwrite($handle, $line)) { debug_event('icecast',"Fwrite: Unabled to write $line into $filename",'3'); @@ -131,7 +131,7 @@ class AmpacheIcecast { } // end foreach - //echo $filename . " " . _("Closed after write") . "
\n"; + //echo $filename . " " . _("Closed after write") . "
\n"; fclose($handle); return true; diff --git a/register.php b/register.php index 0f13e9a7..38005c28 100644 --- a/register.php +++ b/register.php @@ -123,7 +123,7 @@ switch ($action) { $mmsg = "MAILOK"; } else { - $GLOBALS['error']->add_error('email',_("Error Email address not confirmed
$validate_results[1]")); + $GLOBALS['error']->add_error('email',_("Error Email address not confirmed
$validate_results[1]")); } /* End of mailcheck */ diff --git a/templates/header.inc.php b/templates/header.inc.php index a29f55a8..2c1e56c2 100644 --- a/templates/header.inc.php +++ b/templates/header.inc.php @@ -50,7 +50,7 @@ if (Config::get('use_rss')) { ?> - +
+
diff --git a/templates/show_add_user.inc.php b/templates/show_add_user.inc.php index 38871dc1..54d261d8 100644 --- a/templates/show_add_user.inc.php +++ b/templates/show_add_user.inc.php @@ -79,6 +79,7 @@ + diff --git a/templates/show_all_popular.inc.php b/templates/show_all_popular.inc.php index a6478952..af8f16b5 100644 --- a/templates/show_all_popular.inc.php +++ b/templates/show_all_popular.inc.php @@ -45,3 +45,4 @@   + \ No newline at end of file diff --git a/templates/show_artist_box.inc.php b/templates/show_artist_box.inc.php index d75c116e..0b1cd1c7 100644 --- a/templates/show_artist_box.inc.php +++ b/templates/show_artist_box.inc.php @@ -24,9 +24,9 @@ $title = _('Albums by') . " " . $artist->full_name; show_box_top(_('Albums by') . ' ' . $artist->full_name); if (Config::get('ratings')) { - echo "id . "_artist\" style=\"display:inline;\">"; + echo "
id . "_artist\" style=\"display:inline;\">"; show_rating($artist->id, 'artist'); - echo ""; + echo "
"; } // end if ratings ?> :
full_name; ?>
diff --git a/templates/show_box.inc.php b/templates/show_box.inc.php index 7a4fb127..f0b8ea3c 100644 --- a/templates/show_box.inc.php +++ b/templates/show_box.inc.php @@ -27,5 +27,5 @@ echo "
  • ".$item->f_name_link."
  • \n"; } ?> - ' . _('Not Enough Data') . '
    '; } ?> + ' . _('Not Enough Data') . ''; } ?> diff --git a/templates/show_edit_catalog.inc.php b/templates/show_edit_catalog.inc.php index efd406ae..7ee1767a 100644 --- a/templates/show_edit_catalog.inc.php +++ b/templates/show_edit_catalog.inc.php @@ -40,6 +40,7 @@ catalog_type)); ?> + : diff --git a/templates/show_now_playing_row.inc.php b/templates/show_now_playing_row.inc.php index 56697326..79998aee 100644 --- a/templates/show_now_playing_row.inc.php +++ b/templates/show_now_playing_row.inc.php @@ -24,7 +24,7 @@ $title = scrub_out(truncate_with_ellipse($song->title,'25')); $album = scrub_out(truncate_with_ellipse($song->f_album_full,'25')); $artist = scrub_out(truncate_with_ellipse($song->f_artist_full,'25')); ?> -:
    fullname); ?>

    +:
    fullname); ?>


    diff --git a/templates/show_preferences.inc.php b/templates/show_preferences.inc.php index 81b2c06e..aabb5ca4 100644 --- a/templates/show_preferences.inc.php +++ b/templates/show_preferences.inc.php @@ -46,5 +46,5 @@ if ($_REQUEST['tab'] == 'account') { } ?> - + diff --git a/templates/show_random_albums.inc.php b/templates/show_random_albums.inc.php index 28606db7..a3fcd98e 100644 --- a/templates/show_random_albums.inc.php +++ b/templates/show_random_albums.inc.php @@ -36,7 +36,7 @@ $web_path = Config::get('web_path'); f_artist . '] ' . $album->f_name; ?> -
    +
    id . "_album\">"; diff --git a/templates/show_songs.inc.php b/templates/show_songs.inc.php index 7ad023db..24687b10 100644 --- a/templates/show_songs.inc.php +++ b/templates/show_songs.inc.php @@ -39,8 +39,8 @@ $ajax_url = Config::get('ajax_url'); - - + +