<?php 

require_once("config/configDB.php"); 
require "userPermission.php";
require "spareMasterFetchData.php";


?>

<!DOCTYPE html>
<html>
<head>
<?php 
      require 'meta.php'; 
      require 'header.php'; 
?>
</head>
<body>
    <?php require 'menu.php' ?>
<div class="container-fluid">
<h2 class="text-center">Product Master Details</h2><br>
    <form class="form-horizontal" action="spareMasterInsert.php" method="post" id="spareMasterForm">

    <div class="form-group">
      <label class="control-label col-sm-4" for="email">Product Code</label>
      <div class="col-sm-4">
        <input type="text" class="form-control input-lg" placeholder="Enter Item Code" name="productcode" required="" value="PR001">
      </div>
      <label class="label-command col-sm-4" for="email">( Example : PRD0001)</label>
    </div>
	
    <div class="form-group">        
        <label class="control-label col-sm-4">Product Name</label>
        <div class="col-sm-4">
        <input type="text" class="form-control input-lg" placeholder="Enter Product Name" name="sparename" autocomplete="off" required value="40mm">
        </div>
    </div>
    <div class="form-group">        
        <label class="control-label col-sm-4">Rate</label>
        <div class="col-sm-4">
        <input type="text" class="form-control input-lg"  name="sparetype" autocomplete="off" value="1000">
        </div>
    </div>
    <div class="form-group">        
        <label class="control-label col-sm-4">GST %</label>
        <div class="col-sm-4">
        <input type="text" class="form-control input-lg"  name="sparemodel" autocomplete="off" value="18">
        </div>
    </div>
     
	 <div class="form-group">        
        <label class="control-label col-sm-4">HSNCode</label>
        <div class="col-sm-4">
        <input type="text" class="form-control input-lg"  name="sparemodel" autocomplete="off" value="2344">
        </div>
    </div>
     
	 <div class="form-group">        
        <label class="control-label col-sm-4">Description</label>
        <div class="col-sm-4">
        <input type="text" class="form-control input-lg"  name="sparemodel" autocomplete="off" value="Material1">
        </div>
    </div>
     
	 
    <div class="form-group">        
      <div class="col-sm-12 text-center">
        <button type="submit" class="btn btn-default btn-lg">Save</button>
      </div>
    </div>

  </form>   
</div>
<?php require 'footer.php' ?>
<script type="text/javascript">var base_url = "<?= $base_url ?>";</script>
<script type="text/javascript" src="spareMasterScript.js"></script>


</body>
</html>