Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
4.5 kB
1
Indexable
Never
<!-- VIEW PEMINJAMAN WH VERIFIKASI ADMIN -->
<div class="col-xs-12">  
              <div class="box">
                <div class="box-header">
                  <h3 class="box-title">Verifikasi Purchase (PR)</h3>
                </div><!-- /.box-header -->
				
				<div class="box-body">
                
				<?php 
                  $attributes = array('class'=>'form-horizontal','role'=>'form');
                  echo form_open_multipart('karyawan/edit_peminjaman',$attributes); 
                    $kode_peminjaman = $rows['kd_pinjamn'];
                ?>
				
				<div class="col-xs-12">
				<table class="table table-bordered table-striped">
                    <thead>
                      <tr>
                        <th style='width:5%'>No</th>
                        <th style='width:30%'>Nama Item</th>
                        <th style='width:25%'>Deskripsi</th>
                        <th style='width:5%'>Jumlah</th>
                        <th style='width:5%'>Satuan</th>
                      </tr>
                    </thead>
                    
                    <tbody>
                  <?php 
                    $no = 1;
                    foreach ($record as $row){
                    echo "<tr><td>$no</td>
                              <td>$row[nama_item]</td>
                              <td>$row[keterangan_item]</td>
                              <td>$row[jumlah_pinjam]</td>
                              <td>$row[satuan_pinjam]</td>
                              <td>";
							if($row['status_item'] == "PJ"){	
							echo	"<a class='btn btn-primary btn-xs' title='Stock' href='".base_url()."administrator/verifikasi_peminjaman_item/$row[id_dpeminjaman]/Approve/$row[id_peminjaman]'><span class='glyphicon glyphicon-edit'></span>Approve</a>
									<a class='btn btn-warning btn-xs' title='PR' href='".base_url()."administrator/verifikasi_peminjaman_item/$row[id_dpeminjaman]/DiPinjam/$row[id_peminjaman]'><span class='glyphicon glyphicon-remove'></span>DiPinjam</a>";
							}else{
							echo "$row[status_item]";	
							}
							echo  "</td>
                          </tr>";
                      $no++;
                    }

                  ?>
                  </tbody>
                </table>
                </div>
				
				<div class="col-xs-12">  
				<table class='table table-condensed table-bordered'>
                  <tr><th width='140px' scope='row'>Kode Peminjaman</th>  <td><input type='text' class='form-control' value='<?php echo "$rows[kd_pinjam]"; ?>' name='a' readonly></td></tr>
                  <tr><th width='140px' scope='row'>Lokasi</th>  <td><input type='text' class='form-control' value='<?php echo "$rows[lokasi]"; ?>' name='b' readonly></td></tr>
                  <tr><th width='140px' scope='row'>No Projek</th>  <td><input type='text' class='form-control' value='<?php echo "$rows[no_projek]"; ?>' name='c' readonly></td></tr>
                  </table>
				</div>
                  <!-- <div class="col-xs-6">  
				<table class='table table-condensed table-bordered'>
                  <tbody>
                  <tr><th width='140px' scope='row'>Kode VIP</th>  <td><input type='text' class='form-control' value='<?php echo "$rows[no_projek]"; ?>' name='e' readonly></td></tr>
				  <tr><th width='140px' scope='row'>No Job</th>  <td><input type='text' class='form-control' value='<?php echo "$rows[no_job]"; ?>' name='f' readonly></td></tr>
				  <tr><th width='140px' scope='row'>Tanggal Dibutuhkan</th>  <td><input type='date' class='form-control' value='<?php echo "$rows[tgl_kebutuhan]"; ?>' name='g'readonly></td></tr> 
				  <tr><th width='140px' scope='row'>Keterangan PR</th>  <td><textarea class='form-control' name='h' style='height:80px' readonly><?php echo $rows['keterangan']?></textarea></td></tr>
                    
				  </tbody>
                  </table>
				</div> -->

				 <a class='btn btn-default btn-sm' href='<?php echo base_url(); ?>administrator/peminjaman_submit/<?php echo "$rows[id_peminjaman]"; ?>'>Submit to User</a>
               
				
				 <a class='btn btn-default btn-sm' href='<?php echo base_url(); ?>administrator/peminjaman_wh'>Kembali</a>
				 
				 
                </div>
			<!-- Pembatas box 12 dalam -->	
                         
			   </div>
			<!-- Pembatas box 12 pixel -->	
           
		   </div>
			<!-- Pembatas akhir dari template -->	
              </div>