type . '&object_id=' . $rating->id;
//set the background to no stars
echo "
\n";
// Add in the 0 / Remove rating level
echo "- " . Ajax::text($base_url . '&rating=-1','','rating0_' . $rating->id,'','zero-stars') . "
";
// decide width of rating. image is 16 px wide
$width = $rating->rating*16;
//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 :\
?>
-
id,'','one-stars'); ?>
-
id,'','two-stars'); ?>
-
id,'','three-stars'); ?>
-
id,'','four-stars'); ?>
-
id,'','five-stars'); ?>