-
Notifications
You must be signed in to change notification settings - Fork 3
/
i_listtestimoni.php
executable file
·99 lines (77 loc) · 2.3 KB
/
i_listtestimoni.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
<?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 : hajirodeon@gmail.com *
* ****************************************************************
*/
//daftar testimoni
$qku = mysqli_query($koneksi, "SELECT * FROM member_testimoni ".
"ORDER BY postdate DESC LIMIT 0,50");
$rku = mysqli_fetch_assoc($qku);
do
{
$e_postdate = balikin($rku['postdate']);
$nkualitas = nosql($rku['nilai_kualitas_no']);
$nmanfaat = nosql($rku['nilai_manfaat_no']);
$e_isi = balikin($rku['isi']);
$e_itemkd = nosql($rku['item_kd']);
$e_nama = balikin($rku['item_nama']);
$e_mbnama = balikin($rku['member_nama']);
$e_url_cantik = balikin($rku['url_cantik']);
$url_cantik = trim(seo_friendly_url($e_nama));
//detail
$qyuk = mysqli_query($koneksi, "SELECT * FROM m_item ".
"WHERE kd = '$e_itemkd'");
$ryuk = mysqli_fetch_assoc($qyuk);
$yuk_filex1 = balikin($ryuk['filex1']);
echo "<b>$e_mbnama :</b>
<p>
$e_isi
</p>";
for ($k=1;$k<=$nkualitas;$k++)
{
echo '<img src="template/img/bintang.png" width="16">';
}
$xkualitas = $arrkualitas[$nkualitas];
echo ' [Kualitas : '.$xkualitas.']
<br>';
for ($k=1;$k<=$nmanfaat;$k++)
{
echo '<img src="template/img/bintang.png" width="16">';
}
$xmanfaat = $arrmanfaat[$nmanfaat];
echo ' [Manfaat : '.$xmanfaat.']
<br>
<br>
<p>
<i>
['.$e_postdate.'].
</i>
</p>
<table width="100%" border="0">
<tr>
<td width="60">
<a href="'.$sumber.'/item.php?'.$url_cantik.'&itemkd='.$e_itemkd.'" title="'.$e_nama.'">
<p>
<img src="'.$sumber.'/filebox/item/'.$e_itemkd.'/'.$yuk_filex1.'" width="50" height="50">
</p>
</a>
</td>
<td>
<a href="'.$sumber.'/item.php?'.$url_cantik.'&itemkd='.$e_itemkd.'" title="'.$e_nama.'">
<p>'.$e_nama.'</p>
</a>
</td>
</tr>
</table>
<hr>';
}
while ($rku = mysqli_fetch_assoc($qku));
?>