% pagestart = params[:page].present? ? params[:page].to_i : 1 %> <% i = pagestart <= 1 ? 1 : ((pagestart - 1) * 10) + 1 %> <% if mydata.length>0 %> <% mydata.each do |information| functiontype= "" venuename = "" functiobj = get_venue_details(information.fis_compcode,information.fis_entryno) if functiobj functiontype=functiobj.fisd_function_type datetype = functiobj.fisd_function_date datetime = functiobj.fisd_function_timings venueid = functiobj.fisd_venue_id venueobj = get_venue1_name(venueid) if venueobj venuename=venueobj.vnu_name end venuloc = functiobj.fisd_location_id address1="" address1obj= get_location1_name(venuloc) if address1obj address1 = address1obj.vloc_locname end decorationlumpsum = functiobj.fisd_decoration_lumpsum decorationremarks = functiobj.fisd_decoration_remarks entertainmentlumpsum = functiobj.fisd_entertainment_lumpsum entertainmentremarks = functiobj.fisd_entertainment_remarks paxno = functiobj.fisd_pax_no end funcnam = "" funcobj = get_function_type_name(functiontype) if funcobj funcnam = funcobj.func_type end priority_class = case information.fis_priority when 'Silver' 'badge-silver' when 'Gold' 'badge-gold' when 'Platinum' 'badge-platinum' when 'Diamond' 'badge-diamond' else '' end username= "" userobj = user_detail(information.fis_entryby) if userobj username = userobj.firstname end %>