<% th_name_list = ['StudentIdentity','StudentName','StudentClass','StudentArea','StudentPhone','action']%> <% th_name_list.each do |th_name|%> <% end %> <% @student_fields.each do |field| %> <% th_name_list.each do |th_name|%> <%if th_name != 'action'%> <% @value = field[th_name] %> <% @index = @field_infos.map{|hash| hash.keys[0]}.index(th_name) rescue nil%> <% if !@index.nil? %> <% (['String','Year','select_num','File'].include?(@field_infos.map{|hash| hash.values[0]}[@index]['type'])) ? (nil) : (@value=(@field_infos.map{|hash| hash.values[0]}[@index]['values'][I18n.locale.to_s][@value.to_i].to_s rescue @value))%> <% end %> <% else %> <% end %> <% end %> <%end%>
<%= t('olympiamanagement.'+th_name) %>
<%= @value %> "><%= t('olympiamanagement.edit') %><%= t('olympiamanagement.edit') %> "><%= t('olympiamanagement.delete') %><%= t('olympiamanagement.delete') %>
<% @extra_params = request.query_parameters.map{|key,value| key+'='+value}.join('&') %> <%=create_pagination(params[:page].to_i,@student_fields,@extra_params).html_safe%>