socialforge/app/views/admin/schools.html.erb

75 lines
2.8 KiB
Plaintext
Raw Normal View History

<h3 style="float: left">
<%=l(:label_school_plural)%>
</h3>
2016-03-16 15:24:41 +08:00
<!--<!%= 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>
2016-03-16 15:24:41 +08:00
<th style="width: 35px;">
2015-07-27 16:15:04 +08:00
序号
</th>
2016-03-16 15:24:41 +08:00
<th style="width: 60px;">
LOGO
</th>
2016-03-16 15:24:41 +08:00
<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') %>
2016-03-16 15:24:41 +08:00
</th>
<th style="width: 90px;">
创建时间
</th>
<th style="width: 80px;">
编辑高校信息
</th>
</tr>
</thead>
<tbody>
2016-03-16 15:24:41 +08:00
<% @count=@page * 30 %>
<% @schools.each do |school| %>
<tr class="<%= cycle("odd", "even") %>">
2016-03-16 15:24:41 +08:00
<!td style="text-align:center;vertical-align: middle;">
<!%= school.id %>
<% @count +=1 %>
<td align="center">
<%=@count %>
2015-07-27 16:15:04 +08:00
</td>
2016-03-16 15:24:41 +08:00
<td align="center">
2015-07-27 16:15:04 +08:00
<%= image_tag(school.logo_link,width:40,height:40) %>
2016-03-16 15:24:41 +08:00
<!%= school.name %>
</td>
2016-03-16 15:24:41 +08:00
<td style="text-align:center;vertical-align: middle;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=school.name%>'>
<span>
2016-03-16 15:24:41 +08:00
<%= link_to school.name,"http://#{Setting.host_name}/?school_id=#{school.id}" %>
</span>
</td>
2016-03-16 15:24:41 +08:00
<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>
2015-10-16 14:48:59 +08:00
<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>
2016-03-16 15:24:41 +08:00
<% html_title(l(:label_school_plural)) -%>