<%= column.human_name %>
style="right:0px;top:0px;">
<%= link_to_remote image_tag("up.png"), :update => 'survey_table', :before => "table_reload()", :url => { :action => 'list_inline', :order => "#{column.name}", :state_id => @state_id} %>
<%= link_to_remote image_tag("down.png"), :update => 'survey_table', :before => "table_reload()", :url =>{ :action => 'list_inline', :order => "#{column.name} DESC", :state_id => @state_id} %>
<% if column.name != "id" %>
<%=link_to image_tag("pie-chart.png"), :action => 'chart', :chart_type => :pie, "chart[column1]" => column.name, "chart[column2]" => "", "chart[aggregation_column]"=>"*", "chart[aggregation_function]" => "COUNT", :state_id => @state_id %>
<%=link_to image_tag("bar-chart.png"), :action => 'chart', :chart_type => :bar, "chart[column1]" => column.name, "chart[column2]" => "", "chart[aggregation_column]"=>"*", "chart[aggregation_function]" => "COUNT", :state_id => @state_id %>
<% if Chart.column_supports_type?(column,"line") then %><%= link_to image_tag("line-chart.png"), :action => 'chart', :chart_type => :line, "chart[column1]" => column.name, "chart[column2]" => "", "chart[aggregation_column]"=>"*", "chart[aggregation_function]" => "COUNT", :state_id => @state_id %><% end %>
<% end %>