2016-10-21 17:34:02 +08:00
|
|
|
|
<div class="sy_class_r sy_class_nobg fr ml10">
|
|
|
|
|
<div class="sy_class_r_head mb10">
|
2016-11-30 10:44:15 +08:00
|
|
|
|
<h3 class="fl">学生列表(<%=@group.name %>)</h3>
|
|
|
|
|
<%= link_to "导出成绩", export_course_member_excel_course_path(@course,:group_id => @group.id ,:format => 'xls'), :class => 'link-blue fr mt5'%>
|
|
|
|
|
<div class="cl"></div>
|
2016-10-21 17:34:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="sy_class_fenban clear">
|
|
|
|
|
<div id="search_members">
|
|
|
|
|
<div class="clear mb10">
|
|
|
|
|
<div class="fl" id="join_or_add">
|
|
|
|
|
<%= render :partial => 'join_or_add'%>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="hw_search_box fr">
|
|
|
|
|
<%= form_tag(searchmembers_course_path(@course), method: 'get',:class => "f_l",:remote=>true,:id => "search_student") do %>
|
|
|
|
|
<input class="hw_search-input" name="name" id="search_member_input" placeholder="输入学生登录名/姓名/学号进行搜索" type="text">
|
|
|
|
|
<%= hidden_field "search_group_id", params[:search_group_id],:value => "#{@group.id}", name: 'search_group_id' %>
|
|
|
|
|
<input type="hidden" name="ingroup">
|
|
|
|
|
<% end %>
|
|
|
|
|
<a href="javascript:void(0)" class="hw_btn_search" onclick="$('#search_student').submit();"></a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
|
<div id="member_content">
|
|
|
|
|
<%= render :partial => 'new_member_list', :locals => {:members => @results} %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$(function(){
|
|
|
|
|
$("#search_member_input").keypress(function(e){
|
|
|
|
|
var name = $.trim($('#search_member_input').val());
|
|
|
|
|
if (e.keyCode == '13' && name != "" && name.length != 0) {
|
|
|
|
|
$(this).parent().submit();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
</script>
|