Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul class="nav">
- <li><a href="beranda.php">Beranda</a></li>
- <li><a href="#">Berita</a>
- <div class="berita">
- <div class="nav-berita">
- <h3>Berita Terkini</h3>
- <ul>
- <?php
- include "koneksi.php";
- $query = mysqli_query($conn,"select id_berita, judul, tgl, kategori from artikel where kategori LIKE '%berita_terkini%' order by tgl desc limit 5");
- while($result = mysqli_fetch_array($query)){
- $judul = strip_tags($result['judul']);
- $judul2 = substr($judul,0,50);
- $judul2 = substr($judul,0,strrpos($judul2," "));
- ?>
- <li><a href="#" title="<?php echo $result['judul'];?>" ><?php echo $judul2." ..";?></a><hr style="margin-top:7px; margin-bottom:7px; border-style:solid;"></li>
- <?php } ?>
- <li><a href="#"><b style="color:#286815">Selengkapnya...</b></a></li>
- </ul></div>
- <div class="nav-berita">
- <h3>Berita Dalam Negri</h3>
- <ul>
- <?php
- $query = mysqli_query($conn,"select id_berita, judul, tgl, kategori from artikel where kategori LIKE '%dalam_negeri%' order by tgl desc limit 5");
- while($result = mysqli_fetch_array($query)){
- $judul = strip_tags($result['judul']);
- $judul2 = substr($judul,0,50);
- $judul2 = substr($judul,0,strrpos($judul2," "));
- ?>
- <li><a href="#" title="<?php echo $result['judul'];?>"><?php echo $judul2."..";?></a><hr style="margin-top:7px; margin-bottom:7px; border-style:solid;"></li>
- <?php } ?>
- <li><a href="#"><b style="color:#286815">Selengkapnya...</b></a></li>
- </ul></div>
- <div class="nav-berita">
- <h3>Berita Luar Negri</h3>
- <ul>
- <?php
- $query = mysqli_query($conn,"select id_berita, judul, tgl, kategori from artikel where kategori LIKE '%luar_negeri%' order by tgl desc limit 5");
- while($result = mysqli_fetch_array($query)){
- $judul = strip_tags($result['judul']);
- $judul2 = substr($judul,0,50);
- $judul2 = substr($judul,0,strrpos($judul2," "));
- ?>
- <li><a href="#" title="<?php echo $result['judul'];?>"><?php echo $judul2."..";?></a><hr style="margin-top:7px; margin-bottom:7px; border-style:solid;"></li>
- <?php } ?>
- <li><a href="#"><b style="color:#286815">Selengkapnya...</b></a></li></ul></div>
- </div>
- </li><!--end berita-->
- <li><a href="#">Tsaqofah</a></li>
- <li><a href="#">Nafsiyah</a>
- <div class="nafsiyah">
- <div class="nav-nafsiyah">
- <h3>Aqidah</h3>
- <ul>
- <?php
- $query = mysqli_query($conn,"select id_berita, judul, tgl, kategori from artikel where kategori LIKE '%aqidah%' order by tgl desc limit 5");
- while($result = mysqli_fetch_array($query)){
- $judul2 = substr($result['judul'],0,43);
- $judul2 = substr($result['judul'],0,strrpos($judul2," "));
- ?>
- <li><a href="#" title="<?php echo $result['judul'];?>"><?php echo $judul2;?></a><hr style="margin-top:7px; margin-bottom:7px; border-style:solid;"></li>
- <?php } ?>
- <li><a href="#"><b style="color:#286815">Selengkapnya...</b></a></li></ul></div>
- <div class="nav-nafsiyah">
- <h3>Akhlak</h3>
- <ul>
- <?php
- $query = mysqli_query($conn,"select id_berita, judul, tgl, kategori from artikel where kategori LIKE '%akhlak%' order by tgl desc limit 5");
- while($result = mysqli_fetch_array($query)){
- $judul = strip_tags($result['judul']);
- $judul2 = substr($judul,0,43);
- $judul2 = substr($judul,0,strrpos($judul2," "));
- ?>
- <li><a href="#" title="<?php echo $result['judul'];?>"><?php echo $judul2." ..";?></a><hr style="margin-top:7px; margin-bottom:7px; border-style:solid;"></li>
- <?php } ?>
- <li><a href="#"><b style="color:#286815">Selengkapnya...</b></a></li></ul></div>
- <div class="nav-nafsiyah">
- <h3>Sirah</h3>
- <ul>
- <?php
- $query = mysqli_query($conn,"select id_berita, judul, tgl, kategori from artikel where kategori LIKE '%sirah%' order by tgl desc limit 5");
- while($result = mysqli_fetch_array($query)){
- $judul = strip_tags($result['judul']);
- $judul2 = substr($judul,0,43);
- $judul2 = substr($judul,0,strrpos($judul2," "));
- ?>
- <li><a href="#" title="<?php echo $result['judul'];?>"><?php echo $judul2." ..";?></a><hr style="margin-top:7px; margin-bottom:7px; border-style:solid;"></li>
- <?php } ?>
- <li><a href="#"><b style="color:#286815">Selengkapnya...</b></a></li></ul></div>
- </div>
- </li><!--end nafsiyah-->
- <li><a href="#">Opini</a>
- <div class="opini">
- <div class="nav-opini">
- <h3>Kajian Internal</h3>
- <ul>
- <?php
- $query = mysqli_query($conn,"select id_berita, judul, tgl, kategori from artikel where kategori LIKE '%kaj_internal%' order by tgl desc limit 5");
- while($result = mysqli_fetch_array($query)){
- $judul = strip_tags($result['judul']);
- $judul2 = substr($judul,0,50);
- $judul2 = substr($judul,0,strrpos($judul2," "));
- ?>
- <li><a href="#" title="<?php echo $result['judul'];?>"><?php echo $judul2." ..";?></a><hr style="margin-top:7px; margin-bottom:7px; border-style:solid;"></li>
- <?php } ?>
- <li><a href="#"><b style="color:#286815">Selengkapnya ...</b></a></li></ul></div>
- <div class="nav-opini">
- <h3>Analisis</h3>
- <ul>
- <?php
- $query = mysqli_query($conn,"select id_berita, judul, tgl, kategori from artikel where kategori LIKE '%analisis%' order by tgl desc limit 5");
- while($result = mysqli_fetch_array($query)){
- $judul = strip_tags($result['judul']);
- $judul2 = substr($judul,0,50);
- $judul2 = substr($judul,0,strrpos($judul2," "));
- ?>
- <li><a href="#" title="<?php echo $result['judul'];?>"><?php echo $judul2." ..";?></a><hr style="margin-top:7px; margin-bottom:7px; border-style:solid;"></li>
- <?php } ?>
- <li><a href="#"><b style="color:#286815">Selengkapnya...</b></a></li></ul></div>
- <div class="nav-opini">
- <h3 >Tulisan Mhs/i Fkim</h3>
- <ul>
- <?php
- $query = mysqli_query($conn,"select id_berita, judul, tgl, kategori from artikel where kategori LIKE '%torehan%' order by tgl desc limit 5");
- while($result = mysqli_fetch_array($query)){
- $judul = strip_tags($result['judul']);
- $judul2 = substr($judul,0,50);
- $judul2 = substr($judul,0,strrpos($judul2," "));
- ?>
- <li><a href="#" title="<?php echo $result['judul'];?>"><?php echo $judul2." ..";?></a><hr style="margin-top:7px; margin-bottom:7px; border-style:solid;"></li>
- <?php } ?>
- <li><a href="#"><b style="color:#286815">Selengkapnya ...</b></a></li></ul></div>
- </div>
- </li><!--end opini-->
- <li><a href="#">Muslimah</a>
- <div class="muslimah">
- <div class="nav-muslimah">
- <h3>Fiqih Wanita</h3>
- <ul>
- <?php
- $query = mysqli_query($conn,"select id_berita, judul, tgl, kategori from artikel where kategori LIKE '%fiqih_wanita%' order by tgl desc limit 5");
- while($result = mysqli_fetch_array($query)){
- $judul = strip_tags($result['judul']);
- $judul2 = substr($judul,0,50);
- $judul2 = substr($judul,0,strrpos($judul2," "));
- ?>
- <li><a href="#" title="<?php echo $result['judul'];?>"><?php echo $judul2." ..";?></a><hr style="margin-top:7px; margin-bottom:7px; border-style:solid;"></li>
- <?php } ?>
- <li><a href="#"><b style="color:#286815">Selengkapnya ...</b></a></li></ul></div>
- <div class="nav-muslimah">
- <h3>Mutiara Qolbu</h3>
- <ul>
- <?php
- $query = mysqli_query($conn,"select id_berita, judul, tgl, kategori from artikel where kategori LIKE '%mutiara_qolbu%' order by tgl desc limit 5");
- while($result = mysqli_fetch_array($query)){
- $judul = strip_tags($result['judul']);
- $judul2 = substr($judul,0,50);
- $judul2 = substr($judul,0,strrpos($judul2," "));
- ?>
- <li><a href="#" title="<?php echo $result['judul'];?>"><?php echo $judul2." ..";?></a><hr style="margin-top:7px; margin-bottom:7px; border-style:solid;"></li>
- <?php } ?>
- <li><a href="#"><b style="color:#286815">Selengkapnya ...</b></a></li></ul></div>
- <div class="nav-muslimah">
- <h3>Sirah Shahabiyah</h3>
- <ul>
- <?php
- $query = mysqli_query($conn,"select id_berita, judul, tgl, kategori from artikel where kategori LIKE '%sirah_shabiyah%' order by tgl desc limit 5");
- while($result = mysqli_fetch_array($query)){
- $judul = strip_tags($result['judul']);
- $judul2 = substr($judul,0,50);
- $judul2 = substr($judul,0,strrpos($judul2," "));
- ?>
- <li><a href="#" title="<?php echo $result['judul'];?>"><?php echo $judul2." ..";?></a><hr style="margin-top:7px; margin-bottom:7px; border-style:solid;"></li>
- <?php } ?>
- <li><a href="#"><b style="color:#286815">Selengkapnya ...</b></a></li></ul></div>
- </div>
- </li><!--end Muslimah-->
- <li><a href="#">Galeri</a></li>
- <li><a href="#">Pendaftaran</a></li>
- <li class="nav-search">
- <form action="#">
- <input type="text" placeholder="ketik disini...">
- <input type="submit" value="">
- </form></li>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement