2015-07-27 16:07:29 +08:00
|
|
|
<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 %>
|
2015-07-27 16:07:29 +08:00
|
|
|
<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;">
|
2015-07-27 16:07:29 +08:00
|
|
|
LOGO
|
|
|
|
</th>
|
2016-03-16 15:24:41 +08:00
|
|
|
<th style="width: 100px;">
|
2015-07-27 16:07:29 +08:00
|
|
|
学校名称
|
|
|
|
</th>
|
2016-09-01 17:11:39 +08:00
|
|
|
<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>
|
2015-07-27 16:07:29 +08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-03-16 15:24:41 +08:00
|
|
|
<% @count=@page * 30 %>
|
|
|
|
<% @schools.each do |school| %>
|
2015-07-27 16:07:29 +08:00
|
|
|
<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
|
|
|
|
2015-07-27 16:07:29 +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 %>
|
2015-07-27 16:07:29 +08:00
|
|
|
</td>
|
2016-03-16 15:24:41 +08:00
|
|
|
|
2015-07-27 16:07:29 +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}" %>
|
2015-07-27 16:07:29 +08:00
|
|
|
</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">
|
2015-07-27 18:20:20 +08:00
|
|
|
<%= link_to("修改", upload_logo_school_path(school.id,:school_name => @school_name), :class => 'icon icon-copy') %>
|
2015-07-27 16:07:29 +08:00
|
|
|
<%#= 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>
|
2015-07-27 16:07:29 +08:00
|
|
|
|
2016-03-16 15:24:41 +08:00
|
|
|
<% html_title(l(:label_school_plural)) -%>
|