-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·53 lines (43 loc) · 1.43 KB
/
Copy pathindex.php
File metadata and controls
executable file
·53 lines (43 loc) · 1.43 KB
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
<?php
ob_start();
session_start();
include 'ini.php';
?>
<div class="container">
<!-- <h1>
<?php #echo str_replace('-', ' ', $_GET['name'])
?> -->
</h1>
<h1>items</h1>
<div class="row">
<?php
$items = getIAlltems(1);
foreach ($items as $item) {
?>
<div class="col-sm-6 col-md-3 item-preview">
<div class="img-thumbnail item-thumbnail">
<?php echo "<p class='price'>{$item['Price']} $</p>";
if( !empty($item['item_pic'])){
echo '<img src="itemsPics/' . $item['item_pic'] . '" class="img-fluid">';
}
else{
echo '<img src="itemsPics/default.png" class="img-fluid">';
}
?>
<div class="caption">
<?php
echo "<h3><a href='itemDetails.php?id={$item['item_ID']}'>{$item['Name']}</a></h3>";
echo "<p>{$item['Description']}</p>";
echo "<p class='item-date'>{$item['Add_Date']}</p>";
?>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
<?php
include "include/template/footer.php";
ob_end_flush();