Created
September 11, 2018 10:26
-
-
Save maulayyacyber/e49cfb3d63efbdec0be5dbb29254225b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ($this->uri->segment(1) == "admin") { ?> | |
<?php }else{ ?> | |
<div class="container"> | |
<div class="breakingNews" id="bn5" style="margin-bottom:10px;box-shadow: rgba(159, 167, 194, 0.6) 0px 1px 1px 0px;"> | |
<div class="bn-title" style="background:<?php echo theme_color_body() ?>"><h2><i class="fa fa-newspaper-o"></i> | |
BREAKING NEWS</h2><span style="border-left-color:<?php echo theme_color_body() ?>"></span></div> | |
<ul> | |
<?php | |
if (news_ticker() != NULL) : | |
foreach (news_ticker() as $hasil) : | |
?> | |
<li> | |
<a href="<?php echo base_url() ?>berita/<?php echo $hasil->slug_berita ?>/"><?php echo $hasil->judul_berita ?></a> | |
</li> | |
<?php endforeach; ?> | |
<?php elseif (news_ticker() == NULL): ?> | |
<li><a href="#">Tidak ada berita terbaru!</a></li> | |
<?php endif; ?> | |
</ul> | |
<div class="bn-navi"> | |
<span></span> | |
<span></span> | |
</div> | |
</div> | |
<?php } ?> | |
</div> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<!-- slider --> | |
<div id="slider" class="carousel slide" data-ride="carousel"> | |
<div class="carousel-inner" role="listbox"> | |
<?php | |
$item_class = ' active'; | |
foreach ($data_slider->result() as $hasil) : | |
//$item_class = ($i == 1) ? 'item active' : 'item'; | |
?> | |
<div class="carousel-item <?php echo $item_class; ?>" style="width:100%;height:400px"> | |
<img class="d-block img-fluid" | |
src="<?php echo base_url() ?>resources/slider/<?php echo $hasil->foto ?>" | |
alt="<?php echo $hasil->caption ?>"> | |
<div class="carousel-caption d-none d-md-block"> | |
<h3><?php echo $hasil->caption ?></h3> | |
</div> | |
</div> | |
<?php | |
$item_class = ''; | |
endforeach; | |
?> | |
</div> | |
<a class="carousel-control-prev" href="#slider" role="button" data-slide="prev"> | |
<span class="carousel-control-prev-icon" aria-hidden="true"></span> | |
<span class="sr-only">Previous</span> | |
</a> | |
<a class="carousel-control-next" href="#slider" role="button" data-slide="next"> | |
<span class="carousel-control-next-icon" aria-hidden="true"></span> | |
<span class="sr-only">Next</span> | |
</a> | |
</div> | |
<!-- end slider --> | |
</div> | |
</div> | |
<div class="row"> | |
<!-- content kiri --> | |
<div class="col-xs-12 col-md-9"> | |
<!-- berita baru --> | |
<ol class="breadcrumb-homepage breadcrumb" | |
style="margin-top:10px;background-color: <?php echo theme_color_body(); ?>;"> | |
<li><i class="fa fa-book"></i> BERITA TERBARU</li> | |
</ol> | |
<div class="row"> | |
<?php | |
if ($data_berita != NULL): | |
foreach ($data_berita->result() as $hasil) : | |
//limit judul | |
if (strlen($hasil->judul_berita) < 35) { | |
$judul = $hasil->judul_berita; | |
} else { | |
$judul = substr($hasil->judul_berita, 0, 30) . '...'; | |
} | |
//limit descriptions | |
if (strlen($hasil->descriptions) < 55) { | |
$descriptions = $hasil->descriptions; | |
} else { | |
$descriptions = substr($hasil->descriptions, 0, 55) . '...'; | |
} | |
?> | |
<div class="col-md-4"> | |
<div class="card" style="margin-top:0px;"> | |
<a href="<?php echo base_url() ?>berita/<?php echo $hasil->slug_berita ?>/"> | |
<img class="card-img-top" style="width:100%;min-height:150px;max-height:150px" | |
src="<?php echo base_url() ?>resources/images/berita/thumb/<?php echo $hasil->gambar ?>" | |
alt="<?php echo $hasil->judul_berita ?>"> | |
</a> | |
<div class="card-body"> | |
<h4 class="card-title" style="font-size:18px;"><a | |
href="<?php echo base_url() ?>berita/<?php echo $hasil->slug_berita ?>/" | |
style="text-decoration:none;color:<?php theme_color_body() ?>"><?php echo $judul ?></a> | |
</h4> | |
<p class="card-text" | |
style="font-size:13px;color: #858e99;"><?php echo $descriptions ?></p> | |
</div> | |
<div class="card-footer"> | |
<small class="text-muted"><i | |
class="fa fa-calendar-o"></i> <?php echo $this->web->tgl_indo_no_hari($hasil->created_at) ?> | |
</small> | |
</div> | |
</div> | |
</div> | |
<?php | |
endforeach; | |
else : | |
?> | |
Tidak Berita Disini | |
<?php endif; ?> | |
</div> | |
<!-- end berita baru --> | |
<!-- agenda baru --> | |
<ol class="breadcrumb-homepage breadcrumb" | |
style="margin-top:10px;background-color: <?php echo theme_color_body(); ?>; "> | |
<li><i class="fa fa-calendar"></i> AGENDA TERBARU</li> | |
</ol> | |
<div class="row"> | |
<?php | |
if ($data_agenda != NULL): | |
foreach ($data_agenda->result() as $hasil) : | |
//limit judul | |
if (strlen($hasil->judul_agenda) < 35) { | |
$judul = $hasil->judul_agenda; | |
} else { | |
$judul = substr($hasil->judul_agenda, 0, 30) . '...'; | |
} | |
//limit descriptions | |
if (strlen($hasil->descriptions) < 55) { | |
$descriptions = $hasil->descriptions; | |
} else { | |
$descriptions = substr($hasil->descriptions, 0, 55) . '...'; | |
} | |
?> | |
<div class="col-md-4"> | |
<div class="card" style="margin-top:0px;"> | |
<a href="<?php echo base_url() ?>agenda/<?php echo $hasil->slug_agenda ?>/"> | |
<img class="card-img-top" style="width:100%;min-height:150px;max-height:150px" | |
src="<?php echo base_url() ?>resources/images/agenda/thumb/<?php echo $hasil->gambar ?>" | |
alt="<?php echo $hasil->judul_agenda ?>"> | |
</a> | |
<div class="card-body"> | |
<h4 class="card-title" style="font-size:18px"><a | |
href="<?php echo base_url() ?>agenda/<?php echo $hasil->slug_agenda ?>/" | |
style="text-decoration:none;color:<?php theme_color_body() ?>"><?php echo $judul ?></a> | |
</h4> | |
<p class="card-text" | |
style="font-size:13px;color: #858e99;"><?php echo $descriptions ?></p> | |
</div> | |
<div class="card-footer"> | |
<small class="text-muted"><i | |
class="fa fa-calendar-o"></i> <?php echo $this->web->tgl_indo_no_hari($hasil->created_at) ?> | |
</small> | |
</div> | |
</div> | |
</div> | |
<?php | |
endforeach; | |
else : | |
?> | |
Tidak Agenda Disini | |
<?php endif; ?> | |
</div> | |
<!-- end agenda baru --> | |
<!-- pengumuman baru --> | |
<ol class="breadcrumb-homepage breadcrumb" | |
style="margin-top:10px;background-color: <?php echo theme_color_body(); ?>;"> | |
<li><i class="fa fa-bell"></i> PENGUMUMAN TERBARU</li> | |
</ol> | |
<div class="row"> | |
<?php | |
if ($data_pengumuman != NULL): | |
foreach ($data_pengumuman->result() as $hasil) : | |
//limit judul | |
if (strlen($hasil->judul_pengumuman) < 35) { | |
$judul = $hasil->judul_pengumuman; | |
} else { | |
$judul = substr($hasil->judul_pengumuman, 0, 30) . '...'; | |
} | |
//limit descriptions | |
if (strlen($hasil->descriptions) < 55) { | |
$descriptions = $hasil->descriptions; | |
} else { | |
$descriptions = substr($hasil->descriptions, 0, 55) . '...'; | |
} | |
?> | |
<div class="col-md-4"> | |
<div class="card" style="margin-top:0px;"> | |
<a href="<?php echo base_url() ?>pengumuman/<?php echo $hasil->slug_pengumuman ?>/"> | |
<img class="card-img-top" style="width:100%;min-height:150px;max-height:150px" | |
src="<?php echo base_url() ?>resources/images/pengumuman/thumb/<?php echo $hasil->gambar ?>" | |
alt="<?php echo $hasil->judul_pengumuman ?>"> | |
</a> | |
<div class="card-body"> | |
<h4 class="card-title" style="font-size:18px;"><a | |
href="<?php echo base_url() ?>pengumuman/<?php echo $hasil->slug_pengumuman ?>/" | |
style="text-decoration:none;color:<?php theme_color_body() ?>"><?php echo $judul ?></a> | |
</h4> | |
<p class="card-text" | |
style="font-size:13px;color: #858e99;"><?php echo $descriptions ?></p> | |
</div> | |
<div class="card-footer"> | |
<small class="text-muted"><i | |
class="fa fa-calendar-o"></i> <?php echo $this->web->tgl_indo_no_hari($hasil->created_at) ?> | |
</small> | |
</div> | |
</div> | |
</div> | |
<?php | |
endforeach; | |
else : | |
?> | |
Tidak Agenda Disini | |
<?php endif; ?> | |
</div> | |
<!-- end pengumuman baru --> | |
<!-- <ol class="breadcrumb-homepage breadcrumb" style="margin-top:10px;background-color: <?php echo theme_color_body(); ?>;"> | |
<li><i class="fa fa-picture-o"></i> FOTO TERBARU</li> | |
</ol> | |
<ol class="breadcrumb-homepage breadcrumb" style="margin-top:10px;background-color: <?php echo theme_color_body(); ?>;"> | |
<li><i class="fa fa-youtube-play"></i> VIDEO TERBARU</li> | |
</ol> --> | |
</div> | |
<!-- end content kiri --> | |
<!-- content kanan --> | |
<div class="col-xs-12 col-md-3"> | |
<!-- <div class="card" style="margin-top:0px"> | |
<img class="card-img-top" style="border-top-left-radius: 0px;border-top-right-radius: 0px;padding:6px" src="https://avatars2.githubusercontent.com/u/11194525?s=460&v=4" alt="Card image cap"> | |
<div class="card-body"> | |
<h4 class="card-title" style="font-family:Roboto;font-weight:300">Fika Ridaul Maulayya S.Kom</h4> | |
<p class="card-text">Some quick example text to build on the .......</p> | |
<a href="#" class="btn btn-success">Selengkapnya <i class="fa fa-long-arrow-right"></i></a> | |
</div> | |
</div> --> | |
<ol class="breadcrumb-homepage breadcrumb" | |
style="margin-top:10px;background-color: <?php echo theme_color_body(); ?>;margin-bottom: 5px;"> | |
<li><i class="fa fa-folder"></i> KATEGORI BERITA</li> | |
</ol> | |
<ul class="list-group"> | |
<?php | |
if (kategori() != NULL) : | |
foreach (kategori() as $hasil) : | |
$query = $this->db->query("SELECT count(kategori_id) as jumlah FROM tbl_berita WHERE kategori_id ='$hasil->id_kategori'")->row(); | |
?> | |
<li class="list-group-item d-flex justify-content-between align-items-center"> | |
<a href="<?php echo base_url() ?>kategori/<?php echo $hasil->slug ?>/" style="text-decoration:none;color:#333;text-transform:uppercase"><i class="fa fa-folder"></i> <?php echo $hasil->nama_kategori ?></a> | |
<span class="badge badge-success badge-pill" style="background-color: <?php echo theme_color_body(); ?>;padding: 6px"><?php echo $query->jumlah ?></span> | |
</li> | |
<?php endforeach; ?> | |
<?php elseif (news_ticker() == NULL): ?> | |
<li><a href="#">Tidak ada data kategori!</a></li> | |
<?php endif; ?> | |
</ul> | |
<ol class="breadcrumb-homepage breadcrumb" | |
style="margin-top:10px;background-color: <?php echo theme_color_body(); ?>;margin-bottom:5px"> | |
<li><i class="fa fa-external-link"></i> LINK PENDIDIKAN</li> | |
</ol> | |
<ul class="list-group"> | |
<li class="list-group-item"><a href="" style="text-decoration:none;color:#333;text-transform:uppercase"><i | |
class="fa fa-check-circle"></i> Dinas Pendidikan</a></li> | |
<li class="list-group-item"><a href="" style="text-decoration:none;color:#333;text-transform:uppercase"><i | |
class="fa fa-check-circle"></i> Dinas Jombang</a></li> | |
<li class="list-group-item"><a href="" style="text-decoration:none;color:#333;text-transform:uppercase"><i | |
class="fa fa-check-circle"></i> Provinsi Jawa Timur</a></li> | |
</ul> | |
<ol class="breadcrumb-homepage breadcrumb" | |
style="margin-top:10px;background-color: <?php echo theme_color_body(); ?>;margin-bottom:5px; "> | |
<li><i class="fa fa-sign-in"></i> MASUK</li> | |
</ol> | |
<div class="card" style="margin-top:0px"> | |
<div class="card-content"> | |
<div class="form-login"> | |
<?php | |
$attributes = array('id' => 'frm_login'); | |
echo form_open_multipart('admin?source=send&utf8=✓', $attributes) | |
?> | |
<div class="form-group"> | |
<label for="username"><i class="fa fa-user-circle"></i> USERNAME</label> | |
<input type="text" class="form-control" name="username" id="username" | |
aria-describedby="username" placeholder="Masukkan Username Anda"> | |
<?php echo form_error('username'); ?> | |
</div> | |
<div class="form-group"> | |
<label for="password"><i class="fa fa-unlock"></i> PASSWORD</label> | |
<input type="password" class="form-control" name="password" id="password" | |
placeholder="Masukkan Password Anda"> | |
<?php echo form_error('password'); ?> | |
</div> | |
<div class="form-group"> | |
<?php if (isset($error)) { | |
echo $error; | |
}; ?> | |
<?php echo $this->session->flashdata('notif') ?> | |
</div> | |
<button type="submit" class="btn btn-success" style="cursor:pointer">Masuk <i | |
class="fa fa-sign-in"></i></button> | |
<?php echo form_close(); ?> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- end content kanan --> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment