-
Notifications
You must be signed in to change notification settings - Fork 3
/
i_listproduk.php
executable file
·76 lines (54 loc) · 1.7 KB
/
i_listproduk.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
<?php
/*
******************************************************************
* CMS-TOKO-BIASAWAE v1.0 (code : Daun Muda). 2018
******************************************************************
* Dikembangkan oleh : Agus Muhajir *
* http://github.com/hajirodeon *
* http://hajirodeon.wordpress.com *
* http://facebook.com/hajirodeon *
* sms/wa/telegram : 081-829-88-54 *
* email : [email protected] *
* ****************************************************************
*/
echo '<div class="row">';
//query
$qtyk = mysqli_query($koneksi, "SELECT * FROM m_item ".
"ORDER BY round(jml_dilihat) DESC LIMIT 0,50");
$rtyk = mysqli_fetch_assoc($qtyk);
do
{
$nomer = $nomer + 1;
$e_kd = nosql($rtyk['kd']);
$e_nama = balikin($rtyk['nama']);
$e_url_cantik = balikin($rtyk['url_cantik']);
$e_harga = nosql($rtyk['harga']);
$e_jml = nosql($rtyk['jml']);
$filex1 = balikin($rtyk['filex1']);
$url_cantik = trim(seo_friendly_url($e_nama));
//update jumlah dilihat
mysqli_query($koneksi, "UPDATE m_item SET jml_dilihat = jml_dilihat + 1 ".
"WHERE kd = '$e_kd'");
echo '<div class="col-md-6">';
echo '<div align="center">
<a href="'.$sumber.'/item.php?'.$url_cantik.'&itemkd='.$e_kd.'" title="'.$e_nama.'">
<p>
<img src="'.$sumber.'/filebox/item/'.$e_kd.'/'.$filex1.'" width="150" height="150">
</p>
<p>'.$e_nama.'</p>
<p>
'.xduit2($e_harga).'
</p>
<p>
Sisa Stock : '.$e_jml.'
</p>
</a>
</div>
<hr>
<br>
<br>
</div>';
}
while ($rtyk = mysqli_fetch_assoc($qtyk));
echo '</div>';
?>