<?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 repair where RepairId='$hidden'";
$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 EFD | VFD Details</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 EFD</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='RepairStatusUpdateAction.php' method='POST'>
            <div class='form-group'>
              <label for='inputName'>Customer Name</label>
              <input type='text' name='' id='inputName' class='form-control' value='".$row['CustomerName']."'  />
            </div>
            <div class='form-group'>
              <label for='inputName'>Problem/Fault</label>
              <input type='text' name='' id='inputName' class='form-control' value='".$row['Problem']."' />
            </div>
			
			             <div class='form-group'>
              <label for='inputName'>Submition Date (YYYY-MM-DD)</label>
              <input type='text' name='' id='inputName' class='form-control' value='".$row['SubmissionDate']."'  />
            </div>
            <div class='form-group'>
              <label for='inputName'>Discharge Date (YYYY-MM-DD)</label>
              <input type='text' name='' id='inputName' class='form-control' value='".$row['DischargeDate']."'  />
            </div>
			            <div class='form-group'>
              <label for='inputName'>Business</label>
              <input type='text' name='' id='inputName' class='form-control' value='".$row['RepairStatus']."' disabled/>
            </div>
			
			            <div class='form-group'>
              <label for='inputName'>Tax Office</label>
              <input type='text' name='' id='inputName' class='form-control' value='".$row['ServiceCharge']."' disabled/>
            </div>
            <div class='form-group'>
              <label for='inputName'>Purchase Date</label>
              <input type='text' name='' id='inputName' class='form-control' value='".$row['Model']."' disabled/>
            </div>
			
			 <div class='form-group'>
              <label for='inputName'>Purchase Date</label>
              <input type='text' name='' id='inputName' class='form-control' value='".$row['Description']."' disabled/>
            </div>
			
			 <div class='form-group'>
              <label for='inputName'>Purchase Date</label>
              <input type='text' name='' id='inputName' class='form-control' value='".$row['SerialNumber']."' disabled/>
            </div>
			
			<div class='form-group'>
              <label for='inputName'>Purchase Date</label>
              <input type='text' name='' id='inputName' class='form-control' value='".$row['TagNumber']."' disabled/>
            </div>
			
			<div class='form-group'>
              <label for='inputName'>Repair Status</label>
              <input type='text' name='RepairStatus' id='inputName' class='form-control' value='".$row['RepairStatus']."' />
            </div> CHOOSE STATUS FROM LIST <br/>
			UnderDiagonsis <br/>
			Fixed  <br/>
			Discharge
			
			
			
            <div class='form-group'>
	
	
			<input type='submit' class='btn btn-info' value='Save Changes' >
			<input type='hidden' name='hidden' value='".$row['RepairId']."'>
			 </form>
			 <form action='EfdStausList.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>

