<?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>Footer Description</h1>
        <p class="lead">Update your footer below</strong>.</p>
      </div>
      <div class="col-md-4">
       <!--  <ol class="breadcrumb pull-right no-margin-bottom">
         
          <li><a href="dashboard.html">Footer Description</a></li>
           <li class="active">Update About</li>
        </ol>-->
      </div> 
    </section>
    <?php
    if(isset($_REQUEST['Update']))
    {
          $footer_desc=$_REQUEST['footer_desc'];
          $sqlUpdt="update tbl_stativ_pages set 
          footer_desc='$footer_desc'
          where id='3'";
          $dataUpdt=mysqli_query($link,$sqlUpdt);
          if($dataUpdt>0)
          { 
              $msg="records has been successfully updated";
          }
    }	
    ?>
    <?php 
    $sqlUp="select * from tbl_stativ_pages where id='3'";
    $dataup=mysqli_query($link,$sqlUp);
    $updtRslt=mysqli_fetch_array($dataup);
    ?>
    <!-- About Description here -->
    <?php
    // extract($_POST);
    // if(isset($desc_about))
    // {
    //   $query = "update tbl_about_us set title_about1='$title_about1',title_about2='$title_about2',title_about3='$title_about3',desc_about1='$desc_about1',desc_about2='$desc_about2',desc_about3='$desc_about3' where id=1";
    //   mysqli_query($link,$query);
    //   {
    //     $msg = "<p style='color:green;'>Update Successfully!!!!</p>";
    //   }
    // }
    ?>
    <!-- / PAGE TITLE -->
    <div class="container-fluid">
      <div class="row">
        <!-- <div class="container-fluid">
          <a href="#" class="btn bnt-primary">TRUST</a>
        </div> -->
      </div>
      <form method="post" enctype="multipart/form-data">
      <div class="row">
        <div class="col-md-12">
          <section class="panel tasks-widget">
              <textarea id="ckeditor1" name="footer_desc"><?php echo $updtRslt['footer_desc']; ?></textarea>
          </section>
        </div>
       
      </div>
      <div class="text-center"> <button name="Update" class="btn btn-primary">Submit</button> </div>
    </form>
      <!-- / row -->
      <!-- <hr style="border-bottom:1px solid;"> -->
      <!-- <form method="post"> -->
<!--       <div class="row">
        <div class="container-fluid">
          <div class="col-md-6">
            <div class="form-group">
              <label>First Title</label>
              <input type="text" name="title_about1" value="<?=$arr['title_about1'];?>" class="form-control">
              <label>Description:</label>
              <input type="text" name="desc_about1" value="<?=$arr['desc_about1'];?>" class="form-control">
            </div>
            <div class="form-group">
              <label>Second Title</label>
              <input type="text" name="title_about2" value="<?=$arr['title_about2'];?>" class="form-control">
              <label>Description:</label>
              <input type="text" name="desc_about2" value="<?=$arr['desc_about2'];?>" class="form-control">
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <label>Third Title</label>
              <input type="text" name="title_about3" value="<?=$arr['title_about3'];?>" class="form-control">
              <label>Description:</label>
              <input type="text" name="desc_about3" value="<?=$arr['desc_about3'];?>" class="form-control">
            </div>
          </div>
        </div>
      </div> -->
      <!-- <div class="text-center">
        <div class="container-fluid">
          <input type="submit" name="desc_about" value="Update" class="btn btn-primary">
        </div>
      </div> -->
    <!-- </form> -->
    </div>
    <script>
      CKEDITOR.replace(ckeditor1)  
    </script>
    <!-- / container-fluid -->
 <?php include('site-footer.php'); ?>