

<form id="" action="" method="POST" enctype="multipart/form-data" autocomplete="off">
  <br><br> 
    <div class="row">
    <div class="col-md-1"></div>
    <div class="col-md-10" style="background-image: url(../img/placeholders/inner-texture-bg.png); border-radius: 8px;">
      <div style='border-radius: 8px;border: 2px solid #7E9350;width:100%;margin-top:1%;margin-bottom:1%;'>
        <br/>
        <center>
           <b style="font-family: century gothic;font-size: 23px;"><i class="fa fa-info-circle"></i> New Material Info.</b>
        </center>
        <br/>      

        <div class="form-group row">                
            <label class="col-form-label col-2 col-lg-2 form-label text-lg-right">Item Name<span class="required" style="color:red">*</span></label>
            <div class="col-3 col-lg-3">
                <textarea class="form-control" placeholder="item name..." name="matname" id="matname" required></textarea>
            </div>

            <label class="col-form-label col-2 col-lg-2 form-label text-lg-right">Description</label>
            <div class="col-3 col-lg-3">
                <textarea class="form-control" placeholder="Description..." name="iDesc" id="iDesc"></textarea>
            </div>
        </div>
            
        <div class="form-group row">              
        <label class="col-form-label col-2 col-lg-2 form-label text-lg-right">Category<span class="required" style="color:red">*</span></label>
            <div class="col-3 col-lg-3">                  
                <select class="select2 form-control w-100" name="iCateg" id="iCateg" data-placeholder="-select type-" required>
                    <option></option>
                    <?php
                    $stmt = $db->query('SELECT *FROM tbl_ictgs WHERE ictg_sts=1 ORDER BY ctgi_name ASC');
                    try
                    {
                        while ($rrr = $stmt->fetch(PDO::FETCH_ASSOC)) {
                        ?>
                            <option value="<?php echo $rrr['ictg_id']; ?>"><?php echo $rrr['ctgi_name']; ?></option>
                        <?php
                        }
                        }
                        catch (PDOException $ex) {
                        //Something went wrong rollback!
                        echo $ex->getMessage();
                    }
                    ?>	
                </select>
            </div>

            <label class="col-form-label col-2 col-lg-2 form-label text-lg-right">Unit<span class="required" style="color:red">*</span></label>
            <div class="col-3 col-lg-3">                  
                <select class="select2 form-control w-100" name="iunit" id="iunit" data-placeholder="-select unit-" required>
                    <option></option>
                    <?php
                    $stmt = $db->query('SELECT *FROM tbl_units WHERE unit_status=1 ORDER BY unit_id ASC');
                    try
                    {
                        while ($rrr = $stmt->fetch(PDO::FETCH_ASSOC)) {
                        ?>
                            <option value="<?php echo $rrr['unit_id']; ?>"><?php echo $rrr['unit_name']; ?></option>
                        <?php
                        }
                        }
                        catch (PDOException $ex) {
                        //Something went wrong rollback!
                        echo $ex->getMessage();
                    }
                    ?>	
                </select>
            </div>
        </div>

        <hr>
        <center>
            <button type="reset" class="btn btn-default btn-sm" style="border-radius: 4px;">Reset</button>
            <button class="btn btn-primary btn-sm" name="btnMat" style="border-radius: 4px;" type="submit" id="">Submit</button>
        </center>
        <br>
    </div> <!--border -->
    </div>
  </div>
</form>