forked from Cavemanon/cavepaintings
most of the rating-setting code done
git-svn-id: file:///home/shish/svn/shimmie2/trunk@510 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
19
contrib/rating/theme.php
Normal file
19
contrib/rating/theme.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
class RatingsTheme extends Themelet {
|
||||
public function display_rater($page, $image_id) {
|
||||
$i_image_id = int_escape($image_id);
|
||||
$html = "
|
||||
<form action='".make_link("rating/set")."' method='POST'>
|
||||
<input type='hidden' name='image_id' value='$i_image_id' />
|
||||
<input type='radio' name='rating' value='s' id='s'><label for='s'>Safe</label>
|
||||
<input type='radio' name='rating' value='q' id='q'><label for='q'>Questionable</label>
|
||||
<input type='radio' name='rating' value='e' id='e'><label for='e'>Explicit</label>
|
||||
<input type='submit' value='Set' />
|
||||
</form>
|
||||
";
|
||||
$page->add_block(new Block(null, $html, "main", 45));
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user