<?php include('site-header.php'); ?>
  <!-- - - - - - - - - - - - - -->
  <!-- start of SIDEBAR        -->
  <!-- - - - - - - - - - - - - -->
  <?php include('left-nevigation.php'); ?>
  <!-- - - - - - - - - - - - - -->
  <!-- end of SIDEBAR          -->
  <!-- - - - - - - - - - - - - -->
  <main id="playground">
<?php include('site-top-header.php'); ?>
<?php 
if(isset($_REQUEST['Updt']))
{
          $admin_mobile = $_REQUEST['admin_mobile'];
          $contact_header=$_REQUEST['contact_header'];
          $email_header=$_REQUEST['email_header'];
          $admin_phone_no=$_REQUEST['admin_phone_no']; 
          $footer_phone=$_REQUEST['footer_phone']; 
          $header_phone=$_REQUEST['header_phone'];
          $admin_email=$_REQUEST['admin_email'];
          $header_email=$_REQUEST['header_email'];
          $footer_email=$_REQUEST['footer_email'];
          $admin_alt_mobile = $_REQUEST['admin_alt_mobile'];
          $ac_bank = $_REQUEST['ac_bank'];
          $ac_no = $_REQUEST['ac_no'];
          $ac_ifsc = $_REQUEST['ac_ifsc'];
          $admin_add=addslashes(trim($_REQUEST['admin_add']));
          $footer_add=addslashes(trim($_REQUEST['footer_add']));
            
            $sqlUp="update tbl_admin set
            admin_mobile = '$admin_mobile',
            admin_phone_no='$admin_phone_no',
            admin_footer_phone='$footer_phone',
            admin_h_phone='$header_phone',
            admin_email='$admin_email',
            admin_h_email='$header_email',
            admin_footer_email='$footer_email',
            admin_add='$admin_add',
            ac_bank='$ac_bank',
            ac_no='$ac_no',
            ac_ifsc='$ac_ifsc',
            admin_footer_add='$footer_add'
            where id='1'";

if(mysqli_query($link,$sqlUp))
        {
           $img = "<p style='color:green;'>update successfully!!!!!</p>";
        }
}
?>
<?php
$sql="select * from tbl_admin where id='1'";
$data=mysqli_query($link,$sql);
$result=mysqli_fetch_array($data);
?>
 <div class="container-fluid textsss">
    <section id="page-title" class="row">
      <div class="col-md-8">
        <h1>Contact Us</h1>
        <p class="lead">Update your Contact below</strong>.</p>
        <?=$img;?>
      </div>
      <div class="col-md-4">
      </div>
    </section>
    <div class="col-md-12" style=" text-align: center;">
      
      <div class="col-md-4">
        <a href="update-Contact-Banner.php" class="btn btn-primary">Contact Banner </a>
      </div>
      <div class="col-md-4"></div>
      <div class="col-md-4">
        <a href="update-Enquiry-Banner.php" class="btn btn-primary">Enquiry Banner </a>
      </div>
    </div>
    <!-- / PAGE TITLE -->
    <div class="container-fluid ">
      <div class="row">
        <div class="col-md-6">
          <div class="panel-body">
            <form method="post">             
               <div class="form-group">
                <label for="">Contact Number(Top Header):</label>
                <input type="text" class="form-control" value="<?php echo $result['admin_h_phone']; ?>" name="header_phone" placeholder="Enter Your Contact Number..">
              </div>
              <div class="form-group">
                <label for="">Address:</label>
                <input type="text" class="form-control" value="<?php echo htmlspecialchars($result['admin_add']); ?>" name="admin_add"  placeholder="Enter Your Address">
              </div>
              <div class="form-group">
                <label for="">Phone No:</label>
                <input type="text" class="form-control" value="<?php echo $result['admin_phone_no']; ?>" name="admin_phone_no"  placeholder="Enter Your Phone No.">
              </div>
              <div class="form-group">
                <label for="">E-mail Id:</label>
                <input type="text" class="form-control" value="<?php echo $result['admin_email'];?>" name="admin_email"placeholder="Enter Your E-mail">
              </div>                              
          </div>
        </div>
        <div class="col-md-6">
          <div class="panel-body">
              <div class="form-group">
                <label for="">Email Id:(Top Header):</label>
                <input type="text" class="form-control" value="<?php echo $result['admin_h_email']; ?>" name="header_email" placeholder="Enter Your Email Id...">
              </div>
              <div class="form-group">
                <label for="">Footer Address:</label>
                <input type="text" class="form-control" value="<?php echo htmlspecialchars($result['admin_footer_add']); ?>" name="footer_add"  placeholder="Footer Address...........">
              </div>
              <div class="form-group">
                <label for="">Footer Phone:</label>
                <input type="text" class="form-control" value="<?php echo $result['admin_footer_phone']; ?>" name="footer_phone" placeholder="Enter Your phone Number">
              </div>

               <div class="form-group">
                <label for="">Footer Email:</label>
                <input type="text" class="form-control" value="<?php echo $result['admin_footer_email']; ?>" name="footer_email" placeholder="Enter Your Contact Footer Email">
              </div>  

          </div>
        </div>
      </div>
    </div>
       <!-- <div class="col-md-12">
        <p style="color: #000; background: orange; text-align: center; font-size: 20px; font-weight: bold;">
          Header Activity
        </p>
        <div class="col-md-4">
          <label>Bank Name</label>
          <input type="text" name="ac_bank" class="form-control" value="<?=$result['ac_bank'];?>">
        </div>
        <div class="col-md-4">
          <label> Account Number : </label>
          <input type="text" name="ac_no" class="form-control" value="<?=$result['ac_no'];?>">
        </div>
        <div class="col-md-4">
          <label>Account IFSC Code :</label>
          <input type="text" name="ac_ifsc" class="form-control" value="<?=$result['ac_ifsc'];?>">
        </div>
      </div>  -->

              <div class="col-md-12 text-center" > 
                <button class="btn btn-primary" name="Updt" >Submit</button> 
              </div>
       </form>
    
  </div>
    <!-- / container-fluid -->
  <?php include('site-footer.php'); ?>