+ <% if @canShowCode %>
+
添加分班
+
+ <%= form_tag( addgroups_course_path(@course), method: 'get',:remote=>true,:id => 'add_group_name') do %>
+
+
确定
+
取消
+ <% end %>
+
+ <% end %>
+
+ <%= form_tag( searchmembers_course_path(@course), method: 'get',:class => "f_l",:remote=>true,:id => "search_student") do %>
+
+ <% if @group %>
+ <%= hidden_field "search_group_id", params[:search_group_id],:value => "#{@group.id}", name: 'search_group_id' %>
+
+ <% else %>
+
+ <% end %>
<% end %>
-<% end %>
-
搜索
-<%= link_to l(:label_export_excel), export_course_member_excel_course_path(@course,:format => 'xls'),:class=>'xls'%>
\ No newline at end of file
+
+
+
+
+
\ No newline at end of file
diff --git a/app/views/courses/addgroups.js.erb b/app/views/courses/addgroups.js.erb
index f0c0f4be3..494f26bae 100644
--- a/app/views/courses/addgroups.js.erb
+++ b/app/views/courses/addgroups.js.erb
@@ -1,2 +1,4 @@
$("#st_groups").html("<%= escape_javascript( render :partial => 'new_groups_name', locals: {:course_groups => @course_groups})%>");
-$("#member_content").html("<%= escape_javascript( render :partial => 'new_member_list', :locals => {:members => @members})%>");
\ No newline at end of file
+$("#member_content").html("<%= escape_javascript( render :partial => 'new_member_list', :locals => {:members => @members})%>");
+$('#group_name').val('');
+$('#new_group_name').hide();
\ No newline at end of file
diff --git a/app/views/courses/member.html.erb b/app/views/courses/member.html.erb
index 4eeef6d1a..9ddca3fa5 100644
--- a/app/views/courses/member.html.erb
+++ b/app/views/courses/member.html.erb
@@ -1,17 +1,35 @@
-
-
-
<%= @subPage_title%>
- <% if User.current.allowed_to?(:as_teacher,@course) %>
-
- <%=link_to "成员管理", :controller => 'courses', :action => 'settings', :id => @course.id, :tab=>'member' %>
-
- <% end %>
-
-<% if @subPage_title == l(:label_student_list)%>
- <%= render :partial => 'course_student', :locals => {:members => @members} %>
-<% else%>
- <%= render :partial => 'course_teacher', :locals => {:members => @members} %>
-<% end%>
+<% if @role == 1 %>
+
+
+
<%= @subPage_title%>
+ <% if User.current.allowed_to?(:as_teacher,@course) %>
+
+ <%=link_to "成员管理", :controller => 'courses', :action => 'settings', :id => @course.id, :tab=>'member' %>
+
+ <% end %>
+
+ <%= render :partial => 'course_teacher', :locals => {:members => @members} %>
+
+<% else %>
+
+
+
<%= @subPage_title %>
+
+
+
+
+ <%= link_to l(:label_export_excel), export_course_member_excel_course_path(@course,:format => 'xls'), :class => 'hw_more_li'%>
+ <% if User.current.allowed_to?(:as_teacher,@course) %>
+
+ <%=link_to "成员管理", :controller => 'courses', :action => 'settings', :id => @course.id, :tab => 'member', :class => 'hw_more_li' %>
+
+ <% end %>
+
+
+
+
+
+ <%= render :partial => 'course_student', :locals => {:members => @members} %>
-
+<% end %>
diff --git a/public/images/sy/sy_icons02.png b/public/images/sy/sy_icons02.png
new file mode 100644
index 000000000..7d29ef2a9
Binary files /dev/null and b/public/images/sy/sy_icons02.png differ
diff --git a/public/javascripts/course.js b/public/javascripts/course.js
index b9d02d18e..dbf68ea39 100644
--- a/public/javascripts/course.js
+++ b/public/javascripts/course.js
@@ -46,6 +46,7 @@ function add_group(url,course_id) {
function edit_group(id,url,course_id,group_id)
{
var group_name = $('#'+id).val();
+ var group_id = $('#'+group_id).val();
$.get(
url,
{
@@ -56,7 +57,7 @@ function edit_group(id,url,course_id,group_id)
},
function (data) {
if (data.valid) {
- $("#update_group_"+group_id).submit();
+ $("#update_group_form").submit();
}
else
{
diff --git a/public/stylesheets/css/common.css b/public/stylesheets/css/common.css
index bf37bf3a4..59e052c86 100644
--- a/public/stylesheets/css/common.css
+++ b/public/stylesheets/css/common.css
@@ -81,7 +81,7 @@ h4{ font-size:14px;}/*color:#3b3b3b;*/
/* Float & Clear */
.clear{ zoom:1;}
-.clear:after {content:".";height:0;visibility:hidden;display:block;clear:both;}
+.clear:after {clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden}
.cl{ clear:both; overflow:hidden; }
.fl{float:left;}
.fr{float:right;}
diff --git a/public/stylesheets/css/courses.css b/public/stylesheets/css/courses.css
index eccbcc9b1..a21633e44 100644
--- a/public/stylesheets/css/courses.css
+++ b/public/stylesheets/css/courses.css
@@ -530,7 +530,7 @@ a:hover.blueCir{ background:#3598db; color:#fff;}
.courseR {width:220px; padding:10px; background-color:#ffffff; margin-top:10px;}
/*20160310分班样式*/
-.select-class-option {width:125px;}
+.select-class-option {width:100px;}
/*20160520作品列表table*/
.hwork-table-wrap {width:720px; border-collapse:collapse; vertical-align:middle; table-layout:fixed;}
diff --git a/public/stylesheets/syllabus.css b/public/stylesheets/syllabus.css
index 1a04c73a5..27054d92a 100644
--- a/public/stylesheets/syllabus.css
+++ b/public/stylesheets/syllabus.css
@@ -634,3 +634,40 @@ a:hover.sy_class_ltitle{ color:#333;}
.sy_new_name{ display:block;max-width:120px; overflow:hidden;white-space: nowrap; text-overflow:ellipsis;}
.sy_new_long_name{ display:block;width:180px; overflow:hidden;white-space: nowrap; text-overflow:ellipsis;}
.mt12{ margin-top:12px;}
+
+/*20160919分班*/
+.sy_class_nobg{ background-color:#eaebec;}
+.sy_class_r_head{ border: 1px solid #e7e7e7; background-color: #fff; padding:10px 15px; position: relative;}
+.sy_class_r_head h3{ font-size: 14px; color: #333;}
+.sy_class_r_more{ display: block;}
+.sy_class_fenban{border: 1px solid #e7e7e7; background-color: #fff; padding:15px;}
+.sy_fenban_input{ height: 28px; background-color: #fff; border: 1px solid #d1d1d1;-webkit-border-radius:3px;-moz-border-radius:3px;-o-border-radius:3px;border-radius:3px; border:1px solid #d3d3d3;padding-left:5px; color:#888; box-shadow: inset 0px 0px 5px #dcdcdc; }
+.sy_icons_edit{ display: inline-block; padding:9px;background:url(../images/sy/sy_icons02.png) 0 1px no-repeat; }
+.sy_icons_del{ padding:9px;background:url(../images/sy/sy_icons02.png) 0 -21px no-repeat;}
+.sy_icons_edit:hover{ background:url(../images/sy/sy_icons02.png) -20px 1px no-repeat; }
+.sy_icons_del:hover{ background:url(../images/sy/sy_icons02.png) -20px -21px no-repeat;}
+.sy_icons_tips{padding:9px;background:url(../images/sy/sy_icons02.png) 0 -66px no-repeat;}
+.sy_sortupbtn{display: inline-block; width:15px; height:18px;background:url(../images/sy/sy_icons02.png) 0 -39px no-repeat;}
+.sy_sortdownbtn{display: inline-block; width:15px; height:18px;background:url(../images/sy/sy_icons02.png) -22px -39px no-repeat;}
+.sy_fenban_list{-webkit-border-radius:3px;-moz-border-radius:3px;-o-border-radius:3px;border-radius:3px; border:1px solid #d2d8e6; padding:5px 10px;background: #f8f9fd}
+.sy_fenban_list a{ color:#3b94d6;}
+.sy_fenban_list a:hover{ color:#2788d0;}
+.sy_class_users_st{ width:30px; }
+.sy_class_users_st_name{ display: inline-block;width:70px; overflow:hidden;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
+.sy_class_users_st_num{ display: inline-block;width:90px; overflow:hidden;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
+.sy_class_users_st img{ width:30px;height:30px; border: 1px solid #fff;-webkit-border-radius:50px;-moz-border-radius:50px;-o-border-radius:50px;border-radius:50px;}
+.sy_fenban_select{height: 28px; background-color: #fff; border: 1px solid #d1d1d1;-webkit-border-radius:3px;-moz-border-radius:3px;-o-border-radius:3px;border-radius:3px; border:1px solid #d3d3d3;padding-left:5px; color:#888; box-shadow: inset 0px 0px 5px #dcdcdc; }
+.sy_new_table_width tr th.sy_th10{ width: 10%; }
+.sy_new_table_width tr th.sy_th0{ width: 12.5%; }
+.sy_new_table_width tr th.sy_th15{ width: 15%; }
+.sy_new_table_width tr th.sy_th7{ width: 7%;}
+.sy_new_table_width tr th.sy_th13{ width: 13%;}
+.sy_fenban_tap{ cursor: pointer; position: relative;}
+.sy_fenban_tap:hover .sy_fenban_show{ display: block;}
+.sy_fenban_show{ width:140px; z-index: 999;text-align: center; line-height:2.0; font-size:12px; font-weight: normal;color:#888;background-color:#fff; border:1px solid #eaeaea;border-radius:5px;position:absolute;left:20px; top:30px;padding:5px 0px;display:none; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5);}
+.sy_tips_box{ position: relative; cursor: pointer;}
+.sy_tips_box:hover .sy_tips_box_inner{ display: block;}
+.sy_tips_box_inner{ position: absolute;line-height: 2.0;padding: 5px 10px; white-space: nowrap; background-color: #fff; left:30px; top: -5px; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5);}
+.sy_tips_box_inner span { display: block; border-width: 10px;position: absolute;top: 15px; left: -18px; border-style: dashed solid dashed dashed;border-color: transparent #fff transparent transparent;font-size: 0;line-height: 0;}
+.hw_search_box a.hw_btn_search{display:block; width:20px; height:20px; background:url(../images/hw/icons_hw.png) 0 -57px no-repeat; position:absolute; right:5px; top:5px;}
+