Untitled

mail@pastecode.io avatar
unknown
plain_text
10 months ago
4.5 kB
2
Indexable
Never
//view_pembelian_detail
            <div class="col-xs-12">  
              <div class="box">
                <div class="box-header">
                  <h3 class="box-title">Detail Purchase (PR)</h3>
                </div><!-- /.box-header -->
				
				<div class="box-body">
                
				<?php 
                  $attributes = array('class'=>'form-horizontal','role'=>'form');
                  echo form_open_multipart('administrator/proses_pembelian_pur',$attributes); 
                    $kode_pembelian = $rows['kd_pr'];
                ?>
				
				<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:25%'>Dimesi</th>
                        <th style='width:5%'>Jumlah</th>
                        <th style='width:5%'>Satuan</th>
                        <th style='width:5%'>Status</th>
                      </tr>
                    </thead>
                    
                    <tbody>
                  <?php 
                    $no = 1;
                    foreach ($record as $row){
                    echo "<tr><td>$no</td>
                              <td>$row[nama_item]</td>
                              <td>$row[deskripsi_item]</td>
                              <td>$row[dimension_item]</td>
                              <td>$row[jumlah_item]</td>
                              <td>$row[satuan_item]</td>
                              <td>$row[status_item]</td>";
							echo  "</tr>";
                      $no++;
                    }

                  ?>
                  </tbody>
                </table>
                </div>
				
				<div class="col-xs-6">  
				<table class='table table-condensed table-bordered'>
                  <tr><th width='140px' scope='row'>Kode Pembelian</th>  <td><input type='text' class='form-control' value='<?php echo "$rows[kd_pr]"; ?>' name='a' readonly></td></tr>
                  <tr><th width='140px' scope='row'>Kategori</th>  <td><input type='text' class='form-control' value='<?php echo "$rows[kategori]"; ?>' name='b' readonly></td></tr>
                  <tr><th width='140px' scope='row'>Type</th>  <td><input type='text' class='form-control' value='<?php echo "$rows[type]"; ?>' name='c' readonly></td></tr>
                  <tr><th width='140px' scope='row'>Lokasi</th>  <td><input type='text' class='form-control' value='<?php echo "$rows[lokasi]"; ?>' name='d' 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>
          <tr>
    <th width='140px' scope='row'>File</th>
    <td>
        <?php
        if (!empty($rows['file'])) {
            $fileUrls = explode(';', $rows['file']);
            echo "<ul>";
            foreach ($fileUrls as $fileUrl) {
                echo "<li><a href='" . base_url() . "asset/foto_pr/$fileUrl' target='_blank'>$fileUrl</a></li>";
            }
            echo "</ul>";
        }
        ?>
    </td>
</tr>

          
				    
				  </tbody>
                  </table>
				 <input type='hidden' value='<?php echo "$rows[id_pembelian]"; ?>' name='idp'>
                               
				</div>
				<a class='btn btn-default btn-sm' href='<?php echo base_url(); ?>karyawan/pembelian'>Kembali</a>
				 
				 
                </div>
			<!-- Pembatas box 12 dalam -->	
                         
			   </div>
			<!-- Pembatas box 12 pixel -->	
           
		   </div>
			<!-- Pembatas akhir dari template -->	
              </div>