-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patha.html
65 lines (63 loc) · 3.73 KB
/
a.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/homepageListProdcutStyle.css">
<%@ include file="../attributes/homepageListProdcutAttributes.jsp" %>
<section class="section-products">
<div class="container">
<div class="row">
<% if(!products.isEmpty()) {
for(ProductBeans p : products) { %>
<div class="col-md-2 col-lg-3 col-xl-3">
<div class="single-product">
<div class="part-1">
<img src="<%= request.getContextPath() %>/productImg/<%= p.getProduct_imgUrl() %>" alt="<%= p.getProduct_name() %>">
<ul>
<li><a href="<%= request.getContextPath() %>/BasketController?action=ADD&id=<%=p.getProduct_id()%>" class="cart-btn"><i class="fas fa-shopping-cart"></i></a></li>
<li><a href="#"><i class="fas fa-heart"></i></a></li>
<li><a href="#"><i class="fas fa-plus"></i></a></li>
<li><a href="<%= request.getContextPath() %>/ProductController?action=DETAILS&id=<%=p.getProduct_id()%>"><i class="fas fa-expand"></i></a></li>
</ul>
</div>
<div class="part-2">
<div class="product-name-title"> <%=p.getProduct_name() %> </div>
<div class="product-category-title"><%=p.getCategory_name()%></div>
<div class="price-container">
<span class="product-old-price">$79.99</span>
<span class="product-price">$<%= p.getProduct_prize() %></span>
</div>
</div>
</div>
</div>
<% }
} %>
</div>
</div>
</section>
<!-- <div class="col-md-3 col-lg-3 col-xl-3">
<div class="section-products">
<% if (!products.isEmpty()) {
for (ProductBeans p : products) { %>
<div class="single-product">
<div class="part-1">
<div class="image-container">
<img src="<%= request.getContextPath() %>/productImg/<%= p.getProduct_imgUrl() %>" alt="<%= p.getProduct_name() %>">
</div>
<ul>
<li><a href="<%= request.getContextPath() %>/BasketController?action=ADD&id=<%= p.getProduct_id() %>" class="cart-btn"><i class="fas fa-shopping-cart"></i></a></li>
<li><a href="#"><i class="fas fa-heart"></i></a></li>
<li><a href="#"><i class="fas fa-plus"></i></a></li>
<li><a href="<%= request.getContextPath() %>/ProductController?action=DETAILS&id=<%= p.getProduct_id() %>"><i class="fas fa-expand"></i></a></li>
</ul>
</div>
<div class="part-2">
<div class="product-name-title"><%= p.getProduct_name() %></div>
<div class="product-category-title"><%= p.getCategory_name() %></div>
<div class="price-container">
<span class="product-old-price">$79.99</span>
<span class="product-price">$<%= p.getProduct_prize() %></span>
</div>
</div>
</div>
<% }
} %>
</div>
</div> -->