2016-07-25 18:31:28 +08:00
|
|
|
<h3>
|
|
|
|
<%=l(:label_applied_shcools)%>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<%= render 'tab_has_applied_applied' %>
|
|
|
|
|
|
|
|
<%= form_tag({}, :method => :get) do %>
|
|
|
|
<fieldset>
|
|
|
|
<label for='name'>
|
|
|
|
单位名称:
|
|
|
|
</label>
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 30, :placeholder => '输入单位名称进行搜索' %>
|
|
|
|
<%= submit_tag l(:button_apply ), :class => "small", :name => nil %>
|
|
|
|
<%= link_to l(:button_clear), {:controller => 'admin', :action => 'applied_shcools'}, :class => 'icon icon-reload' %>
|
|
|
|
</fieldset>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="autoscroll">
|
|
|
|
<table class="list" style="width: 100%;table-layout: fixed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;">
|
|
|
|
序号
|
|
|
|
</th>
|
|
|
|
<th style="width: 85px;">
|
|
|
|
单位名称
|
|
|
|
</th>
|
2016-07-29 16:11:26 +08:00
|
|
|
<th style="width: 30px;">
|
|
|
|
申请者
|
|
|
|
</th>
|
2016-07-25 18:31:28 +08:00
|
|
|
<th style="width: 75px;">
|
|
|
|
地区
|
|
|
|
</th>
|
|
|
|
<th style="width: 75px;">
|
|
|
|
详细地址
|
|
|
|
</th>
|
2016-07-28 20:01:22 +08:00
|
|
|
<th style="width: 85px;">
|
|
|
|
原名
|
2016-07-25 18:31:28 +08:00
|
|
|
</th>
|
|
|
|
<th style="width: 60px;">
|
|
|
|
创建时间
|
|
|
|
</th>
|
|
|
|
<th style="width: 75px;">
|
|
|
|
操作
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @has_apply_status.each do |apply| %>
|
2016-07-28 20:01:22 +08:00
|
|
|
<% if apply.status == 1 || apply.status == 2%>
|
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
2016-07-25 18:31:28 +08:00
|
|
|
<td style="text-align: center;">
|
|
|
|
<%= apply.id %>
|
|
|
|
</td>
|
2016-07-28 20:01:22 +08:00
|
|
|
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=apply.name%>' id="apply_title_<%= apply.id %>">
|
2016-07-29 16:11:26 +08:00
|
|
|
<% unless apply.school_id.nil? %>
|
|
|
|
<% school_name = School.where("id=?", apply.school_id).first %>
|
|
|
|
<%= school_name.name %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td class="center">
|
|
|
|
<% user = User.where("id=?", apply.user_id).first %>
|
|
|
|
<% unless user.nil? %>
|
|
|
|
<%= user.login %>
|
|
|
|
<% end %>
|
2016-07-25 18:31:28 +08:00
|
|
|
</td>
|
|
|
|
<td class="center">
|
2016-07-29 16:11:26 +08:00
|
|
|
<% unless apply.school_id.nil? %>
|
|
|
|
<% school_province = School.where("id=?", apply.school_id).first %>
|
|
|
|
<%= school_province.province %>
|
|
|
|
<% end %>
|
2016-07-25 18:31:28 +08:00
|
|
|
</td>
|
|
|
|
<td align="left" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
|
|
|
|
<%= apply.address %>
|
|
|
|
</td>
|
|
|
|
<td class="center">
|
2016-07-28 20:01:22 +08:00
|
|
|
<%= apply.name %>
|
2016-07-25 18:31:28 +08:00
|
|
|
</td>
|
|
|
|
<td class="center">
|
|
|
|
<%= format_date(apply.created_at) %>
|
|
|
|
</td>
|
|
|
|
<td class="center">
|
2016-07-29 16:11:26 +08:00
|
|
|
<%= link_to( l(:button_delete), { :controller => 'admin', :action => 'delete_applied_schools', :id => apply.id, :tip => 'applied' },:method => :delete, :confirm => l(:text_are_you_sure) ) %>
|
2016-07-25 18:31:28 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2016-07-29 16:11:26 +08:00
|
|
|
<% unless apply.remarks.blank? %>
|
2016-07-28 20:01:22 +08:00
|
|
|
<tr class="odd">
|
|
|
|
<td>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td style="text-align: left;" colspan="6">
|
|
|
|
<%= apply.remarks %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
2016-07-25 18:31:28 +08:00
|
|
|
<% end %>
|
2016-07-27 10:46:48 +08:00
|
|
|
<% end %>
|
2016-07-25 18:31:28 +08:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|