MINI
C:
/
siak
/
TOOL SIAK
/
tool9
/
restore1
/
view
/
layout
/
Upload File:
files >> C:/siak/TOOL SIAK/tool9/restore1/view/layout/content.php
<?php date_default_timezone_set("Asia/Jakarta"); if (strcmp($page, "home")==0) { ################ # Halaman Home ################ function showNotif() { if (isset($_GET['st'])) { if ($_GET['st'] == 1) { echo '<div class="callout callout-warning" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Berhasil disimpan. </div><br />'; } elseif ($_GET['st'] == 2) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Gagal menyimpan. </div><br />'; } } } $judul = 'Restore Data Kab Padang Pariaman'; $pantau = 2; $notif = 'true'; $halaman = "./view/beranda.php"; } elseif (strcmp($page, "add_client")==0) { ######################## # SETTING TAMBAH CLIENT ######################## function showNotif() { if (isset($_GET['st'])) { if ($_GET['st']==1) { echo '<div class="callout callout-warning" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Berhasil ditambahkan. </div><br />'; } elseif ($_GET['st']==2) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Gagal menyimpan. </div><br />'; } elseif ($_GET['st']==3) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Data tidak boleh kosong. </div><br />'; } } } $notif = 'true'; $pantau = 1; $judul = "Tambah Client"; $halaman = "./view/add_client.php"; } elseif (strcmp($page, "add_keterangan")==0 and $_SESSION['level'] ==1 ) { ######################## # SETTING TAMBAH CLIENT ######################## function showNotif() { if (isset($_GET['st'])) { if ($_GET['st']==1) { echo '<div class="callout callout-warning" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Berhasil ditambahkan. </div><br />'; } elseif ($_GET['st']==2) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Gagal menyimpan. </div><br />'; } elseif ($_GET['st']==3) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Data tidak boleh kosong. </div><br />'; } } } $notif = 'true'; $pantau = 1; $judul = "Tambah Keterangan"; $halaman = "./view/add_keterangan.php"; } elseif (strcmp($page, "flag_wni")==0) { ######################## # SETTING TAMBAH STASIUN ######################## function showNotif() { if (isset($_GET['st'])) { if ($_GET['st']==1) { echo '<div class="callout callout-warning" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Flag Berhasil Di rubah. </div><br />'; } elseif ($_GET['st']==2) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Gagal menyimpan. </div><br />'; } elseif ($_GET['st']==3) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Data tidak boleh kosong. </div><br />'; } } } $notif = 'true'; $pantau = 2; $judul = "Ubah Flag Biodata"; $halaman = "./view/flag_wni.php"; } elseif (strcmp($page, "flag_kk")==0) { ######################## # SETTING TAMBAH STASIUN ######################## function showNotif() { if (isset($_GET['st'])) { if ($_GET['st']==1) { echo '<div class="callout callout-warning" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Flag Berhasil Di rubah. </div><br />'; } elseif ($_GET['st']==2) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Gagal menyimpan. </div><br />'; } elseif ($_GET['st']==3) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Data tidak boleh kosong. </div><br />'; } } } $notif = 'true'; $pantau = 2; $judul = "Ubah Flag KK"; $halaman = "./view/flag_kk.php"; } elseif (strcmp($page, "list_keterangan")==0) { ######################## # SETTING TAMBAH STASIUN ######################## function showNotif() { if (isset($_GET['st'])) { if ($_GET['st']==1) { echo '<div class="callout callout-warning" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Berhasil ditambahkan. </div><br />'; } elseif ($_GET['st']==2) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Gagal menyimpan. </div><br />'; } elseif ($_GET['st']==3) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Data tidak boleh kosong. </div><br />'; } } } $notif = 'true'; $pantau = 1; $judul = "List Keterangan"; $halaman = "./view/list_keterangan.php"; } elseif (strcmp($page, "list_siswa")==0) { ######################## # SETTING TAMBAH STASIUN ######################## function showNotif() { if (isset($_GET['st'])) { if ($_GET['st']==1) { echo '<div class="callout callout-warning" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Berhasil ditambahkan. </div><br />'; } elseif ($_GET['st']==2) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Gagal menyimpan. </div><br />'; } elseif ($_GET['st']==3) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Data tidak boleh kosong. </div><br />'; } } } $notif = 'true'; $pantau = 1; $judul = "List Siswa"; $halaman = "./view/list_siswa.php"; } elseif (strcmp($page, "katasandi")==0) { ######################## # SETTING TAMBAH STASIUN ######################## function showNotif() { if (isset($_GET['st'])) { if ($_GET['st']==1) { echo '<div class="callout callout-warning" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Berhasil dirubah. </div><br />'; } elseif ($_GET['st']==2) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Gagal dirubah. </div><br />'; } elseif ($_GET['st']==3) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Katasandi lama tidak cocok. </div><br />'; } elseif ($_GET['st']==4) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Konfirmasi katasandi tidak sama. </div><br />'; } elseif ($_GET['st']==5) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Form tidak boleh kosong </div><br />'; } } } $notif = 'true'; $pantau = 0; $judul = "Rubah katasandi"; $halaman = "./view/ubah-katasandi.php"; } elseif (strcmp($page, "tambah_user")==0 and $_SESSION['level'] ==1 ) { ######################## # SETTING TAMBAH STASIUN ######################## function showNotif() { if (isset($_GET['st'])) { if ($_GET['st']==1) { echo '<div class="callout callout-warning" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Berhasil ditambah. </div><br />'; } elseif ($_GET['st']==2) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Gagal ditambah. </div><br />'; } elseif ($_GET['st']==3) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Katasandi lama tidak cocok. </div><br />'; } elseif ($_GET['st']==4) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Konfirmasi Data Sudah di hapus. </div><br />'; } elseif ($_GET['st']==5) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Form tidak boleh kosong </div><br />'; } } } $notif = 'true'; $pantau = 0; $judul = "Tambah User"; $halaman = "./view/tambah_user.php"; } elseif (strcmp($page, "log")==0) { ########################## # SETTING LOG LAPORAN EMAIL ########################## function showNotif() { if (isset($_GET['st'])) { if ($_GET['st']==1) { echo '<div class="callout callout-warning" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Berhasil disimpan. </div><br />'; } elseif ($_GET['st']==2) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Gagal menyimpan. </div><br />'; } elseif ($_GET['st']==3) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Data tidak boleh kosong. </div><br />'; } elseif ($_GET['st']==4) { echo '<div class="callout callout-success" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Berhasil dihapus. </div><br />'; } elseif ($_GET['st']==5) { echo '<div class="callout callout-danger" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Gagal dihapus. </div><br />'; } } echo '<div class="callout callout-info" style="margin-bottom: 0!important;"> <h4><i class="fa fa-info"></i> Note:</h4> Agar menghemat penyimpanan Database sangat disarankan untuk menghapus log laporan email ini. </div> <br />'; } $notif = 'true'; if (isset($_GET['id'])) { $pantau = 1; } else { $pantau = 0; } $judul = "Log Report Monitoring"; $halaman = "./view/log-report.php"; } else { ######################## # SETTING PAGE ERROR ######################## $notif = 'false'; $pantau = 0; $judul = ""; $halaman = "./view/404.php"; } ?> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $judul; ?> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li class="active"><?php echo $judul; ?></li> </ol> </section> <section class="content"> <div class="row"> <div class="col-md-9"> <?php if ($notif == "true") { showNotif(); } ?> <div class="nav-tabs-custom"> <?php include $halaman; ?> </div><!-- /.nav-tabs-custom --> </div><!-- /.col --> <div class="col-md-3"> <!-- About Me Box --> <?php if ($pantau==1) { echo '<div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Jenis Keterangan</h3> </div> <div class="box-body"> '; $q = "SELECT * FROM keterangan where status='open'"; $r = $conn->query($q); if ($r = $conn->query($q)) { if ($r->num_rows!==0) { ?> <table width="172" > <?php while ($client=$r->fetch_assoc()) { extract($client); ?> <tr> <td width="17"><strong>-</strong> </td> <td width="143" ><?php echo $keterangan ?></td> </tr> <?php } ?> </table> <?php } else { ?> <div class='alert alert-warning'><strong>Tidak ada Data untuk ditampilkan!</strong></div> <?php } } } if ($pantau==2) { echo '<div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Jenis Keterangan</h3> </div> <div class="box-body"> '; $q = "SELECT * FROM keterangan where status='open'"; $r = $conn->query($q); if ($r = $conn->query($q)) { if ($r->num_rows!==0) { ?> <table width="172" > <?php while ($client=$r->fetch_assoc()) { extract($client); ?> <tr> <td width="17"><strong>-</strong> </td> <td width="143" ><?php echo $keterangan ?></td> </tr> <?php } ?> </table> <?php } else { ?> <div class='alert alert-warning'><strong>Tidak ada Data untuk ditampilkan!</strong></div> <?php } } ?> <br> <br> <?php echo '<div class=""> <div class="box-header with-border"> <h3 class="box-title">Last Entry</h3> </div> <div class="box-body"> '; $tgl=date('Y-m-d'); $q1 = "SELECT * FROM masyarakat where tgl_coklit='$tgl' ORDER BY jam_coklit desc limit 0,5"; $r1 = $conn->query($q1); if ($r1 = $conn->query($q1)) { if ($r1->num_rows!==0) { ?> <table width="172" > <?php while ($client1=$r1->fetch_assoc()) { extract($client1); ?> <tr> <td width="17"><strong>-</strong> </td> <td width="143" ><?php echo $nama_masyarakat ?></td> </tr> <?php } ?> </table> <?php } else { ?> <div class='alert alert-warning'><strong>Tidak ada Data untuk ditampilkan!</strong></div> <?php } } ?> <br> <br> <?php echo '<div class=""> <div class="box-header with-border"> <h3 class="box-title">Total Coklit Hari Ini</h3> </div> <div class="box-body"> '; $tgl=date('Y-m-d'); $q1 = "SELECT count(*) as total FROM masyarakat where tgl_coklit='$tgl' "; $r1 = $conn->query($q1); if ($r1 = $conn->query($q1)) { if ($r1->num_rows!==0) { ?> <table width="172" > <?php while ($client1=$r1->fetch_assoc()) { extract($client1); ?> <tr> <td width="17"><strong>-</strong> </td> <td width="143" ><?php echo $total ?></td> </tr> <?php } ?> </table> <?php } else { ?> <div class='alert alert-warning'><strong>Tidak ada Data untuk ditampilkan!</strong></div> <?php } } } ?> <!-- /.col --> </div><!-- /.row --> </section>
Copyright ©2021 || Defacer Indonesia