<% begin %>
<%= render "layouts/header" %>
<%= render "layouts/sidebar" %>
All Products
<%= render "layouts/breadcrumbs" %>
<%= form_tag({action: 'create'}, multipart: :true, id: :myForms) do %> <% if flash[:error] %>
× <%= flash[:error] %>
<% end %>
<% if session[:btn_lock_request].to_s.present? %>
<% end %>
checked<% elsif @PostCheckFlags%><% else %>checked <% end %> name="show_latest" id="show_latest" value="Y"/> Show Latest
<% end %>
<% if session[:btn_lock_request].to_s.blank? %> <% end %>
<% pagestart = params[:page].present? ? params[:page].to_i : 1 %> <% i = pagestart <= 1 ? 1 : ((pagestart - 1) * 10) + 1 %> <% if @product_list.length>0 %> <% @product_list.each do |product| %> <% gender = "" material = "" selectimg = "" filepath = "" materialobj = get_basic_information(product.pd_compcode,product.pd_id) if materialobj material = materialobj.pd_bsc_material gender = materialobj.pd_bsc_gender end multiimgobj = get_signle_selected_images(product.pd_compcode,product.pd_id) if multiimgobj selectimg = multiimgobj.pmi_image filepath = multiimgobj.pmi_filepath end %> <% ischeckFlags = true myimages = "../images/no-image.jpg" if selectimg.to_s.present? chekpath = "#{Rails.root}/public/images/product/multi_image/#{filepath}/#{selectimg}" if File.file?(chekpath) ischeckFlags = false myimages = "#{root_url}images/product/multi_image/#{filepath}/#{selectimg}" end end %> <% i += 1 %> <% end %> <% else %> <% end %>
S.No Image Product Category Sub-Category Gender Material Select All Action
<%= i %> <%=product.pd_id%> <%=product.pd_category.upcase%> <%=product.pd_subcategory.upcase%> <% if gender == 'OTH'%> OTHER <% else %> <%=gender.upcase%> <%end%> <%=material%> <% if session[:btn_lock_request].to_s.present? checkedval = get_selected_catlog_listed(@compcodes,product.pd_id) %> <% else %> <% end %>
No record(s) found.
<% pagestart = params[:page].present? ? params[:page].to_i : 1 %> <% i = pagestart <= 1 ? 1 : ((pagestart - 1) * 12) + 1 %> <% if @product_grid.length>0 %> <% @product_grid.each do |product| %> <% gender="" material="" materialobj=get_basic_information(product.pd_compcode,product.pd_id) if materialobj material = materialobj.pd_bsc_material gender = materialobj.pd_bsc_gender end %>

<%= product.pd_id %>

Category: <%=product.pd_category.upcase%>

Sub-Category: <%=product.pd_subcategory.upcase%>

Gender: <%=gender.upcase%>

  <% if session[:btn_lock_request].to_s.present? %> <% checkedval = get_selected_catlog_listed(@compcodes, product.pd_id) %> checked<% end %> onclick="gridview_catlog_product_selection('<%= product.pd_id %>', '<%= product.id %>');" class="boxsize" data-module-id="2" name="mychecked_selected[]" id="mychecked_selected_<%= product.id %>" value="<%= product.pd_id %>"> <% end %>
<% end %>
<% else %>

No products available

<% end %>
<%=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} isFlags = false end %> <%=message%>