-
Notifications
You must be signed in to change notification settings - Fork 0
/
proizvodi.php
99 lines (97 loc) · 5.54 KB
/
proizvodi.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?
$kategorijaId = (isset($_GET['kategorija']))?mysql_real_escape_string($_GET['kategorija']):1;
$provera = $infosystem->Execute('SELECT `kategorijaId`, `kategorijaNaziv`, `kategorijaOpis` FROM `mikend_kategorija` WHERE `kategorijaId` = ' . $kategorijaId);
if($provera->RecordCount() == 0) {
$kategorijaId = 1;
$provera = $infosystem->Execute('SELECT `kategorijaId`, `kategorijaNaziv`, `kategorijaOpis` FROM `mikend_kategorija` WHERE `kategorijaId` = ' . $kategorijaId);
}
list($kategorijaId, $kategorijaNaziv, $kategorijaOpis) = $provera->fields;
$rsArtikal = $infosystem->Execute('SELECT `proizvodId`, `naziv`, `kolicina`, `cena` FROM `mikend_proizvod` WHERE `kategorijaId` = ' . $kategorijaId);
?>
<h1>Dobro došli u svet dobre keramike – Mikend doo Šabac</h1>
<div class="pageText">Pločice koje se nalaze u našem prodajnom asortimanu obuhvataju više stilova, od klasičnog, preko minimalističkog do stila koji je namenjen ljubiteljima prirode, boja i simbola.</div>
<div class="oferta">
<div class="oferta_details">
<div class="oferta_title"><?= $kategorijaNaziv ?></div>
<div class="oferta_text">
<?= $kategorijaOpis ?>
<a href="index.php?str=kategorijaDetalji&kategorija=<?= $kategorijaId ?>" class="prod_details">Izmeni</a>
</div>
<!-- <a href="#" class="prod_buy">details</a>-->
</div>
</div>
<div class="center_title_bar"><?= $kategorijaNaziv ?></div><?
while(!$rsArtikal->EOF) {
list($proizvodId, $naziv, $kolicina, $cena) = $rsArtikal->fields; ?>
<div class="prod_box">
<div class="center_prod_box">
<div class="product_title"><a href="index.php?str=proizvodDetalji&proizvod=<?= $proizvodId ?>"><?= $naziv ?></a></div>
<div class="product_img">
<a href="images/<?= $proizvodId ?>-800.jpg" rel="lightbox" title="<?= $naziv ?>"><img src="images/<?= $proizvodId ?>-100.jpg"></a>
</div>
<div class="prod_price">
<!-- <span class="reduce">350$</span>-->
<span class="price">Cena: <?= $cena ?></span>
</div>
</div>
<div class="prod_details_tab">
<!-- <a href="#" class="prod_buy">Add to Cart</a>-->
<a href="index.php?str=proizvodDetalji&proizvod=<?= $proizvodId ?>" class="prod_details">Izmeni</a>
<!-- <a href="#" class="prod_details">Detalji</a>-->
</div>
</div><?
$rsArtikal->MoveNext();
}
?>
<div class="prod_details_tab">
<a href="index.php?str=proizvodDetalji&proizvod=0" class="prod_details">Novi artikal</a>
</div>
<!-- <div class="prod_box">-->
<!-- <div class="center_prod_box">-->
<!-- <div class="product_title"><a href="#">Makita 156 MX-VL</a></div>-->
<!-- <div class="product_img"><a href="#"><img src="images/p3.jpg" alt="" border="0" /></a></div>-->
<!-- <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div>-->
<!-- </div>-->
<!-- <div class="prod_details_tab"> <a href="#" class="prod_buy">Add to Cart</a> <a href="#" class="prod_details">Details</a> </div>-->
<!-- </div>-->
<!-- <div class="prod_box">-->
<!-- <div class="center_prod_box">-->
<!-- <div class="product_title"><a href="#">Bosch XC</a></div>-->
<!-- <div class="product_img"><a href="#"><img src="images/p5.jpg" alt="" border="0" /></a></div>-->
<!-- <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div>-->
<!-- </div>-->
<!-- <div class="prod_details_tab"> <a href="#" class="prod_buy">Add to Cart</a> <a href="#" class="prod_details">Details</a> </div>-->
<!-- </div>-->
<!-- <div class="prod_box">-->
<!-- <div class="center_prod_box">-->
<!-- <div class="product_title"><a href="#">Lotus PP4</a></div>-->
<!-- <div class="product_img"><a href="#"><img src="images/p6.jpg" alt="" border="0" /></a></div>-->
<!-- <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div>-->
<!-- </div>-->
<!-- <div class="prod_details_tab"> <a href="#" class="prod_buy">Add to Cart</a> <a href="#" class="prod_details">Details</a> </div>-->
<!-- </div>-->
<!-- <div class="center_title_bar">Recomended Products</div>-->
<!-- <div class="prod_box">-->
<!-- <div class="center_prod_box">-->
<!-- <div class="product_title"><a href="#">Makita 156 MX-VL</a></div>-->
<!-- <div class="product_img"><a href="#"><img src="images/p7.jpg" alt="" border="0" /></a></div>-->
<!-- <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div>-->
<!-- </div>-->
<!-- <div class="prod_details_tab"> <a href="#" class="prod_buy">Add to Cart</a> <a href="#" class="prod_details">Details</a> </div>-->
<!-- </div>-->
<!-- <div class="prod_box">-->
<!-- <div class="center_prod_box">-->
<!-- <div class="product_title"><a href="#">Bosch XC</a></div>-->
<!-- <div class="product_img"><a href="#"><img src="images/p1.jpg" alt="" border="0" /></a></div>-->
<!-- <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div>-->
<!-- </div>-->
<!-- <div class="prod_details_tab"> <a href="#" class="prod_buy">Add to Cart</a> <a href="#" class="prod_details">Details</a> </div>-->
<!-- </div>-->
<!-- <div class="prod_box">-->
<!-- <div class="center_prod_box">-->
<!-- <div class="product_title"><a href="#">Lotus PP4</a></div>-->
<!-- <div class="product_img"><a href="#"><img src="images/p3.jpg" alt="" border="0" /></a></div>-->
<!-- <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div>-->
<!-- </div>-->
<!-- <div class="prod_details_tab"> <a href="#" class="prod_buy">Add to Cart</a> <a href="#" class="prod_details">Details</a> </div>-->
<!-- </div>-->