{template header}
<div id="middle">
<div id="c90">
<div class="t3 bcb"><div class="t3t bgb">{lang ques_select_best_answer}</div></div>
<div class="b3 bcb mb12">
<div class="w100">
<br />
<div class="f14B">{$ques_title}</div>
<div class="f13">{lang menu_ques_score}:{$quesscore}</div>
<div class="f13">&nbsp;</div>
<div class="f13"><font color="red"><b>{lang menu_answer_adopted}:</b></font></div>
<div class="f14">{$ques_answer}</div>
<br />
<div class="f13">{lang ques_answer_user}:{$answer_user} &nbsp;</div>
<br />
<div>
<script type="text/javascript">
function check_score()
{
	var addscore=Number(document.adoptForm.addscore.value);
	var myscore=Number(document.adoptForm.myscore.value);
	if(addscore > myscore)
	{
      	document.getElementById("scoretip").innerHTML = "<font color=\"red\">{lang warning_score_less}</font>";
	  	document.adoptForm.addscore.options[0].selected = true;
	}
	else
	{
		document.getElementById("scoretip").innerHTML = "";
	}
}
</script>
<form name="adoptForm" action="handle.php" method="post">
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td nowrap="nowrap" width="18%" valign="top"><span class="f14">{lang menu_answer_response}:</span></td>
<td width="82%" height=40>
<textarea name="content" rows="6" cols=68></textarea></td></tr>
<tr><td nowrap="nowrap" width="18%"><span class="f14">{lang ques_select_addscore}:</span></td>
<td class="f14" width="82%" height="30">
<input type="hidden" name="myscore" value="{$my_score}" />
<select name="addscore" onchange="check_score();">
<option value="0" selected>0</option>
<option value="10">10</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="50">50</option>
<option value="60">60</option>
<option value="80">80</option>
</select>&nbsp;<span id="scoretip"></span>
</td></tr>
<tr><td nowrap="nowrap" width="18%"><span class="f14">{lang ques_leftscore}:</span></td>
<td class="f14" width="82%" height="30">{$my_score}</td></tr>
<tr><td width="15%">&nbsp;</td>
    <td width="85%">
	<input type="hidden" name="command" value="answer_adopt_submit" />
	<input type="hidden" name="aid" value="{$answerid}" />
	<input type="hidden" name="score" value="{$quesscore}" />
	<input type="hidden" name="formhash" value="{echo form_hash()}" />
	<input type="hidden" name="url" value="{echo get_referer($default = './')}" />
	<input type="submit" name="adoptsubmit" value="{lang button_submit}" class="bnsrh" />&nbsp;&nbsp; 
	<input type="button" name="Submit2" onClick="history.back();" value="{lang button_notdo}" class="bnsrh" />
</td></tr>
</table>
</form>
<br />
</div>
</div>
</div>
</div>
{template footer}