-
Notifications
You must be signed in to change notification settings - Fork 4
/
footer.php
127 lines (124 loc) · 4.72 KB
/
footer.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
$nasional = 'SELECT
berita.id_berita,
berita.judul,
berita.gambar,
berita.tgl_posting,
berita.id_admin,
admin.nama_lengkap,
berita.dilihat,
kategori.id_kategori
FROM
berita
INNER JOIN admin ON berita.id_admin = admin.id_admin
INNER JOIN kategori ON kategori.id_kategori = berita.id_kategori
WHERE
berita.id_kategori = "1"
ORDER BY
berita.tgl_posting DESC
LIMIT 0, 5';
$olahraga = 'SELECT
berita.id_berita,
berita.judul,
berita.gambar,
berita.tgl_posting,
berita.id_admin,
admin.nama_lengkap,
berita.dilihat,
kategori.id_kategori
FROM
berita
INNER JOIN admin ON berita.id_admin = admin.id_admin
INNER JOIN kategori ON kategori.id_kategori = berita.id_kategori
WHERE
berita.id_kategori = "2"
ORDER BY
berita.tgl_posting DESC
LIMIT 0, 5';
$teknologi = 'SELECT
berita.id_berita,
berita.judul,
berita.gambar,
berita.tgl_posting,
berita.id_admin,
admin.nama_lengkap,
berita.dilihat,
kategori.id_kategori
FROM
berita
INNER JOIN admin ON berita.id_admin = admin.id_admin
INNER JOIN kategori ON kategori.id_kategori = berita.id_kategori
WHERE
berita.id_kategori = "3"
ORDER BY
berita.tgl_posting DESC
LIMIT 0, 5';
$list_nasional = $mysqli->query($nasional) or die("Error Nasional:".$mysqli->error);
$list_olahraga = $mysqli->query($olahraga) or die("Error Olahraga".$mysqli->error);
$list_teknologi = $mysqli->query($teknologi) or die("Error Teknologi".$mysqli->error);
?>
<div class="container-fluid footer">
<div class="row footer-upper">
<div class="container">
<div class="col-md-4">
<h3 class="page-header">Teknologi</h3>
<ul class="news-list">
<?php while ($teknologi_list = $list_teknologi->fetch_array()) { ?>
<li>
<a href="<?php echo $base_url."detail.php?id=".$teknologi_list['id_berita']."&judul=".strtolower(str_replace(" ", "-", $teknologi_list['judul'])); ?>">
<img src="<?php echo $base_url."images/".$teknologi_list['gambar']; ?>" class="img-responsive wow fadeIn">
</a>
<p>Oleh: <a href="<?php echo $base_url."author.php?id=".$teknologi_list['id_admin']; ?>"><?php echo $teknologi_list['nama_lengkap']; ?></a> – <?php echo $teknologi_list['tgl_posting']; ?></p>
<a href="<?php echo $base_url."detail.php?id=".$teknologi_list['id_berita']."&judul=".strtolower(str_replace(" ", "-", $teknologi_list['judul'])); ?>">
<?php echo $teknologi_list['judul']; ?>
</a>
</li>
<?php } ?>
</ul>
</div>
<div class="col-md-4">
<h3 class="page-header">Nasional</h3>
<ul class="news-list">
<?php while ($nasional_list = $list_nasional->fetch_array()) { ?>
<li>
<a href="<?php echo $base_url."detail.php?id=".$nasional_list['id_berita']."&judul=".strtolower(str_replace(" ", "-", $nasional_list['judul'])); ?>">
<img src="<?php echo $base_url."images/".$nasional_list['gambar']; ?>" class="img-responsive wow fadeIn">
</a>
<p>Oleh: <a href="<?php echo $base_url."author.php?id=".$nasional_list['id_admin']; ?>"><?php echo $nasional_list['nama_lengkap']; ?></a> – <?php echo $nasional_list['tgl_posting']; ?></p>
<a href="<?php echo $base_url."detail.php?id=".$nasional_list['id_berita']."&judul=".strtolower(str_replace(" ", "-", $nasional_list['judul'])); ?>">
<?php echo $nasional_list['judul']; ?>
</a>
</li>
<?php } ?>
</ul>
</div>
<div class="col-md-4">
<h3 class="page-header">Olahraga</h3>
<ul class="news-list">
<?php while ($olahraga_list = $list_olahraga->fetch_array()) { ?>
<li>
<a href="<?php echo $base_url."detail.php?id=".$olahraga_list['id_berita']."&judul=".strtolower(str_replace(" ", "-", $olahraga_list['judul'])); ?>">
<img src="<?php echo $base_url."images/".$olahraga_list['gambar']; ?>" class="img-responsive wow fadeIn">
</a>
<p>Oleh: <a href="<?php echo $base_url."author.php?id=".$olahraga_list['id_admin']; ?>"><?php echo $olahraga_list['nama_lengkap']; ?></a> – <?php echo $olahraga_list['tgl_posting']; ?></p>
<a href="<?php echo $base_url."detail.php?id=".$olahraga_list['id_berita']."&judul=".strtolower(str_replace(" ", "-", $olahraga_list['judul'])); ?>">
<?php echo $olahraga_list['judul']; ?>
</a>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
<div class="row footer-bottom">
<div class="col-md-12">
<span class="copy">Copyright © <?php echo date('Y');?> Berita Kita</span>
</div>
</div>
</div>
<script src="<?php echo $base_url; ?>assets/bootstrap/js/bootstrap.min.js"></script>
<script src="<?php echo $base_url; ?>assets/ticker/jquery.ticker.min.js"></script>
<script src="<?php echo $base_url; ?>assets/wow/dist/wow.min.js"></script>
<script src="<?php echo $base_url; ?>dist/js/portalberita.js"></script>
</body>
</html>