|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /home/queenjbs/www/FusionChart/Code/RoR/SampleApp/app/views/fusioncharts/db_js/ |
Upload File : |
#create a javascript array, to contain the date of production
#and the factory output quantity.
index_count=-1
factories.each do |factory|
index_count = index_count + 1
page << "\t\t\t\tdata["+index_count.to_s+"] = new Array();"
factory.factory_output_quantities.each do |factory_output|
page << "\t\t\t\t data["+index_count.to_s+"].push(new Array('"+ formatted_date(factory_output.date_pro)+ "','"+ factory_output.quantity.to_s+"'));"
end
end