<?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 -->
    <?php
    extract($_POST);
    if(isset($update))
    {
      if(mysqli_query($link,"update tbl_stativ_pages set desc_one='$desc_one',desc_two='$desc_two',desc_three='$desc_three',desc_four='$desc_four',desc_five='$desc_five',title_one='$title_one',title_two='$title_two',title_three='$title_three',title_four='$title_four',title_five='$title_five' where id=3"))
      {
        $msg = "<p style='color:green;'>Update Successfully!!!!!!</p>";
      }
    }
    ?>

    <section id="page-title" class="row">
      <div class="col-md-8">
        <h1>Dashboard</h1>
        <p class="lead">Update Why Choose Us below</strong>.</p>
      </div>
      <div class="col-md-4">
        <ol class="breadcrumb pull-right no-margin-bottom">
         
          <li><a href="dashboard.html">Dashboard</a></li>
          <li class="active">Update Choose Us</li>
        </ol>
      </div>
    </section>
    <!-- / PAGE TITLE -->
    <?php
    $sel = mysqli_query($link,"select * from tbl_stativ_pages where id=3");
    $arr = mysqli_fetch_assoc($sel);
    ?>
    <div class="container-fluid">
      <div><?=@$msg;?></div>
      <form method="post">
      <div class="row">
      
        <!-- fist title -->
          <div class="col-md-6">
            <div class="form-group">
              <label>First Title:</label>
              <input type="text" name="title_one" value="<?=$arr['title_one'];?>" class="form-control">
              <label>Description:</label>
              <input type="text" name="desc_one" value="<?=$arr['desc_one'];?>" class="form-control">
            </div>
            <hr style="border-bottom:1px solid">
            <div class="form-group">
              <label>second Title:</label>
              <input type="text" name="title_two" value="<?=$arr['title_two'];?>" class="form-control">
              <label>Description:</label>
              <input type="text" name="desc_two" value="<?=$arr['desc_two'];?>" class="form-control">
            </div>
              <hr style="border-bottom:1px solid">
             <div class="form-group">
              <label>Third Title:</label>
              <input type="text" name="title_three" value="<?=$arr['title_three'];?>" class="form-control">
              <label>Description:</label>
              <input type="text" name="desc_three" value="<?=$arr['desc_three'];?>" class="form-control">
            </div>
          </div>
          <!-- second title -->
          <div class="col-md-6">
            <div class="form-group">
              <label>Fourth Title:</label>
              <input type="text" name="title_four" value="<?=$arr['title_four'];?>" class="form-control">
              <label>Description:</label>
              <input type="text" name="desc_four" value="<?=$arr['desc_four'];?>" class="form-control">
            </div>
            <hr style="border-bottom:1px solid">
             <div class="form-group">
              <label>Fivth Title:</label>
              <input type="text" name="title_five" value="<?=$arr['title_five'];?>" class="form-control">
              <label>Description:</label>
              <input type="text" name="desc_five" value="<?=$arr['desc_five'];?>" class="form-control">
            </div>
          </div>
      </div>
       <div class="row">
        <div class="container-fluid">
          <input type="submit" name="update" value="Update" class="btn btn-primary">
        </div>
      </div>
      </form>
      <script>
      CKEDITOR.replace(ckeditor1)  
	     </script>
      <!-- / row -->
    </div>
    <!-- / container-fluid -->
 <?php include('site-footer.php'); ?>