" . _("Rating") . ":"; } /* 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; $score = '0'; /* count up to 6 */ while ($score < 6) { /* Handle the "Not rated" possibility */ if ($score == '0' AND $rating->rating == '-1') { echo "\""\n"; $found_on = true; } elseif ($score == '0' AND $rating->rating == '0') { echo "\""\n"; $found_on = true; } elseif ($score == '0') { echo "\n\t"; echo "\""\n"; echo ""; } elseif ($score == $rating->rating) { echo "\""\n"; $found_on = true; } elseif (!$found_on) { echo "\n\t\""\n\n"; } else { echo "\n\t\""\n\n"; } /* Next! */ $score++; } // end while ?>