[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
simaku
/
application
/
views
/
laporan
/
[
Home
]
File: daftar_unit_html2.php
<html> <style type="text/css"> body { margin: 0.1in; } #kiri { width: 20%; float: left; padding: 10px; } #kanan { width: 80%; } h1, h2, h3, h4, h5, h6, li, blockquote, p, th, td { font-family: Helvetica, Arial, Verdana, sans-serif; /*Trebuchet MS,*/ } h1, h2, h3, h4 { color: #000000; font-weight: normal; } h4, h5, h6 { color: #000000; } h2 { margin: 0 auto auto auto; font-size: x-large; } li, blockquote, p, th, td { font-size: 80%; } ul { list-style: url(/img/bullet.gif) none; } #footer { border-top: 1px solid #000000; text-align: right; } table, th, td { border: 1px solid black; border-collapse: collapse; font-family: "Trebuchet MS", Arial, sans-serif; color: black; } td, th { padding: 4px; } P.breakhere { page-break-after: always } </style> <body> <div id="kiri"> <img align="left" src="<?php echo base_url(); ?>images/logo_ueu.gif" width="75" height="75" /> </div> <div id="kanan"> <h4 align="center">DAFTAR UNIT KERJA</h4> <h4 align="center">RENCANA ANGGARAN DAN KEGIATAN TAHUNAN (RKAT) <?php echo date("Y"); ?></h4> <h4 align="center"><?php echo strtoupper($info->row()->namapt); ?></h4> </div> </br> <?php $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 { ?> <p style="color:red"><?= $o1 ?> | <?= $o2 ?></p> <?php } ?> <table width="100%" border="1" cellpadding="5"> <thead> <tr> <th>No</th> <th>Kode Unit</th> <th>Nama Unit</th> <th>Nama Pimpinan</th> <th>NIP</th> <?php if ($pagu->num_rows() > 0) { foreach ($pagu->result() as $key) { ?> <th><?= $key->sumber ?></th> <?php } } ?> <th>Nama User</th> <th>Password</th> </tr> </thead> <?php $no = 1; 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') { ?> <font color="blue">(otorisator 2)</font> <?php } } foreach ($q as $user) { if ($user->wewenang == 'otorisator1') { ?> <font color="blue">(otorisator 1)</font> <?php } } ?> </td> <td align="left"><?= $row->nama_pimp ?></td> <td align="center"><?= $row->nip ?></td> <?php if ($pagu->num_rows() > 0) { $nom = 1; foreach ($pagu->result() as $keys) { $pagux = 'pagu' . $nom; ?> <td align="center"><?= number_format($row->$pagux, 0, ",", ".") ?></td> <?php $nom++; } } ?> <td align="center"><?= $row->namauser ?></td> <td align="center"><?= $row->pass ?></td> </tr> <?php $no++; } ?> </table><br> </div> </table> </body> </html>