133 lines
6.3 KiB
PHP
133 lines
6.3 KiB
PHP
<div class="row page-titles">
|
|
<div class="col-md-5 align-self-center">
|
|
<h4 class="text-themecolor">Data Guru</h4>
|
|
</div>
|
|
<div class="col-md-7 align-self-center text-right">
|
|
<div class="d-flex justify-content-end align-items-center">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="javascript:void(0)">Data Master</a></li>
|
|
<li class="breadcrumb-item active">Data Guru</li>
|
|
</ol>
|
|
<a href="<?= base_url('guru/input') ?>">
|
|
<button type="button" class="btn btn-info d-none d-lg-block m-l-15"><i class="fa fa-plus-circle"></i>
|
|
Tambah</button>
|
|
</a>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<h4 class="card-title">Daftar Data Guru Aktif</h4>
|
|
<div class="table-responsive">
|
|
<table id="example23" class="display nowrap table table-hover table-striped table-bordered"
|
|
cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 10%;">No.</th>
|
|
<th>NIP</th>
|
|
<th>Nama</th>
|
|
<th>Jabatan</th>
|
|
<th style="width: 100px;">Aksi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$no = 1;
|
|
foreach ($guru as $row): ?>
|
|
<tr>
|
|
<td>
|
|
<?= $no++; ?>
|
|
</td>
|
|
<td>
|
|
<?= $row->nip; ?>
|
|
</td>
|
|
<td>
|
|
<?= $row->nama_guru; ?>
|
|
</td>
|
|
<td>
|
|
<?= $row->jabatan; ?>
|
|
</td>
|
|
<td>
|
|
<a href="<?= base_url('guru/edit/' . $row->nip) ?>">
|
|
<button class="btn btn-sm btn-icon btn-pure btn-outline"
|
|
data-toggle="tooltip" data-original-title="Edit"><i class="ti-pencil"
|
|
aria-hidden="true"></i>
|
|
</button>
|
|
</a>
|
|
<a href="<?= base_url('guru/delete/' . $row->nip) ?>" onclick="return confirm('Apakah Anda yakin ingin menghapus?');">
|
|
<button class="btn btn-sm btn-icon btn-pure btn-outline"
|
|
data-toggle="tooltip" data-original-title="Delete"><i class="ti-close"
|
|
aria-hidden="true"></i>
|
|
</button>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<h4 class="card-title">Daftar Data Guru Tidak Aktif</h4>
|
|
<div class="table-responsive">
|
|
<table id="myTable" class="display nowrap table table-hover table-striped table-bordered"
|
|
cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 10%;">No.</th>
|
|
<th>NIP</th>
|
|
<th>Nama</th>
|
|
<th>Jabatan</th>
|
|
<th style="width: 100px;">Aksi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$no = 1;
|
|
foreach ($guru2 as $row): ?>
|
|
<tr>
|
|
<td>
|
|
<?= $no++; ?>
|
|
</td>
|
|
<td>
|
|
<?= $row->nip; ?>
|
|
</td>
|
|
<td>
|
|
<?= $row->nama_guru; ?>
|
|
</td>
|
|
<td>
|
|
<?= $row->jabatan; ?>
|
|
</td>
|
|
<td>
|
|
<a href="<?= base_url('guru/edit/' . $row->nip) ?>">
|
|
<button class="btn btn-sm btn-icon btn-pure btn-outline"
|
|
data-toggle="tooltip" data-original-title="Edit"><i class="ti-pencil"
|
|
aria-hidden="true"></i>
|
|
</button>
|
|
</a>
|
|
<a href="<?= base_url('guru/restore/' . $row->nip) ?>">
|
|
<button class="btn btn-sm btn-icon btn-pure btn-outline"
|
|
data-toggle="tooltip" data-original-title="Pulihkan"><i class="ti-cloud-up"
|
|
aria-hidden="true"></i>
|
|
</button>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|