$opt = gpost('opt'); $cid = gpost('cid', 0); $fmod = 'katalog'; $xtable = new xtable($fmod, 'Barang'); $lok = gpost('lokasi'); $grup = gpost('grup'); hiddenval('lokasi', $lok); hiddenval('grup', $grup); if ($opt == 'af' || $opt == 'uf') { require_once VWDIR . 'katalog_form.php'; } else { // Query $db = new xdb("sar_katalog", "", "grup='{$grup}'"); $t = $xtable->use_db($db, $xtable->pageorder_sql('kode', 'nama')); $xtable->btnbar_f(iBtn('Inventory', 'bi_arrow', 'title="Kembali ke inventaris" onclick="katalog_back()"')); hiddenval('opf', 'kat'); ?> <div class="tbltopmbar" style="float:left;margin-top:10px"> <table class="stable" cellspacing="0" cellpadding="0" width="100%"> <tr height="30px"><td colspan="2" align="center" style="font-size:15px">Grup Barang <b><?php echo grup_name($grup); ?> </b></td></tr> <tr height="24px"><td width="100px">Lokasi:</td><td><?php echo lokasi_name($lok); ?> </td></tr> <tr height="24px"><td width="100px">Total aset:</td><td><?php echo fRp(grup_aset($grup)); ?>
$lok = gpost('lokasi'); $grup = gpost('grup'); $kat = $cid; hiddenval('lokasi', $lok); hiddenval('grup', $grup); hiddenval('katalog', $kat); if ($opt == 'af' || $opt == 'uf') { require_once VWDIR . 'katalog_form.php'; } else { // Katalog Query $tk = mysql_query("SELECT * FROM sar_katalog WHERE replid='{$cid}'"); $rk = mysql_fetch_array($tk); // Query //$sql="SELECT * FROM sar_barang WHERE katalog='$cid'"; $t = $xtable->use_db(new xdb("sar_barang", "", "katalog='{$cid}'"), $xtable->pageorder_sql('kode', 'barkode', 'kondisi')); $xtable->btnbar_f(iBtn('Grup barang', 'bi_arrow', 'title="Kembali ke grup barang" onclick="katalog_unit_back()"')); hiddenval('opf', 'uni'); hiddenval('kondisi_1', mysql_num_rows(mysql_query("SELECT replid FROM sar_barang WHERE katalog='{$cid}' AND kondisi='1'"))); hiddenval('kondisi_2', mysql_num_rows(mysql_query("SELECT replid FROM sar_barang WHERE katalog='{$cid}' AND kondisi='2'"))); hiddenval('kondisi_3', mysql_num_rows(mysql_query("SELECT replid FROM sar_barang WHERE katalog='{$cid}' AND kondisi='3'"))); hiddenval('kondisi_4', mysql_num_rows(mysql_query("SELECT replid FROM sar_barang WHERE katalog='{$cid}' AND kondisi='4'"))); ?> <div class="tbltopmbar" style="float:left;margin-top:10px;margin-bottom:10px"> <table class="stable" cellspacing="0" cellpadding="0" width="100%"><tr valign="top"> <td width="400px"> <table class="stable" cellspacing="0" cellpadding="0"> <tr height="24px"><td colspan="2"><b>Informasi Barang :</b></td></tr> <tr height="24px"><td width="140px">Nama barang:</td><td><?php echo $rk['nama']; ?> </td></tr>
$lok = gpost('lokasi'); $grup = gpost('grup'); $kat = $cid; hiddenval('lokasi', $lok); hiddenval('grup', $grup); hiddenval('katalog', $kat); if ($opt == 'af' || $opt == 'uf') { require_once VWDIR . 'katalog_form.php'; } else { // Katalog Query $tk = mysql_query("SELECT * FROM sar_katalog WHERE replid='{$cid}'"); $rk = mysql_fetch_array($tk); // Query //$sql="SELECT * FROM sar_barang WHERE katalog='$cid'"; $t = $xtable->use_db(new xdb("sar_barang", "", "katalog='{$cid}'"), $xtable->pageorder_sql('kode', 'barkode', 'kondisi')); $xtable->btnbar_f(iBtn('Grup barang', 'bi_arrow', 'title="Kembali ke grup barang" onclick="katalog_unit_back()"'), iBtn('Edit informasi barang', 'bi_edit', 'onclick="katalog_form(\'uf\',\'' . $rk['replid'] . '\')"'), 'add'); notifbox(); hiddenval('opf', 'uni'); hiddenval('kondisi_1', mysql_num_rows(mysql_query("SELECT replid FROM sar_barang WHERE katalog='{$cid}' AND kondisi='1'"))); hiddenval('kondisi_2', mysql_num_rows(mysql_query("SELECT replid FROM sar_barang WHERE katalog='{$cid}' AND kondisi='2'"))); hiddenval('kondisi_3', mysql_num_rows(mysql_query("SELECT replid FROM sar_barang WHERE katalog='{$cid}' AND kondisi='3'"))); hiddenval('kondisi_4', mysql_num_rows(mysql_query("SELECT replid FROM sar_barang WHERE katalog='{$cid}' AND kondisi='4'"))); ?> <div class="tbltopmbar" style="float:left;margin-top:10px;margin-bottom:10px"> <table class="stable" cellspacing="0" cellpadding="0" width="100%"><tr valign="top"> <td width="400px"> <table class="stable" cellspacing="0" cellpadding="0"> <tr height="24px"><td colspan="2"><b>Informasi Barang :</b></td></tr> <tr height="24px"><td width="140px">Nama barang:</td><td><?php echo $rk['nama']; ?>