<%=@head%> <%= stylesheet_link_tag "template/template" , :media=>'print' %>
<%=@breadcumb%> <% @record_fields.each_with_index do |record_block,i| %> <% record_block.each_with_index do |record_item,td_index| %> <% if record_item == "enrollment_limited"%> <% @olympia_school_data_field = OlympiaSchoolDataFields.find(@olympia_school_data_fields_id)%> <% if(@olympia_school_data_field.enrollment_limited.to_i == 0) %> <% else %> <% end %> <% else %> <% end %> <% end %> <% end %> <% @student_fields.each do |field_name| %> <% end %> <% @student_data_list.each_with_index do |field,i| %> <% @student_fields.each do |th_name|%> <% if th_name == 'serial_number' %> <%elsif th_name != 'birth_date'%> <% @value = field[th_name] %> <% @index = @field_infos.map{|hash| hash.keys[0]}.index(th_name) rescue nil%> <% if !@index.nil? %> <% @value = @field_infos.map{|hash| hash.values[0]}[@index]['choices'].index(@value) if @field_infos.map{|hash| hash.values[0]}[@index]['type'] == 'radio' %> <% (['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%>