[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
BACKUP C 19-12
/
XAMPP74
/
htdocs
/
simaku
/
application-old
/
views
/
admin
/
pass
/
[
Home
]
File: aturpass.php
<div class="alert alert-info"><strong>Pengaturan User - Password Unit Kerja</strong></div> <?php $no = $hal + 1; echo !empty($message) ? '<p class="message">' . $message . '</p>' : ''; $flashmessage = $this->session->flashdata('message'); echo !empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>' : ''; echo !empty($pagination) ? '<div class="pagination pagination-centered">' . $pagination . '</div>' : ''; // if ( ! empty($link)) // { // echo '<p id="bottom_link">'; // foreach($link as $links) // { // echo $links . ' '; // } // echo '</p>'; // } $cekoto = $this->Mpass->cari_id_otorisator1(); if ($cekoto->num_rows() > 0) { $o1 = ''; } else { $o1 = 'Belum ada wewenang sebagai <b>Otorisator 1</b>'; } $cekoto2 = $this->Mpass->cari_id_otorisator2(); if ($cekoto2->num_rows() > 0) { $o2 = ''; } else { $o2 = 'Belum ada wewenang sebagai <b>Otorisator 2</b>'; } if ($cekoto->num_rows() > 0 and $cekoto2->num_rows() > 0) { } else { ?> <div class="alert alert-danger"><?= $o1 ?> | <?= $o2 ?></div> <?php } ?> <table class="table table-bordered table-striped"> <?php echo '<thead><tr><th>No</th><th>Kode Unit</th><th>Nama Unit</th><th>Nama User</th><th title="Password untuk Pimpinan Unit Kerja">Password</th><th>Actions</th><th>Status</th></tr></thead>'; foreach ($query->result() as $row) { ?> <tr> <td align="center"><?= $no ?></td> <td align="center"><?= $row->kode ?></td> <td align="left"><?= $row->nama ?> <?php $q = $this->Mpass->cek_idlog($row->id_unit); foreach ($q as $user) { if ($user->wewenang == 'otorisator2') { echo ' <font color="blue">(otorisator 2)</font>'; } } foreach ($q as $user) { if ($user->wewenang == 'otorisator1') { echo ' <font color="blue">(otorisator 1)</font>'; } } ?> </td> <td align="left"><?= $row->namauser ?></td> <td align="center"><?= $row->pass ?></td> <?php if ($row->status == 'ok') { ?> <td align="center"><?= anchor('adm_pass/update_atur_user_pass/' . $row->id_unit, 'Ubah') ?></td> <?php } else { ?> <td align="center"><?= anchor('adm_pass/update_process_atur_user_pass_new/' . $row->id_unit, 'Daftarkan') ?></td> <?php } ?> <td><?= $row->status ?></td> </tr> <?php $no++; } ?> </table> <?php echo !empty($pagination) ? '<div class="pagination pagination-centered">' . $pagination . '</div>' : ''; ?> </div>