-
Notifications
You must be signed in to change notification settings - Fork 0
/
dresslist.php
56 lines (47 loc) · 1.98 KB
/
dresslist.php
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
<?php include('top.inc'); ?>
<?php
// ProductList
$productList = $this->dList;
// the length of productList
$cnt = $productList->getLength();
?>
<main role="main">
<div class="album py-5 bg-light">
<div class="container">
<div class="row">
<div class="col-md-12">
<h2 class="text-center">DRESS</h2>
</div>
</div>
<div class="row">
<?php
for($i=0; $i< $cnt; $i++) {
$p = $productList->get($i);
echo(
'<div class="col-md-4">
<div class="card mb-4">
<form name="product" method="POST" action="index.php?action=detail">
<div class="product-image-container">
<input type="image" name="submit" class="product-img-top rounded" src="img/'. $p->getId() .'.png">
<div class="overlay rounded-top">
<div class="text">' . $p->getName() . '</div>
</div>
</div>
<div class="product-card-body">
<p class="card-text text-black">' . $p->getName() .'<em class="text-muted float-right"> ₩' . $p->getPrice() . '</em></p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<input type="hidden" name="pname" value="' . $p->getName() . '" >
<input type="hidden" name="price" value="' . $p->getPrice() . '" >
<input type="hidden" name="pid" value="' . $p->getId() . '" >
</div>
</div>
</form>
</div>
</div>
</div>');
}
?>
</div>
</main>
<?php include('bottom.inc'); ?>