<% begin %>
<%= render "layouts/header" %>
<%= render "layouts/sidebar" %>
Share Catalogue
<%= render "layouts/breadcrumbs" %>
<% if flash[:error] %>
× <%= flash[:error] %>
<% end %> <%= form_tag({action: 'create'}, multipart: :true, id: :myForms) do %>
Buyer
Mail Id
<% if @CatlogList && @CatlogList.length >0 %> <% end %>
<% end %>
<% i = 1 if @CatlogList && @CatlogList.length >0 @CatlogList.each do |product| %> <% gender = "" material = "" currency = '' myunits = '' productpd_category = '' productpd_subcategory = '' materialobj=get_basic_information(product.tsp_compcode,product.tsp_productcode) if materialobj material=materialobj.pd_bsc_material productcost = materialobj.pd_bsc_prd_cost currency = materialobj.pd_bsc_currency gender = materialobj.pd_bsc_gender uonjs = get_unit_measurement(product.tsp_compcode,materialobj.pd_internal_unit) if uonjs myunits = uonjs.pu_shortname end end %> <% ischeckFlags = true image_url = "../assets/img/course/course1.jpg" prodobjs = get_product_listed(product.tsp_compcode,product.tsp_productcode) if prodobjs productpd_category = prodobjs.pd_category productpd_subcategory = prodobjs.pd_subcategory end %> <% selectimg = '' filepath = "" multiimgobj = get_signle_selected_images(product.tsp_compcode,product.tsp_productcode) if multiimgobj selectimg = multiimgobj.pmi_image filepath = multiimgobj.pmi_filepath end frntmultiimgobj = get_front_signle_selected_images(product.tsp_compcode,product.tsp_productcode) if frntmultiimgobj frntselectimg = frntmultiimgobj.pmi_image frntfilepath = frntmultiimgobj.pmi_filepath end backmultiimgobj = get_back_signle_selected_images(product.tsp_compcode,product.tsp_productcode) if backmultiimgobj backselectimg = backmultiimgobj.pmi_image backfilepath = backmultiimgobj.pmi_filepath end ischeckFlags = true image_url = "#{root_url}assets/img/course/course1.jpg" if selectimg.to_s.present? chekpath = "#{Rails.root}/public/images/product/multi_image/#{filepath}/#{selectimg}" if File.file?(chekpath) ischeckFlags = false image_url = "#{root_url}images/product/multi_image/#{filepath}/#{selectimg}" end end frnt_image_url = "#{root_url}assets/img/course/course1.jpg" if frntselectimg.to_s.present? chekpath = "#{Rails.root}/public/images/product/multi_image/#{frntfilepath}/#{frntselectimg}" if File.file?(chekpath) ischeckFlags = false frnt_image_url = "#{root_url}images/product/multi_image/#{frntfilepath}/#{frntselectimg}" end end back_image_url = "#{root_url}assets/img/course/course1.jpg" if backselectimg.to_s.present? chekpath = "#{Rails.root}/public/images/product/multi_image/#{backfilepath}/#{backselectimg}" if File.file?(chekpath) ischeckFlags = false back_image_url = "#{root_url}images/product/multi_image/#{backfilepath}/#{backselectimg}" end end %> <% i +=1 end else %> <% end %>
S.No Image Product Category
Sub-Category
Gender Description Action
<%= i %> <%=product.tsp_productcode%> <%=productpd_category.upcase%>
<%=productpd_subcategory.upcase%>
<% if gender == 'OTH'%> OTHER <% else %> <%=gender.upcase%> <%end%> <%=material%>
No record(s) found.
<%=render'layouts/quick_view_product'%> <% message = "" rescue ActiveRecord::RecordNotFound => e # Handle the specific exception when the record is not found message = "Record not found "##{e.message} isFlags = false rescue ActiveRecord::StatementInvalid => e # Handle SQL syntax errors or invalid queries message = "Unknown error " ##{e.message} isFlags = false rescue StandardError => e # Handle any other errors message = "An error occurred #{e.message}" ##{e.message} isFlags = false end %> <%=message%>