<% if flash[:error] %>
<% end %>
<%
if @CatlogList && @CatlogList.length >0
%>
<%
end
%>
×
<%= flash[:error] %>
<% end %>
<%= form_tag({action: 'create'}, multipart: :true, id: :myForms) do %>
<%
mybuyerlogox = ''
myimagefirst = ''
myimagesec = ''
mythankimg = ''
mycomplogox = ''
mycomplogo = false
@buyerdt = get_buyer_detail_list(@CreateCatalog.catlog_buyer_id)
if @buyerdt
buyerlogo = @buyerdt.by_buyer_logo
firstimage = @buyerdt.by_frstpage_img
end
if @CreateCatalog
if @CreateCatalog.catlog_company_logo.to_s == 'Y'
mycomplogo =true
companylogo = ""
compdt = get_company_detail_list(@CreateCatalog.catlog_compcode)
if compdt
companylogo = compdt.cmp_logos
end
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.catlog_buyer_logo_chck.to_s == 'Y'
if buyerlogo.to_s.present?
chekpathb = "#{Rails.root}/public/images/create_catalogue_images/buyer_logo/#{buyerlogo}"
if File.file?(chekpathb)
mybuyerlogox = "#{root_url}images/create_catalogue_images/buyer_logo/#{buyerlogo}"
end
end
end
## for first image
if @CreateCatalog.catlog_frstpage_check.to_s == 'Y'
if firstimage.to_s.present?
chekpathf = "#{Rails.root}/public/images/create_catalogue_images/first_page_image/#{firstimage}"
if File.file?(chekpathf)
myimagefirst = "#{root_url}images/create_catalogue_images/first_page_image/#{firstimage}"
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
%>
<%
if mybuyerlogox.present? && mycomplogo.present?
%>
<%
elsif mybuyerlogox.present?
%>
<%
elsif mycomplogo.present?
%>
<% else %>
<% end %>
<%= material %>_<%= washewd %>_<%= samples %>_<%= buyername %>_<%= product.cp_productid %>_<%= price %>KGFXCHPTER
<%
end
end
%>
"/>
<%
catlogid = ''
if @CreateCatalog
catlogid = @CreateCatalog.id
%>
Catalogue Name : <%=@CreateCatalog.catlog_name.to_s.upcase%>(<% if @CatlogList && @CatlogList.length >0 %><%=@CatlogList.length%><% else %>0<% end %> Products)
<%
end
%>