|
|
|
@ -78,7 +78,7 @@
|
|
|
|
|
|
|
|
|
|
<li >
|
|
|
|
|
<label class="label02"> 标准代码: </label>
|
|
|
|
|
<textarea name="standard_code" class=" w547 h150 mb10 fl"><%= homework.homework_detail_programing.standard_code%></textarea>
|
|
|
|
|
<textarea name="standard_code" class=" w547 h150 mb10 fl" oninput="init_programing_test();" onpropertychange="init_programing_test()"><%= homework.homework_detail_programing.standard_code%></textarea>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
@ -96,7 +96,7 @@
|
|
|
|
|
<li>
|
|
|
|
|
<a class="icon_add ml10 " href="javascript:void(0);" title="添加测试" onclick="add_programing_test($(this).parent().parent())"></a>
|
|
|
|
|
<a class="icon_remove" href="javascript:void(0);" title="删除测试" onclick="remove_programing_test($(this).parent().parent())"></a>
|
|
|
|
|
<a class="blue_btn fl ml5 mt1" onclick="programing_test('<%= homework_test.id%>')" id="test_send_<%= homework_test.id%>">测试</a>
|
|
|
|
|
<a class="blue_btn fl ml5 mt1 programing_test" onclick="programing_test('<%= homework_test.id%>')" id="test_send_<%= homework_test.id%>">测试</a>
|
|
|
|
|
<input type="hidden" id="test_result_<%= homework_test.id%>" name="result[<%= homework_test.id%>]" />
|
|
|
|
|
</li>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -115,7 +115,7 @@
|
|
|
|
|
<li>
|
|
|
|
|
<a class="icon_add ml10 " href="javascript:void(0);" title="添加测试" onclick="add_programing_test($(this).parent().parent())"></a>
|
|
|
|
|
<a class="icon_remove" href="javascript:void(0);" title="删除测试" onclick="remove_programing_test($(this).parent().parent())"></a>
|
|
|
|
|
<a class="blue_btn fl ml5 mt1" onclick="programing_test('0')" id="test_send_0">测试</a>
|
|
|
|
|
<a class="blue_btn fl ml5 mt programing_test" onclick="programing_test('0')" id="test_send_0">测试</a>
|
|
|
|
|
<input type="hidden" id="test_result_0" name="result[0]" />
|
|
|
|
|
</li>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -142,4 +142,12 @@
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function init_programing_test()
|
|
|
|
|
{
|
|
|
|
|
$(".programing_test").each(function(){
|
|
|
|
|
$(this).removeClass("green_btn red_btn").addClass("blue_btn").text("测试");
|
|
|
|
|
$(this).next("input").val("");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
</script>
|