working numeric score

git-svn-id: file:///home/shish/svn/shimmie2/trunk@782 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2008-04-08 16:53:48 +00:00
parent 811887d06a
commit a885d1481e
2 changed files with 20 additions and 48 deletions

View File

@ -6,26 +6,14 @@ class NumericScoreTheme extends Themelet {
$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>
<tr>
<td>Score ($i_score)</td>
<td>
<input type='radio' name='numeric_score' value='u' id='u'><label for='u'>Up</label>
<input type='radio' name='numeric_score' value='n' id='n' checked><label for='n'>Keep</label>
<input type='radio' name='numeric_score' value='d' id='d'><label for='d'>Down</label>
</td>
</tr>
";
return $html;
}