Example #1
0
    ?>
</td>
			<td><?php 
    echo $row->ukuran;
    ?>
</td>
			<td><?php 
    echo $row->warna;
    ?>
</td>
			<td><?php 
    echo dateindo($row->tanggal_masuk, "table");
    ?>
</td>	
			<td><?php 
    echo dateindo($row->tanggal_expired, "time");
    ?>
</td>
			<td><?php 
    echo yesno($row->status, "Use", "Not Use");
    ?>
</td>
			<td>
				<a href="#modal-container-update" data-toggle="modal" id="<?php 
    echo $row->id_inventory;
    ?>
" class="btn btn-warning edit">
					<i class='fa fa-edit'></i>
				</a>
				<a href="#" class="btn btn-danger delete" id="<?php 
    echo $row->id_inventory;
Example #2
0
 public function search_item($isi)
 {
     $serial = $isi;
     $data = $this->Dinventory->bySerial($serial);
     foreach ($data->result() as $row) {
         $newData = array('nama_item' => $row->nama, 'tanggal_expired' => dateindo($row->tanggal_expired), 'tanggal_masuk' => dateindo($row->tanggal_masuk), 'durability' => $row->durability, 'idkomponen' => $row->idkomponen, 'foto' => '<img src=' . base_url("upload/{$row->foto}") . ' class="img img-responsive" width="100px" height="auto" />');
     }
     echo json_encode($newData);
 }
Example #3
0
?>
</td></tr>
		<tr><td>Ukuran</td><td><?php 
echo $item['ukuran'];
?>
</td></tr>
		<tr><td>Warna</td><td><?php 
echo $item['warna'];
?>
</td></tr>
		<tr><td>Tanggal Masuk</td><td><?php 
echo dateindo($item['tanggal_masuk']);
?>
</td></tr>
		<tr><td>Tanggal Expired</td><td><?php 
echo dateindo($item['tanggal_expired']);
?>
</td></tr>
		<tr><td>Status</td><td><?php 
echo yesno($item['status'], "Digunakan", "Tidak Digunakan");
?>
</td></tr>
		<tr><td>Durability</td><td><?php 
echo $item['durability'] - $item['usage_durability'];
?>
</td></tr>
		<tr><td>Tanggal Digunakan</td><td><?php 
echo dateindo($item['tanggal_digunakan']);
?>
</td></tr>
	</table>