Advertisement
Irwanda

Untitled

Nov 14th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.33 KB | None | 0 0
  1. <!-- Content Wrapper. Contains page content -->
  2.  
  3. <div class="content-wrapper">
  4. <!-- Content Header (Page header) -->
  5. <section class="content-header">
  6. <div class="row">
  7. <ol class="breadcrumb">
  8. <li><a href="<?php echo base_url('rup'); ?>"><i class="fa fa-dashboard"></i> Home</a></li>
  9. <li>Daftar Paket</li>
  10. </ol>
  11. </div>
  12. </section>
  13.  
  14. <!-- Main content -->
  15. <section class="content" id="app">
  16.  
  17. <div class="row">
  18. <center>
  19. <h3><b>Daftar Paket</b></h3>
  20. </center>
  21. </div>
  22.  
  23. <div class="row">
  24. <div class="col-xs-12">
  25. <!-- <?php if ($this->session->role === 'KASATKER') : ?> -->
  26. <!-- <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>
  27. </div> -->
  28. <!-- <?php endif ?> -->
  29. </div>
  30.  
  31. <br><br>
  32.  
  33. <div class="col-xs-12">
  34. <?php if ($this->session->has_userdata('validation_errors')) : ?>
  35. <?php echo flash('validation_errors', 'danger'); ?>
  36. <?php endif ?>
  37. </div>
  38.  
  39. <div class="col-xs-12">
  40. <div class="panel panel-default" style="margin-top: 10px">
  41. <form action="<?php echo base_url('rup/search'); ?>" method="POST">
  42. <div class="table-responsive">
  43. <?php
  44. if (empty($listPaket)) { ?>
  45. <table class="table table-striped table-hover">
  46. <thead>
  47. <tr>
  48. <th>No</th>
  49. <th>Paket</th>
  50. <th>Pagu(Rp)</th>
  51. <th>Jenis Pengadaan</th>
  52. <th>Pemilihan</th>
  53. <th>Kode Satuan Kerja</th>
  54. <th>Lokasi</th>
  55. <th>ID</th>
  56. <th>Aksi</th>
  57. </tr>
  58. <!-- <tr>
  59. <th></th>
  60. <th><input type="text" name="nama" class="form-control input-sm" placeholder="Semua"></th>
  61. <th><input type="number" name="jumlah_pagu" class="form-control input-sm" placeholder="Semua"></th>
  62. <th>
  63. <select class="form-control input-sm" name="jenis_pengadaan">
  64. <option value="Semua">Semua</option>
  65. <option value="Barang">Barang</option>
  66. <option value="Pekerjaan Konstruksi">Pekerjaan Konstruksi</option>
  67. <option value="Jasa Konsultasi">Jasa Konsultasi</option>
  68. <option value="Jasa Lainnya">Jasa Lainnya</option>
  69. </select>
  70. </th>
  71. <th><input type="text" name="metode_pengadaan" class="form-control input-sm" placeholder="Semua"></th>
  72. <th><input type="number" name="stk_kode" class="form-control input-sm" placeholder="Semua"></th>
  73. <th><input type="text" name="lokasi" class="form-control input-sm" placeholder="Semua"></th>
  74. <th><input type="number" name="id" class="form-control input-sm" placeholder="Semua"></th>
  75. <th><button class="btn btn-default" type="submit">Cari</button></th>
  76. </tr> -->
  77. </thead>
  78. <?php } else { ?>
  79. <table class="table table-striped table-hover" id="server">
  80. <thead>
  81. <tr>
  82. <th>No</th>
  83. <th>Paket</th>
  84. <th>Pagu(Rp)</th>
  85. <th>Jenis Pengadaan</th>
  86. <th>Pemilihan</th>
  87. <th>Kode Satuan Kerja</th>
  88. <th>Lokasi</th>
  89. <th>ID</th>
  90. <th>Aksi</th>
  91. </tr>
  92. <!-- <tr>
  93. <th></th>
  94. <th><input type="text" name="nama" class="form-control input-sm" placeholder="Semua"></th>
  95. <th><input type="number" name="jumlah_pagu" class="form-control input-sm" placeholder="Semua"></th>
  96. <th>
  97. <select class="form-control input-sm" name="jenis_pengadaan">
  98. <option value="Semua">Semua</option>
  99. <option value="Barang">Barang</option>
  100. <option value="Pekerjaan Konstruksi">Pekerjaan Konstruksi</option>
  101. <option value="Jasa Konsultasi">Jasa Konsultasi</option>
  102. <option value="Jasa Lainnya">Jasa Lainnya</option>
  103. </select>
  104. </th>
  105. <th><input type="text" name="metode_pengadaan" class="form-control input-sm" placeholder="Semua"></th>
  106. <th><input type="number" name="stk_kode" class="form-control input-sm" placeholder="Semua"></th>
  107. <th><input type="text" name="lokasi" class="form-control input-sm" placeholder="Semua"></th>
  108. <th><input type="number" name="id" class="form-control input-sm" placeholder="Semua"></th>
  109. <th><button class="btn btn-default" type="submit">Cari</button></th>
  110. </tr> -->
  111. </thead>
  112. <?php } ?>
  113. <tbody>
  114. <?php if (empty($listPaket)) : ?>
  115. <tr>
  116. <td colspan="10" class="text-center">Belum Ada Data</td>
  117. </tr>
  118. <?php else : ?>
  119. <?php
  120. $no=1;
  121. foreach ($listPaket as $key => $paket) : ?>
  122. <tr>
  123. <!--<td align="center"><//?php echo $number + 1; ?></td>-->
  124. <td align="center"><?php echo $no++; ?></td>
  125. <td> <a href="<?php echo base_url('rup/' . $paket->id) ?>"><?php echo $paket->nama; ?></a> </td>
  126. <td> <?php echo format_money($paket->jumlah_pagu); ?> </td>
  127. <td> <?php echo $paket->jenis_pengadaan; ?> </td>
  128. <td> <?php echo $paket->metode_pengadaan; ?> </td>
  129. <td> <?php echo $paket->stk_kode; ?> </td>
  130. <td> <?php echo $paket->lokasi; ?> </td>
  131. <td width="120px"><?php echo $paket->id; ?>
  132. <!-- <input class="form-control input-sm" type="text" readonly value="<//?php echo $paket->id; ?>" onclick="this.focus();this.select()"> -->
  133. </td>
  134. <td>
  135. <?php
  136. $disabled = $paket->exist_ba == 'false' ? 'disabled' : '';
  137. $btn_class = $paket->exist_ba == 'false' ? 'btn-default' : 'btn-success';
  138. ?>
  139. <a class="btn btn-xs <?= $btn_class ?>" href="<?php echo base_url('rup/' . $paket->id . '/mapping-paket'); ?>" <?= $disabled; ?>>Mapping Paket</a>
  140. </td>
  141. </tr>
  142. <//?php $number++ ?>
  143. <?php endforeach ?>
  144. <?php endif ?>
  145. </tbody>
  146. </table>
  147. <!--<center><//?php echo $paginate ?></center>-->
  148. </div>
  149. </form>
  150. </div>
  151. </div>
  152. </div>
  153. </section>
  154.  
  155. <!-- MODAL CREATE -->
  156. <?php $this->load->view('silelang/rup/_modal'); ?>
  157. </div>
  158. <script>
  159. $("td > a").on("click", function() {
  160. var disabled = $(this).attr("disabled");
  161. if (disabled === 'disabled') {
  162. return false;
  163. }
  164. });
  165. $(document).ready(function() {
  166. $('#server').DataTable();
  167. });
  168. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement