";
}
function icon_difficulty($what, $difficulty)
{
global $stylepath;
global $difficulty_text_diff;
global $difficulty_text_terr;
if($what != "diff" && $what != "terr")
die("Wrong difficulty-identifier!");
$difficulty = (int)$difficulty;
if($difficulty < 2 || $difficulty > 10)
die("Wrong difficulty-value $what: $difficulty");
$icon = sprintf("$stylepath/images/difficulty/$what-%d%d.gif", (int)$difficulty / 2, ((float)($difficulty / 2) - (int)($difficulty / 2)) * 10);
$text = sprintf($what == "diff" ? $difficulty_text_diff : $difficulty_text_terr, $difficulty / 2);
return "
";
}
function icon_rating($founds, $topratings)
{
global $stylepath;
global $rating_text;
global $not_rated;
if ($topratings == 0)
return '';
$sAltText = $topratings . ' Empfehlungen';
if ($topratings > 3)
$nIconsCount = 2;
else
$nIconsCount = $topratings;
$sRetval = '';
$sRetval .= str_repeat('
', $nIconsCount);
if ($topratings > 3)
$sRetval .= '
';
return '' . $sRetval . ' ';
}
?>