41 lines
1.6 KiB
Plaintext
41 lines
1.6 KiB
Plaintext
<div class="sy_class_r sy_class_nobg fr ml10">
|
||
<div class="sy_class_r_head mb10">
|
||
<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>
|
||
</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> |