<?php include('site-header.php'); ?>
  <!-- end of LOGO CONTAINER -->
  <!-- - - - - - - - - - - - - -->
  <!-- start of SIDEBAR        -->
  <!-- - - - - - - - - - - - - -->
<?php include('left-nevigation.php'); ?>
  <!-- - - - - - - - - - - - - -->
  <!-- end of SIDEBAR          -->
  <!-- - - - - - - - - - - - - -->
  <main id="playground">
  <script src="ckeditor/ckeditor.js"></script>
    <!-- - - - - - - - - - - - - -->
    <!-- start of TOP NAVIGATION -->
    <!-- - - - - - - - - - - - - -->
    <nav class="navbar navbar-top navbar-static-top">
      <div class="container-fluid">
        <!-- sidebar collapse and toggle buttons get grouped for better mobile display -->
        <div class="navbar-header nav">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-top"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="navbar-top">
          <ul class="nav navbar-nav navbar-right">
            <li class="dropdown user-profile"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
              <div class="user-img-container"> <img src="demofiles/demoimage.gif" alt=""> </div>
              Sign Out <span class="chat-status success"></span> </a> </li>
          </ul>
        </div>
      </div>
      <!-- end of container-fluid -->
    </nav>
    <!-- - - - - - - - - - - - - -->
    <!-- end of TOP NAVIGATION   -->
    <!-- - - - - - - - - - - - - -->
    <!-- PAGE TITLE -->
    <section id="page-title" class="row">
      <div class="col-md-8">
        <h1>Home Activity </h1>
        <p class="lead">Update your Activity  below</strong>.</p>
      </div>
      <div class="col-md-4">
      </div>
    </section>
    <?php
    extract($_POST);
    if(isset($_POST['Update']))
    {
      $sqlup = "UPDATE `tbl_home_about` SET 
                        `title1`='$title1', 
                        `title2`='$title2', 
                        `title3`='$title3', 
                        `title4`='$title4', 
                        `title5`='$title5', 
                        `title6`='$title6', 
                        `title7`='$title7', 
                        `title8`='$title8', 
                        `title9`='$title9', 
                        `title10`='$title10', 
                        `title11`='$title11', 
                        `title12`='$title12'
                        WHERE `id` ='1'";
      if(mysqli_query($link,$sqlup))
        {
          $msg = "<p style='color:green'>Successfully Update...</p>";
        }
    }
    ?>
    <!-- / PAGE TITLE -->
    <?php 
    $sqlUp="select * from tbl_home_about where id=1";
    $dataup=mysqli_query($link,$sqlUp);
    $updtRslt=mysqli_fetch_array($dataup);
    ?>
    <div class="container-fluid">
      <div class="row"><?=@$msg;?></div>
      <form method="post" enctype="multipart/form-data">
        <div class="row">
           <div class="col-md-12">
            <p style="background-color: orange; color: black; font-size: 24px; text-align: center; margin-top: 20px;"> Home Activity</p>
              <div class="col-md-6">
                <label> Years of Experience</label>
                <input type="text" name="title1" value="<?=$updtRslt['title1']; ?>" class="form-control">
                <label>States Servicing  All Over India</label>
                <input type="text" name="title2" value="<?=$updtRslt['title2']; ?>" class="form-control">
              </div>
              <div class="col-md-6">
                <label>Skilled Employees  In Our Fleet</label>
                <input type="text" name="title3" value="<?=$updtRslt['title3']; ?>" class="form-control">
                <label>Lakh Revenue Driven  Per Year</label>
                <input type="text" name="title4" value="<?=$updtRslt['title4']; ?>" class="form-control">
              </div>
          </div> 
          <div class="col-md-12">
            <p style="background-color: orange; color: black; font-size: 24px; text-align: center; margin-top: 20px;">Home  Features</p>
                  <div class="col-md-4" >
                    <label>Best Prices & Offers :</label>
                    <textarea name="title5" placeholder="Best Prices & Offers......." class="form-control" style="width: 100%; height: 120px;">
                      <?php echo $updtRslt['title5']; ?>
                    </textarea>
                  </div>
                  <div class="col-md-4">
                    <label> Assured Quality :</label>
                    <textarea name="title6" placeholder="Assured Quality......" class="form-control" style="width: 100%; height: 120px;">
                      <?php echo $updtRslt['title6']; ?>
                    </textarea>
                  </div>
                  <div class="col-md-4">
                    <label>Wide Assortment :</label>
                    <textarea name="title7" placeholder="Wide Assortment......" class="form-control" style="width: 100%; height: 120px;">
                      <?php echo $updtRslt['title7'];?>
                    </textarea>
                  </div>                      
          </div>
          
          <!-- <div class="col-md-12">
            <p style="background-color: orange; color: black; font-size: 24px; text-align: center; margin-top: 20px;"> Home Footer Activity</p>
              <div class="col-md-6">
                <label>Quality Assurance</label>
                <input type="text" name="title8" value="<?=$updtRslt['title8']; ?>" class="form-control">
                <label>Support 24/7</label>
                <input type="text" name="title9" value="<?=$updtRslt['title9']; ?>" class="form-control">
              </div>
              <div class="col-md-6">
                <label>Reasonable Prices</label>
                <input type="text" name="title10" value="<?=$updtRslt['title10']; ?>" class="form-control">
                <label>Easy Return</label>
                <input type="text" name="title11" value="<?=$updtRslt['title11']; ?>" class="form-control">
              </div>
          </div> -->


        <div class="col-md-12">
          <br><br>
          <div class="text-center"> <button name="Update" class="btn btn-primary">Submit</button> </div></div>
        </div>
      </form>
     <script type="text/javascript">
      CKEDITOR.replace(ckeditor1)  
    </script>
    <!-- / container-fluid -->
 <?php include('site-footer.php'); ?>

     <script type="text/javascript">
$('document').ready(function()
{
    $('textarea').each(function(){
            $(this).val($(this).val().trim());
        }
    );
});
</script>