Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.6 kB
3
Indexable
Never
            <!-- VIEW PEMINJAMAN WH ADMIN -->
            <div class="col-xs-12">  
              <div class="box">
                <div class="box-header">
                  <h3 class="box-title">Data Transaksi Peminjaman (PJ)</h3>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <table id="example1" class="table table-bordered table-striped">
                    <thead>
                      <tr>
                        <th style='width:40px'>No</th>
                        <th>Kode PJ</th>
                        <th>No Projek</th>
                        <th>Lokasi</th>
                        <th>Tanggal</th>
                        <th>Jam</th>
                        <th style='width:120px'>Action</th>
                      </tr>
                    </thead>
                    <tbody>
                  <?php 
                    $no = 1;
                    foreach ($record as $row){
                    //$total = $this->db->query("SELECT sum(a.harga_pesan*a.jumlah_pesan) as total FROM `rb_pembelian_detail` a where a.id_pembelian='$row[id_pembelian]'")->row_array();
                    echo "<tr><td>$no</td>
                              <td>$row[kd_pinjam]</td>
                              <td>$row[no_projek]</td>
                              <td>$row[lokasi]</td>
                              <td>$row[tgl_pinjam]</td>
                              <td>$row[jam_pinjam]</td>
                              <td><center>
                                <a class='btn btn-success btn-xs' title='Detail Data' href='".base_url()."administrator/detail_peminjaman/$row[id_peminjaman]'><span class='glyphicon glyphicon-search'></span></a>
                                ";
							if($row['status_pinjam'] == 'Submit'){	
							echo	"<a class='btn btn-warning btn-xs' title='Verifikasi' href='".base_url()."administrator/verifikasi_peminjaman/$row[id_peminjaman]'><span class='glyphicon glyphicon-edit'></span></a>
							";
							}
							if($row['status_pinjam'] == 'Matikan'){	
							echo	"<a class='btn btn-primary btn-xs' title='Cetak' target='blank' href='".base_url()."administrator/pembelian_cetak/$row[id_pembelian]'><span class='glyphicon glyphicon-print'></span></a>";
							}
							
							echo  "</center></td>
                          </tr>";
                      $no++;
                    }
                  ?>
                  </tbody>
                </table>
              </div>
              </div>
              </div>