<?php $subNav = array("Basic Data ; barang.php ; #509601;", "Pelengkap ; pelengkap.php ; #509601;", "Kemasan ; kemasan.php ; #509601;"); set_include_path("../"); include_once "inc/essentials.php"; include_once "inc/functions.php"; include_once "models/masterdata.php"; include_once "pages/message.php"; $golongan = golongan_load_data(); $satuan_kekuatan = satuan_load_data('1'); $kemasan = satuan_load_data('0'); $sediaan = sediaan_load_data(); $admr = admr_load_data(); $perundangan = perundangan_load_data(); ?> <script type="text/javascript"> $(function() { $(document).tooltip(); load_data_kemasan(); }); function kemasan_add(i) { var str = '<tr class="mother"><td width=15%>Barcode:</td><td width=70%><?php echo form_input('barcode', NULL, 'id=barcode size=10'); ?> '+ 'Kemasan: <select name=kemasan[] style="min-width: 100px;"><option value="">Pilih ...</option><?php foreach ($kemasan as $data) { echo '<option value="' . $data->id . '">' . $data->nama . '</option>'; }
<?php include_once '../models/masterdata.php'; include_once '../inc/functions.php'; $barang_packing = kemasan_load_data($_GET['id']); $kemasan = satuan_load_data(); foreach ($barang_packing as $key => $rows) { ?> <tr class="mother" id="mother<?php echo $key; ?> "><td width=15%><input type=radio name=default <?php echo $rows->default_kemasan === '1' ? 'checked' : NULL; ?> value="<?php echo $rows->id; ?> " title="Kemasan jual default" /> Barcode:</td><td width=70%><?php echo form_hidden('id_kemasan' . $key, $rows->id, 'id=id_kemasan' . $key); echo form_input('barcode' . $key, $rows->barcode, 'id=barcode' . $key . ' class=barcode size=10'); ?> Kemasan: <select name=kemasan<?php echo $key; ?> onchange="isi_satuan_terkecil(<?php echo $key; ?> );" id="kemasan<?php echo $key; ?>