@ -23,35 +23,44 @@
</div>
</div>
<div class="cl"></div>
<div class="cl"></div>
</li>
</li>
<li ><span class="tit_fb ">测试结果:</span>
<li ><span class="tit_fb ">测试结果:</span>
<table class="border_ce" cellpadding="0" cellspacing="0">
<table class="border_ce" cellpadding="0" cellspacing="0">
<tbody>
<tbody>
<!--<%#@work.student_work_test.each do |test|%>-->
<tr class=" b_lblue fb c_w">
<!--<tr class="<%#= cycle("", "b_grey") %>">-->
<td class="td_tit ">输入</td>
<!--<td class="td_tit">-->
<td class="td_tit border_l ">输出</td>
<!--<%#= test.homework_test.input%>-->
<td class="td_50 border_l ">测试结果</td>
<!--</td>-->
</tr>
<!--<td class="td_tit">-->
<!--<%#= test.homework_test.output%>-->
<!--</td>-->
<!--<td class="td_50 c_red"><%#= test.status_to_s%></td>-->
<!--<td class="td_50 "><%#= test.test_score%></td>-->
<!--</tr>-->
<!--<%# end%>-->
<%@homework.homework_tests.each do |test|%>
<%@homework.homework_tests.each do |test|%>
<tr class="<%= cycle("", "b_grey") %>">
<tr class="<%= cycle("", "b_grey") %>">
<td class="td_tit">
<td class="td_tit hidden">
<%= test.input%>
<%= test.input%>
</td>
</td>
<td class="td_tit">
<td class="td_tit border_l hidden">
<%= test.output%>
<%= test.output%>
</td>
</td>
<% student_work_test = StudentWorkTest.where(:homework_test_id => test.id,:student_work_id => @work.id).first%>
<% student_work_test = StudentWorkTest.where(:homework_test_id => test.id,:student_work_id => @work.id).first%>
<td class="td_50 c_red"><%= student_work_test.nil? ? "正在编译" : student_work_test.status_to_s%></td>
<td class="td_50 c_red border_l "><%= student_work_test.nil? ? "正在编译" : student_work_test.status_to_s%></td>
<input type="hidden" value="<%= student_work_test.result if student_work_test%>">
<input type="hidden" value="<%= student_work_test.result if student_work_test%>">
</tr>
</tr>
<% end%>
<% end%>
<% student_work_test = @work.student_work_test.first%>
<% if student_work_test && student_work_test.error_msg && !student_work_test.error_msg.empty?%>
<tr class="border_t" >
<td colspan="3" class="td_end" >编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息编程错误信息</td>
</tr>
<% end%>
</tbody>
</table>
<div class="cl"></div>
</li>
<li ><span class="tit_fb ">测试结果:</span>
<table class="border_ce" cellpadding="0" cellspacing="0">
<tbody>
</tbody>
</tbody>
</table>
</table>