Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Content Wrapper. Contains page content -->
- <div class="content-wrapper">
- <!-- Content Header (Page header) -->
- <section class="content-header">
- <div class="row">
- <ol class="breadcrumb">
- <li><a href="<?php echo base_url('rup'); ?>"><i class="fa fa-dashboard"></i> Home</a></li>
- <li>Daftar Paket</li>
- </ol>
- </div>
- </section>
- <!-- Main content -->
- <section class="content" id="app">
- <div class="row">
- <center>
- <h3><b>Daftar Paket</b></h3>
- </center>
- </div>
- <div class="row">
- <div class="col-xs-12">
- <!-- <?php if ($this->session->role === 'KASATKER') : ?> -->
- <!-- <div class="pull-left"><a class="btn btn-primary btn-sm" data-toggle="modal" href='<?php echo base_url('rup/peren_kasatker') ?>'>Daftarkan Persiapan Pengadaan</a>
- </div> -->
- <!-- <?php endif ?> -->
- </div>
- <br><br>
- <div class="col-xs-12">
- <?php if ($this->session->has_userdata('validation_errors')) : ?>
- <?php echo flash('validation_errors', 'danger'); ?>
- <?php endif ?>
- </div>
- <div class="col-xs-12">
- <div class="panel panel-default" style="margin-top: 10px">
- <form action="<?php echo base_url('rup/search'); ?>" method="POST">
- <div class="table-responsive">
- <?php
- if (empty($listPaket)) { ?>
- <table class="table table-striped table-hover">
- <thead>
- <tr>
- <th>No</th>
- <th>Paket</th>
- <th>Pagu(Rp)</th>
- <th>Jenis Pengadaan</th>
- <th>Pemilihan</th>
- <th>Kode Satuan Kerja</th>
- <th>Lokasi</th>
- <th>ID</th>
- <th>Aksi</th>
- </tr>
- <!-- <tr>
- <th></th>
- <th><input type="text" name="nama" class="form-control input-sm" placeholder="Semua"></th>
- <th><input type="number" name="jumlah_pagu" class="form-control input-sm" placeholder="Semua"></th>
- <th>
- <select class="form-control input-sm" name="jenis_pengadaan">
- <option value="Semua">Semua</option>
- <option value="Barang">Barang</option>
- <option value="Pekerjaan Konstruksi">Pekerjaan Konstruksi</option>
- <option value="Jasa Konsultasi">Jasa Konsultasi</option>
- <option value="Jasa Lainnya">Jasa Lainnya</option>
- </select>
- </th>
- <th><input type="text" name="metode_pengadaan" class="form-control input-sm" placeholder="Semua"></th>
- <th><input type="number" name="stk_kode" class="form-control input-sm" placeholder="Semua"></th>
- <th><input type="text" name="lokasi" class="form-control input-sm" placeholder="Semua"></th>
- <th><input type="number" name="id" class="form-control input-sm" placeholder="Semua"></th>
- <th><button class="btn btn-default" type="submit">Cari</button></th>
- </tr> -->
- </thead>
- <?php } else { ?>
- <table class="table table-striped table-hover" id="server">
- <thead>
- <tr>
- <th>No</th>
- <th>Paket</th>
- <th>Pagu(Rp)</th>
- <th>Jenis Pengadaan</th>
- <th>Pemilihan</th>
- <th>Kode Satuan Kerja</th>
- <th>Lokasi</th>
- <th>ID</th>
- <th>Aksi</th>
- </tr>
- <!-- <tr>
- <th></th>
- <th><input type="text" name="nama" class="form-control input-sm" placeholder="Semua"></th>
- <th><input type="number" name="jumlah_pagu" class="form-control input-sm" placeholder="Semua"></th>
- <th>
- <select class="form-control input-sm" name="jenis_pengadaan">
- <option value="Semua">Semua</option>
- <option value="Barang">Barang</option>
- <option value="Pekerjaan Konstruksi">Pekerjaan Konstruksi</option>
- <option value="Jasa Konsultasi">Jasa Konsultasi</option>
- <option value="Jasa Lainnya">Jasa Lainnya</option>
- </select>
- </th>
- <th><input type="text" name="metode_pengadaan" class="form-control input-sm" placeholder="Semua"></th>
- <th><input type="number" name="stk_kode" class="form-control input-sm" placeholder="Semua"></th>
- <th><input type="text" name="lokasi" class="form-control input-sm" placeholder="Semua"></th>
- <th><input type="number" name="id" class="form-control input-sm" placeholder="Semua"></th>
- <th><button class="btn btn-default" type="submit">Cari</button></th>
- </tr> -->
- </thead>
- <?php } ?>
- <tbody>
- <?php if (empty($listPaket)) : ?>
- <tr>
- <td colspan="10" class="text-center">Belum Ada Data</td>
- </tr>
- <?php else : ?>
- <?php
- $no=1;
- foreach ($listPaket as $key => $paket) : ?>
- <tr>
- <!--<td align="center"><//?php echo $number + 1; ?></td>-->
- <td align="center"><?php echo $no++; ?></td>
- <td> <a href="<?php echo base_url('rup/' . $paket->id) ?>"><?php echo $paket->nama; ?></a> </td>
- <td> <?php echo format_money($paket->jumlah_pagu); ?> </td>
- <td> <?php echo $paket->jenis_pengadaan; ?> </td>
- <td> <?php echo $paket->metode_pengadaan; ?> </td>
- <td> <?php echo $paket->stk_kode; ?> </td>
- <td> <?php echo $paket->lokasi; ?> </td>
- <td width="120px"><?php echo $paket->id; ?>
- <!-- <input class="form-control input-sm" type="text" readonly value="<//?php echo $paket->id; ?>" onclick="this.focus();this.select()"> -->
- </td>
- <td>
- <?php
- $disabled = $paket->exist_ba == 'false' ? 'disabled' : '';
- $btn_class = $paket->exist_ba == 'false' ? 'btn-default' : 'btn-success';
- ?>
- <a class="btn btn-xs <?= $btn_class ?>" href="<?php echo base_url('rup/' . $paket->id . '/mapping-paket'); ?>" <?= $disabled; ?>>Mapping Paket</a>
- </td>
- </tr>
- <//?php $number++ ?>
- <?php endforeach ?>
- <?php endif ?>
- </tbody>
- </table>
- <!--<center><//?php echo $paginate ?></center>-->
- </div>
- </form>
- </div>
- </div>
- </div>
- </section>
- <!-- MODAL CREATE -->
- <?php $this->load->view('silelang/rup/_modal'); ?>
- </div>
- <script>
- $("td > a").on("click", function() {
- var disabled = $(this).attr("disabled");
- if (disabled === 'disabled') {
- return false;
- }
- });
- $(document).ready(function() {
- $('#server').DataTable();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement