|
|
|
@ -2,6 +2,8 @@
|
|
|
|
|
@nav_dispaly_forum_label = 1
|
|
|
|
|
@nav_dispaly_course_label = nil
|
|
|
|
|
@nav_dispaly_store_all_label = 1 %>
|
|
|
|
|
<% teacher_num = teacherCount(@course) %>
|
|
|
|
|
<% student_num = studentCount(@course) %>
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
@ -46,9 +48,13 @@
|
|
|
|
|
</td>
|
|
|
|
|
<td rowspan="2" width="250px">
|
|
|
|
|
<div class="top-content-search">
|
|
|
|
|
<%= form_tag(:controller => 'courses', :action => 'search', :method => :get) do %>
|
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 20 %>
|
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
|
|
|
|
|
|
|
|
|
<%= form_tag({:controller => 'courses', :action => 'search'},:id => "course_search_form", :method => :get) do %>
|
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 20, :style => "float:left" %>
|
|
|
|
|
<a href="#" onclick="$('#course_search_form').submit();" class="ButtonColor m3p10" style="float:left;padding-top: 3px; margin: 0px;padding-bottom:0px;" >
|
|
|
|
|
<%= l(:label_search)%>
|
|
|
|
|
</a>
|
|
|
|
|
<%#= submit_tag l(:label_search), :class => "ButtonColor m3p10", :name => nil, :style => "float:left;padding-top: 3px; margin: 0px;padding-bottom:0px;" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
@ -120,19 +126,19 @@
|
|
|
|
|
<td class="font_index">
|
|
|
|
|
<!-- 1 教师; 2 学生;0 全部-->
|
|
|
|
|
<% if User.current.member_of_course?(@course) %>
|
|
|
|
|
<%= link_to "#{teacherCount(@course)}", course_member_path(@course, :role => 1), :course => '1' %>
|
|
|
|
|
<%= link_to "#{teacher_num}", course_member_path(@course, :role => 1), :course => '1' %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span>
|
|
|
|
|
<%= teacherCount(@course)%>
|
|
|
|
|
<%= teacher_num %>
|
|
|
|
|
</span>
|
|
|
|
|
<% end%>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="font_index">
|
|
|
|
|
<% if (User.current.logged? && @course.open_student == 1) || (User.current.member_of_course?(@course)) %>
|
|
|
|
|
<%= link_to "#{studentCount(@course)}", course_member_path(@course, :role => 2), :course => '1' %>
|
|
|
|
|
<%= link_to "#{student_num}", course_member_path(@course, :role => 2), :course => '1' %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span>
|
|
|
|
|
<%= studentCount(@course)%>
|
|
|
|
|
<%= student_num %>
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
@ -141,10 +147,10 @@
|
|
|
|
|
</td>
|
|
|
|
|
<tr class="font_aram">
|
|
|
|
|
<td align="center" width="80px" id="teacherCount">
|
|
|
|
|
<%= l(:label_x_base_courses_teacher, :count => teacherCount(@course)) %>
|
|
|
|
|
<%= l(:label_x_base_courses_teacher, :count => teacher_num) %>
|
|
|
|
|
</td>
|
|
|
|
|
<td align="center" width="80px" id="studentCount">
|
|
|
|
|
<%= l(:label_x_base_courses_student, :count => studentCount(@course)) %>
|
|
|
|
|
<%= l(:label_x_base_courses_student, :count => student_num) %>
|
|
|
|
|
</td>
|
|
|
|
|
<td align="center" width="80px">
|
|
|
|
|
<%= l(:label_x_course_data, :count => files_count) %>
|
|
|
|
|