<!-- Modal -->
<link rel="stylesheet" href="css/themes/redmond/jquery-ui-1.10.3.custom.css" />
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.3/css/bootstrap-select.min.css" />
<div class="container">
    <div class="modal fade" id="myModal_searchitem" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog modal-dialog1" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">Add New Item</h4>
                </div>
                <div class="modal-body">


                    <div class="modal-body" >

                        <div id="msg_box_item"  class="span12 text-center"  ></div>
               
                     <!--<br><br>-->
                    <div class="form-group row" >
                           
                           <div class="col-lg-12">
                              <label class="col-form-label" style="margin-bottom: -8.5px">Name </label>
                              <input class="form-control" id="item_name" name="item_name" type="text" placeholder="Name" oninput="this.value = this.value.toUpperCase()">
                           </div>
                            <div class="col-lg-12">
                              <label class="col-form-label" style="margin-bottom: -8.5px">Brand</label>
                              <div class="form-group m-0" >
                  <select  class="form-control"  id="item_brand" name="item_brand" >
                     <option value="">Select  Brand</option>
                     <?php
                        $sql = "select * from brand_mas where act ='1' order by barnd_name ";
                        foreach ($conn->query($sql) as $row) {
                          echo "<option value=\"" . $row["barnd_name"] . "\">" . $row["barnd_name"] . "</option>";
                        }
                        ?>
                  </select>
               </div>
                              
                           </div>
                            <div class="col-lg-12">
                              <label class="col-form-label" style="margin-bottom: -8.5px">Serial No/Part No</label>
                              <input class="form-control"   name="item_partno" id="item_partno" type="text" placeholder="Serial No/Part No" onkeyup="find_item();" onchange="find_item();">
                           </div>
                            <div class="col-lg-12">
                              <label class="col-form-label" style="margin-bottom: -8.5px">Cost</label>
                              <input class="form-control"   name="item_cost" id="item_cost" type="number" placeholder="Cost" onkeyup="find_item();" onchange="find_item();">
                           </div>
                            <div class="col-lg-12">
                              <label class="col-form-label" style="margin-bottom: -8.5px">Selling</label>
                              <input class="form-control"   name="item_selling" id="item_selling" type="number" placeholder="Selling" onkeyup="find_item();" onchange="find_item();">
                           </div>
                           
                        
                          
                        
                      

                      </div>
                        
                        


                    </div>
                    
                </div>

                 <div class="modal-footer" >
                          <a type="button"  id="show_save" class="btn btn-success" onclick="item_save()">Save</a> 
                          <button type="button" class="btn btn-light" data-dismiss="modal">Cancel</button>
                        </div>
            </div>
        </div>
    </div>
</div>


<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.3/js/bootstrap-select.min.js"></script>
