type . '&object_id=' . $rating->id . '&username=' . $GLOBALS['user']->username;
//set the background to no stars
echo "
\n";
/* Handle the "Not rated" possibility */
if ($rating->rating == '-1') {
echo "- -1
\n";
}
else {
echo "- -1
\n";
}
// decide width of rating. image is 16 px wide
$width = $rating->rating*16;
if ($width < 0) $width = 0;
//set the current rating background
echo "- Current rating: ";
if ($rating->rating <= 0) {
echo "not rated yet
\n";
}
else echo "$rating->rating of 5\n";
//it did not like my "1-star", "2-star" ... css styles, and I changed it to this after I realized star1... would have worked :\
echo "- $score
\n";
echo "- $score
\n";
echo "- $score
\n";
echo "- $score
\n";
echo "- $score
\n";
echo "
";
?>