<?php include("side_nav.php"); ?>
<?php include("top_nav.php"); ?>
<?php
$uid = $_GET['uid'];

$sql = mysqli_query($con, "SELECT * FROM account WHERE account_id = $uid");
$row = mysqli_fetch_array($sql);

?>

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
              <div class="title_left">
                <h3>Customer Information</h3>
              </div>
             </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2><small></small></h2>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                      </li>
                      <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                        <ul class="dropdown-menu" role="menu">
                          <li><a href="#">Settings 1</a>
                          </li>
                          <li><a href="#">Settings 2</a>
                          </li>
                        </ul>
                      </li>
                      <li><a class="close-link"><i class="fa fa-close"></i></a>
                      </li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <br />
                    <form action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>" method="POST" enctype="multipart/form-data" class="form-horizontal form-label-left">

					  <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Customer Name <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" name="product_name" value="<?php echo $row['first_name'] . ' '  . $row['last_name'] ?>" class="form-control col-md-7 col-xs-12" disabled>
                        </div>
                      </div>
					  
					  <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="Price">Email <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" name="price" value="<?php echo $row['email'] ?>" class="form-control col-md-7 col-xs-12" disabled>
                        </div>
                      </div>
					  
					  <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="quantity">Phone <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" name="quantity" value="<?php echo $row['phone'] ?>" class="form-control col-md-7 col-xs-12" disabled>
                        </div>
                      </div>
					  
					  <div class="form-group">
					   <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Shipping Address</label>
					    <div class="col-md-6 col-sm-6 col-xs-12">
					        <textarea name="s_address" class="form-control col-md-7 col-xs-12" disabled><?php echo $row['s_address'] ?></textarea>
					     </div>
					  </div>
					  
					  <div class="form-group">
					   <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Contact Address</label>
					    <div class="col-md-6 col-sm-6 col-xs-12">
					        <textarea name="c_address" class="form-control col-md-7 col-xs-12" disabled><?php echo $row['c_address'] ?></textarea>
					     </div>
					  </div>
					  
					</form>
                  </div>
                </div>
              </div>
            </div>

  <?php include("footer.php"); ?>        
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.3/js/froala_editor.pkgd.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/froala-editor@3.0.4/js/froala_editor.pkgd.min.js"></script>  

		