";
}
function icon_cache_status($status, $text)
{
global $stylepath;
switch($status)
{
case 1: $icon = "log/16x16-go.png"; break;
case 2: $icon = "log/16x16-stop.png"; break;
case 3: $icon = "log/16x16-trash.png"; break;
case 4: $icon = "log/16x16-trash.png"; break;
case 5: $icon = "log/16x16-stop.png"; break;
default: $icon = "log/16x16-go.png"; break;
}
return "
";
}
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 . ' ';
}
?>