        <!-- ============================================================== -->
        <!-- wrapper  -->
        <!-- ============================================================== -->
        <div class="dashboard-wrapper">
            <div class="container-fluid  dashboard-content">
                <!-- ============================================================== -->
                <!-- pageheader -->
                <!-- ============================================================== -->
                <div class="row">
                    <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                        <div class="page-header">
                            <h2 class="pageheader-title">Master Barang </h2>
                            <div class="page-breadcrumb">
                                <nav aria-label="breadcrumb">
                                    <ol class="breadcrumb">
                                        <li class="breadcrumb-item"><a href="index.php" class="breadcrumb-link"><?php echo namahari_ID(date('Y-m-d')).", ".date('d-m-Y');?>, Dashboard</a></li>
                                        <li class="breadcrumb-item">Master</a></li>
                                        <li class="breadcrumb-item"><a href="?menu=master-user" class="breadcrumb-link">Barang</a></li>
                                        <li class="breadcrumb-item active" aria-current="page"><a href="?menu=edit-barang&id=<?php echo $_GET['id'];?>" class="breadcrumb-link">Edit Barang</a></li>
                                    </ol>
                                </nav>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- ============================================================== -->
                <!-- end pageheader -->
                <!-- ============================================================== -->
             
                <div class="row">
                <?php 
                $strKode=""; 
                $strDeskripsi=""; 
                $strUnit=""; 
                $strHidden=""; 
                $MySQLi = new MySQLi($strDBHostName, $strDBUsername, $strDBPassword, $strDBName);

                $query="SELECT  ID, 
                                strKdItem, 
                                strDeskripsi, 
                                strUnit 
                        FROM item 
                        WHERE   stsAktif>0 AND 
                                ID='".$_GET['id']."'
                        "; 
                $result=$MySQLi->query($query);
                if($result->num_rows == 1)
                {
                    $row=$result->fetch_array();
                    $strKode=$row['strKdItem'];
                    $strDeskripsi=$row['strDeskripsi'];
                    $strUnit=$row['strUnit'];
                    $strHidden="<input type='hidden' name='ID' value='".$row['ID']."'>";
                }
                ?>
                    <!-- ============================================================== -->
                    <!-- basic form -->
                    <!-- ============================================================== -->
                    <div class="col-xl-6 col-lg-6 col-md-12 col-sm-12 col-12">
                        <div class="card">
                            <h5 class="card-header">Edit User</h5>
                            <div class="card-body">
                                <form id="basicform" data-parsley-validate="" action="master/barang/simpan.edit.barang.php" method="post" enctype="multipart/form-data">
                                    <?php echo $strHidden; ?>
                                    <div class="form-group">
                                        <label for="inputKode">Kode</label>
                                        <input id="inputKode" type="text" name="strKdItem" data-parsley-trigger="change" required="" placeholder="Masukan Kode" autocomplete="off" class="form-control" value="<?php echo $strKode;?>">
                                    </div>
                                    <div class="form-group">
                                        <label for="inputDeskripsi">Deskripsi</label>
                                        <input id="inputDeskripsi" type="text" name="strDeskripsi" data-parsley-trigger="change" required="" placeholder="Masukan nama barang" autocomplete="off" class="form-control" value="<?php echo $strDeskripsi;?>">
                                    </div>
                                    <div class="form-group">
                                        <label for="inputUnit">Unit</label>
                                        <input id="inputUnit" type="text" name="strUnit" data-parsley-trigger="change" required="" placeholder="Masukan Unit barang" autocomplete="off" class="form-control" value="<?php echo $strUnit;?>">
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-6 pl-0">
                                            <p class="text-right">
                                                <button type="submit" name="simpan" class="btn btn-space btn-primary">Simpan</button>
                                                <a href="?menu=daftar-user" class="btn btn-space btn-secondary">Cancel</a>
                                            </p>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <!-- ============================================================== -->
                    <!-- end basic form -->
                    <!-- ============================================================== -->
                </div>
            </div>
            <!-- ============================================================== -->
            <!-- footer -->
            <!-- ============================================================== -->
            <div class="footer">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
                        Copyright © 2024 TPC-PACK, Developed By <a href="mailto: jockie@netportal.my.id">JC Comp</a>.
                        </div>
                        <!--<div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
                            <div class="text-md-right footer-links d-none d-sm-block">
                                <a href="javascript: void(0);">About</a>
                                <a href="javascript: void(0);">Support</a>
                                <a href="javascript: void(0);">Contact Us</a>
                            </div>
                        </div>-->
                    </div>
                </div>
            </div>
            <!-- ============================================================== -->
            <!-- end footer -->
            <!-- ============================================================== -->
        </div>
