This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/contrib/numeric_score/theme.php
shish 614f11d910 One True Image Info Editor
git-svn-id: file:///home/shish/svn/shimmie2/trunk@616 7f39781d-f577-437e-ae19-be835c7a54ca
2007-11-14 10:11:56 +00:00

34 lines
861 B
PHP

<?php
class NumericScoreTheme extends Themelet {
public function get_voter_html($image) {
$i_image_id = int_escape($image->id);
$i_score = int_escape($image->numeric_score);
$html = "
<table style='width: 400px;'>
<tr>
<td>Current score is $i_score</td>
<td>
<!--
<form action='".make_link("numeric_score/vote")."' method='POST'>
<input type='hidden' name='image_id' value='$i_image_id' />
<input type='hidden' name='score' value='1'>
<input type='submit' value='Vote Up' />
</form>
</td>
<td>
<form action='".make_link("numeric_score/vote")."' method='POST'>
<input type='hidden' name='image_id' value='$i_image_id' />
<input type='hidden' name='score' value='-1'>
<input type='submit' value='Vote Down' />
</form>-->
</td>
</tr>
</table>
";
return $html;
}
}
?>