You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.8 KiB
75 lines
2.8 KiB
<h3 style="float: left">
|
|
<%=l(:label_school_plural)%>
|
|
</h3>
|
|
<!--<!%= form_tag({:controller => 'admin', :action => 'schools' }, :method => :get,:id=>"search_course_form") do %>-->
|
|
<!-- <!%= submit_tag "搜索",:style => "float: right;margin-right: 15px;"%>-->
|
|
<!--<input style="float: right;margin-right: 10px;" id="v_subject" placeholder="学校名称" type="text" name="school_name" value="<%= @school_name%>">-->
|
|
<!% end %>
|
|
<div class="cl"></div>
|
|
|
|
<div class="autoscroll" style="margin-top: 40px;">
|
|
<table class="list" style="width: 100%;table-layout: fixed">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 35px;">
|
|
序号
|
|
</th>
|
|
<th style="width: 60px;">
|
|
LOGO
|
|
</th>
|
|
<th style="width: 100px;">
|
|
学校名称
|
|
</th>
|
|
<th style="width: 35px;" class = "<%= @order == 'num' ? (@sort == 'desc' ? 'st_up' : (@sort == 'asc' ? 'st_down' : '')) : '' %>">
|
|
<%= link_to '用户数', admin_schools_path(:sort=> @sort == "desc" ? 'asc' : 'desc', :order => 'num') %>
|
|
</th>
|
|
<th style="width: 90px;">
|
|
创建时间
|
|
</th>
|
|
<th style="width: 80px;">
|
|
编辑高校信息
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @count=@page * 30 %>
|
|
<% @schools.each do |school| %>
|
|
<tr class="<%= cycle("odd", "even") %>">
|
|
<!td style="text-align:center;vertical-align: middle;">
|
|
<!%= school.id %>
|
|
<% @count +=1 %>
|
|
<td align="center">
|
|
<%=@count %>
|
|
</td>
|
|
|
|
<td align="center">
|
|
<%= image_tag(school.logo_link,width:40,height:40) %>
|
|
<!%= school.name %>
|
|
</td>
|
|
|
|
<td style="text-align:center;vertical-align: middle;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=school.name%>'>
|
|
<span>
|
|
<%= link_to school.name,"http://#{Setting.host_name}/?school_id=#{school.id}" %>
|
|
</span>
|
|
</td>
|
|
<td style="vertical-align: middle;text-align:center">
|
|
<%= schoolMember_num(school) %>
|
|
</td>
|
|
<td style="vertical-align: middle;text-align:center">
|
|
<%= format_time(school.created_at) %>
|
|
</td>
|
|
<td class="buttons" style="vertical-align: middle;text-align:center">
|
|
<%= link_to("修改", upload_logo_school_path(school.id,:school_name => @school_name), :class => 'icon icon-copy') %>
|
|
<%#= link_to(l(:button_delete), organization_path(school.id), :method => :delete,:confirm => l(:text_are_you_sure), :class => 'icon icon-del') %>
|
|
</td>
|
|
</tr>
|
|
<% end%>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<ul class="wlist" id="pages" style="float: right;margin-top: 10px;">
|
|
<%= pagination_links_full @school_pages, @school_count ,:per_page_links => true, :remote => false, :flag => true %>
|
|
</ul>
|
|
|
|
<% html_title(l(:label_school_plural)) -%>
|