<?php include ('header1f.php');?>
<?php 
ob_start();   
session_start();
include ('connection.php') ;

  if (!isset($_SESSION['is_logged_in'])) {
    header("Location:login.php");
    die();
    }
	date_default_timezone_set('Asia/Calcutta');
$today = date("d/m/Y");
$today3 = date("Y-m-d");
$today1 = date("d/m");

?> 
<div class="content-page">
    <div class="content">
      <div class="container">
	  	  
        
        <div class="row">
          <div class="col-md-6">
            <div class="panel panel-primary">
              <div class="panel-heading">
                <h3 class="panel-title">Add Ingredients</h3>
              </div>	
		
			
              <div class="panel-body">
                                    <div class="row"> 

               <form name="frm_add_category"  id="frm_add_category" method="post"action="insert_ingredients.php" >			

                        <div class="box-body">
						
							<div class="row">
							
							
							<div class="col-sm-12 col-xs-12">
                                            <div class="m-t-20">
							   <div class="form-group">
                                <label for="first_name" class="control-label">Ingredients</label>
               					 <input class="form-control" type="text" name="ingredients" placeholder="Ingredients" required/>
                            </div>
</div></div>
							
							<div class="col-sm-12 col-xs-12">
                                            <div class="m-t-20">
							   <div class="form-group">
                                <label for="middle_name" class="control-label">Unit</label>
                				<select  class="form-control" data-style="py-0" name="unit"  required>
<option value="" selected="selected">Select Unit</option>
<?php 
$querynp = "select * from unit_master where status='1'";
$resultmp = mysqli_query($conn,$querynp);
while($row=mysqli_fetch_array($resultmp))
{
$unit = $row['unit'];
?>
<option value="<?php echo $unit ?>"><?php echo $unit ?> </option>
<?php 	}?>
</select>

                            </div>
</div></div>
                     
					 <div class="col-sm-12 col-xs-12">
                                            <div class="m-t-20">       <div class="form-group">

                               <label for="last_name" class="control-label">Price</label>
                	<input class="form-control" type="text" name="price" placeholder="Price"/>

                            </div></div></div>
							
								 <div class="col-sm-12 col-xs-12">
                                            <div class="m-t-20">       <div class="form-group">

                               <label for="last_name" class="control-label">Stock</label>
                	<input class="form-control" type="text" name="stock" placeholder="Stock" required />

                            </div></div></div>
							
							
							</div>
							
							
							
							
                            
						
							
							
                            <div class="col-sm-12 col-xs-12">
                                           
                                            <div class="m-t-20">
                                                    <div class="form-group">
                                                        <div>
                                                            <button type="submit" class="btn btn-primary waves-effect waves-light" style="float:right"> Submit </button>
							
															
                                                           
                                                        </div>
                                                    </div>
                                               
                                            </div>
                                        </div>

</div>

                    </form></div></div>
									
                                        
												
													


													
                                                    
                                        
                              </div>
            </div>
          </div>
      </div>
    </div>
   	<?php include 'footer1a.php';?>
