summaryrefslogtreecommitdiffstats
path: root/templates/show_object_rating.inc.php
diff options
context:
space:
mode:
authorxgizzmo <xgizzmo@ampache>2005-12-28 01:40:44 +0000
committerxgizzmo <xgizzmo@ampache>2005-12-28 01:40:44 +0000
commit4cbcbc1dce33ad35dc0214047d71330976a2861b (patch)
treef233ffcfc11aa7c965a34561e42d86909c9211fb /templates/show_object_rating.inc.php
parent2644fd3d29e0c53e9096965c9c2dbf18fe623f17 (diff)
downloadampache-4cbcbc1dce33ad35dc0214047d71330976a2861b.tar.gz
ampache-4cbcbc1dce33ad35dc0214047d71330976a2861b.tar.bz2
ampache-4cbcbc1dce33ad35dc0214047d71330976a2861b.zip
More XHTML clean up
Diffstat (limited to 'templates/show_object_rating.inc.php')
-rw-r--r--templates/show_object_rating.inc.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/show_object_rating.inc.php b/templates/show_object_rating.inc.php
index 1be182cb..16dff78e 100644
--- a/templates/show_object_rating.inc.php
+++ b/templates/show_object_rating.inc.php
@@ -26,7 +26,7 @@ if ($type != 'song') {
}
/* Create some variables we are going to need */
-$base_url = conf('web_path') . '/ratings.php?action=set_rating&mode=' . conf('flash') . '&rating_type=' . $rating->type . '&object_id=' . $rating->id . '&username=' . $GLOBALS['user']->username;
+$base_url = conf('web_path') . '/ratings.php?action=set_rating&amp;mode=' . conf('flash') . '&amp;rating_type=' . $rating->type . '&amp;object_id=' . $rating->id . '&amp;username=' . $GLOBALS['user']->username;
$score = '0';
@@ -34,27 +34,27 @@ $score = '0';
while ($score < 6) {
/* Handle the "Not rated" possibility */
if ($score == '0' AND $rating->rating == '-1') {
- echo "<img src=\"" . conf('web_path') . "/images/ratings/x.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\">\n";
+ echo "<img src=\"" . conf('web_path') . "/images/ratings/x.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\" />\n";
$found_on = true;
}
elseif ($score == '0' AND $rating->rating == '0') {
- echo "<img src=\"" . conf('web_path') . "/images/ratings/x_off.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\">\n";
+ echo "<img src=\"" . conf('web_path') . "/images/ratings/x_off.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\" />\n";
$found_on = true;
}
elseif ($score == '0') {
- echo "<a href=\"" . $base_url . "&rating=$score\">\n\t";
- echo "<img src=\"" . conf('web_path') . "/images/ratings/x_off.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\">\n";
+ echo "<a href=\"" . $base_url . "&amp;rating=$score\">\n\t";
+ echo "<img src=\"" . conf('web_path') . "/images/ratings/x_off.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\" />\n";
echo "</a>";
}
elseif ($score == $rating->rating) {
- echo "<img src=\"" . conf('web_path') . "/images/ratings/star.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\">\n";
+ echo "<img src=\"" . conf('web_path') . "/images/ratings/star.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\" />\n";
$found_on = true;
}
elseif (!$found_on) {
- echo "<a href=\"" . $base_url . "&rating=$score\">\n\t<img src=\"" . conf('web_path') . "/images/ratings/star.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\">\n</a>\n";
+ echo "<a href=\"" . $base_url . "&amp;rating=$score\">\n\t<img src=\"" . conf('web_path') . "/images/ratings/star.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\" />\n</a>\n";
}
else {
- echo "<a href=\"" . $base_url . "&rating=$score\">\n\t<img src=\"" . conf('web_path') . "/images/ratings/star_off.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\">\n</a>\n";
+ echo "<a href=\"" . $base_url . "&amp;rating=$score\">\n\t<img src=\"" . conf('web_path') . "/images/ratings/star_off.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\" />\n</a>\n";
}
/* Next! */
$score++;