<% if flash[:error] %>
×
<%= flash[:error] %>
<% end %>
<%= form_tag({action: 'create'}, multipart: :true, id: :myForms) do %>
<%
mybuyerlogox = ''
myimagefirst = ''
myimagesec = ''
mythankimg = ''
companylogo = ""
mycomplogox = ''
compcodes = session[:loggedUserCompCode]
compdt = get_company_detail_list(compcodes)
if compdt
companylogo = compdt.cmp_logos
if companylogo.to_s.present?
chekpathcomp = "#{Rails.root}/public/images/logo/#{companylogo}"
if File.file?(chekpathcomp)
mycomplogox = "#{root_url}images/logo/#{companylogo}"
end
end
end
if @CreateCatalog
if @CreateCatalog.catlog_buyer_logo_chck.to_s == 'Y'
if @CreateCatalog.catlog_buyer_logo.to_s.present?
chekpathb = "#{Rails.root}/public/images/create_catalogue_images/buyer_logo/#{@CreateCatalog.catlog_buyer_logo}"
if File.file?(chekpathb)
mybuyerlogox = "#{root_url}images/create_catalogue_images/buyer_logo/#{@CreateCatalog.catlog_buyer_logo}"
end
end
end
## for first image
if @CreateCatalog.catlog_frstpage_check.to_s == 'Y'
if @CreateCatalog.catlog_frstpage_img.to_s.present?
chekpathf = "#{Rails.root}/public/images/create_catalogue_images/first_page_image/#{@CreateCatalog.catlog_frstpage_img}"
if File.file?(chekpathf)
myimagefirst = "#{root_url}images/create_catalogue_images/first_page_image/#{@CreateCatalog.catlog_frstpage_img}"
end
end
end
###SECOND IMAGE
if @CreateCatalog.catlog_secndpage_chck.to_s == 'Y'
if @CreateCatalog.catlog_secndpage_img.to_s.present?
chekpathsec = "#{Rails.root}/public/images/create_catalogue_images/second_page_image/#{@CreateCatalog.catlog_secndpage_img}"
if File.file?(chekpathsec)
myimagesec = "#{root_url}images/create_catalogue_images/second_page_image/#{@CreateCatalog.catlog_secndpage_img}"
end
end
end
###Third IMAGE
if @CreateCatalog.catlog_thankyou_check.to_s == 'Y'
if @CreateCatalog.catlog_thankyou_img.to_s.present?
chekpathth = "#{Rails.root}/public/images/create_catalogue_images/thankyou_page_image/#{@CreateCatalog.catlog_thankyou_img}"
if File.file?(chekpathth)
mythankimg = "#{root_url}images/create_catalogue_images/thankyou_page_image/#{@CreateCatalog.catlog_thankyou_img}"
end
end
end
end
%>
<%= material %>_<%= washewd %>_<%= samples %>_<%= buyername %>_<%= product.tsp_productcode %>_<%= price %>KGFXCHPTER
<%
end
end
%>
"/>
<% end %>