Rating +/- links now are images

svn path=/trunk/boinc/; revision=5988
This commit is contained in:
Janus B. Kristensen 2005-04-30 09:04:00 +00:00
parent 9cc2e959c2
commit e70234033f
3 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,10 @@ define('EMPHASIZE_IMAGE', 'img/emphasized_post.png');
define('EMPHASIZE_IMAGE_HEIGHT','15');
define('FILTER_IMAGE', 'img/filtered_post.png');
define('FILTER_IMAGE_HEIGHT','15');
define('RATE_POSITIVE_IMAGE', 'img/rate_positive.png');
define('RATE_POSITIVE_IMAGE_HEIGHT','9');
define('RATE_NEGATIVE_IMAGE', 'img/rate_negative.png');
define('RATE_NEGATIVE_IMAGE_HEIGHT','9');
define ('SOLUTION', 'This answered my question');
define ('SUFFERER', 'I also have this question');
@ -624,7 +628,7 @@ function show_post($post, $thread, $logged_in_user, $n, $controls=FORUM_CONTROLS
} else if ($controls == HELPDESK_CONTROLS && !$separate) {
echo " / Score: ", round(($post->score * $post->votes),0), "</i></font></td>";
} else {
echo " / Rating: ", round(intval(($post->score * $post->votes)+0.01),0), "</i> - rate: <a href=\"forum_rate.php?post=".$post->id."&amp;choice=p\">+</a> / <a href=\"forum_rate.php?post=".$post->id."&amp;choice=n\">-</a></font></td>";
echo " / Rating: ", round(intval(($post->score * $post->votes)+0.01),0), "</i> - rate: <a href=\"forum_rate.php?post=".$post->id."&amp;choice=p\"><img src=\"".RATE_POSITIVE_IMAGE."\" alt=\"+\" height=\"".RATE_POSITIVE_IMAGE_HEIGHT."\" border=0></a> / <a href=\"forum_rate.php?post=".$post->id."&amp;choice=n\"><img src=\"".RATE_NEGATIVE_IMAGE."\" alt=\"-\" height=\"".RATE_NEGATIVE_IMAGE_HEIGHT."\" border=0></a></font></td>";
}
if ($controls == FORUM_CONTROLS) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 B