<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', :media => 'all' %>

<%=l(:label_latest_login_user_list)%>

<%= render 'tab_users' %>

最近登录老师列表

<%= form_tag({}, :method => :get) do %>
<%= l(:label_filter_plural) %> <%= text_field_tag 'startdate', params[:startdate], :size => 15, :onchange=>"$('#ui-datepicker-div').hide()", :style=>"float:left"%> <%= calendar_for('startdate')%>    <%= text_field_tag 'enddate', params[:enddate], :size => 15, :onchange =>"$('#ui-datepicker-div').hide()", :style=>"float:left"%> <%= calendar_for('enddate')%>   <%= submit_tag l(:button_apply), :class => "small", :name => nil %> <%= link_to l(:button_clear), {:controller => 'admin', :action => 'latest_login_teachers'}, :class => 'icon icon-reload' %>
<% end %>  
<% @count=@page * 30 %> <% for teacher in @teachers do %> <% @count +=1 %> <% end %>
序号 登录时间 用户id 用户姓名 用户登录名 用户身份 用户单位
<%=@count %> <%=format_time(teacher.last_login_on) %> <%= teacher.user_id %> <%= teacher.login%><% else %><%=teacher.try(:realname) %><% end %>'> <% if teacher.try(:realname) == ' '%> <%= link_to(teacher.login, user_path(teacher.user_id)) %> <% else %> <%= link_to(teacher.try(:realname), user_path(teacher.user_id)) %> <% end %> <%= link_to(teacher.login, user_path(teacher.user_id)) %> 老师 <%= teacher.school_id.nil? ? "" : (School.find teacher.school_id).try(:name) %>
<% html_title(l(:label_latest_login_teacher_list)) -%>