<?php
  include('session.php');
?>
<?php
include"header.php";
?>

  <!-- Navbar -->
<?php
include"nav_style.php";
?>
  <!-- /.navbar -->
  
    <!-- /.aside start -->
	<?php
include"aside_style.php";
?>
	  <!-- /.aside end --> 
 
 
 
 <?php
			  include"config.php";
//$hidden=$_POST['hidden'];

$sql="select * from sell where sell_id='73'";
$result=mysqli_query($conn,$sql);

if(mysqli_num_rows($result)>0) 
{
	$row=mysqli_fetch_assoc($result);
	
	echo" 
 <div class='content-wrapper'>
    <!-- Content Header (Page header) -->
    <section class='content-header'>
      <div class='container-fluid'>
        <div class='row mb-2'>
          <div class='col-sm-6'>
            <h1>Update Product</h1>
          </div>
          <div class='col-sm-6'>
            <ol class='breadcrumb float-sm-right'>
              <li class='breadcrumb-item'><a href='#'>Home</a></li>
              <li class='breadcrumb-item active'>Update Product</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class='content'>

      <!-- Default box -->
      <div class='card'>
        <div class='card-body row'>
          <div class='col-5 text-center d-flex align-items-center justify-content-center'>
            <div class=''>
              <h2>Product<strong>Photo</strong></h2>
              <p class='lead mb-5'>Is not available <br>
                
              </p>
            </div>
          </div>
          <div class='col-7'>
		  <form action='product_update_action.php' method='POST'>
            <div class='form-group'>
              <label for='inputName'>Product Name</label>
              <input type='text' name='product_name' id='inputName' class='form-control' value='".$row['product_name']."' />
            </div>
            <div class='form-group'>
              <label for='inputName'>Purchase Price</label>
              <input type='number' name='purchase_price' id='inputName' class='form-control' value='".$row['customer_name']."' />
            </div>
			
			 <div class='form-group'>
              <label for='inputName'>Selling Price</label>
              <input type='number' name='product_price' id='inputName' class='form-control' value='".$row['customer_tin']."' />
            </div>
			
			 <div class='form-group'>
              <label for='inputName'>SKU</label>
              <input type='number' name='sku' id='inputName' class='form-control' value='".$row['customer_address']."' />
            </div>
			
			 <div class='form-group'>
              <label for='inputName'>Product Size</label>
              <input type='number' name='product_size' id='inputName' class='form-control' value='".$row['customer_tel']."'/>
            </div>
			
            <div class='form-group'>
              <label for='inputSubject'>Subject</label>
              <input type='text' name='' id='inputSubject' class='form-control' />
            </div>
			
			
			 <div class='form-group'>
              <label for='inputSubject'>Category</label>
              <select type='text' name='category' id='inputSubject' class='form-control' />
			   <option selected>UIN APPLIED</option>
			    <option >READY</option>
				 <option >ACTIVATED</option>
				  <option >SHIPPED</option>
			  
				
			  </select>
            </div>
			
			
			
            <div class='form-group'>
              <label for='inputMessage'>Description</label>
              <textarea id='inputMessage' class='form-control' rows='4'></textarea>
            </div>
            <div class='form-group'>
			 <input type='submit' class='btn btn-primary' value='Save Changes'>
			 <input type='hidden' name='hidden' value='".$row['product_id']."'>
			 </form>
			 <form action='product_list.php'> <input type='submit' class='btn btn-danger' value='Cancel'> </form>
             
			  
            </div>

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

    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
";
	}
	?>
   <?php
include"footer.php";
?> 
  
<!-- SweetAlert2 -->
<script src="plugins/sweetalert2/sweetalert2.min.js"></script>
<!-- Toastr -->

<script>
  $(function () {
    $("#example1").DataTable({
      "responsive": true, "lengthChange": false, "autoWidth": false,
      "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
    }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');
    $('#example2').DataTable({
      "paging": true,
      "lengthChange": false,
      "searching": false,
      "ordering": true,
      "info": true,
      "autoWidth": false,
      "responsive": true,
    });
  });
</script>

 <?php
include"script_style.php";
?> 


</body>
</html>

