<?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>Dashboard</h1>
        <p class="lead">Update your Service home 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 Service</li>
        </ol>
      </div>
    </section>
    <!-- Service page -->
    <!-- service Description here -->
    <?php
    extract($_POST);
    if(isset($desc_about))
    {
      $query = "update  tbl_service_home set title_ser1='$title_ser1',title_ser2='$title_ser2',title_ser3='$title_ser3',desc_ser1='$desc_ser1',desc_ser2='$desc_ser2',desc_ser3='$desc_ser3' where ser_id=6";
      mysqli_query($link,$query);
      {
        $msg = "<p style='color:green;'>Update Successfully!!!!</p>";
      }
    }
    ?>
    <!-- / PAGE TITLE -->
    <div class="container-fluid">
      <!-- / row -->
      <?php
      $sel = mysqli_query($link,"select * from tbl_service_home");
      $arr = mysqli_fetch_assoc($sel);
      ?>
      <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_ser1" value="<?=$arr['title_ser1'];?>" class="form-control">
              <label>Description:</label>
               <textarea id="ckeditor1" name="desc_ser1"><?=$arr['desc_ser1'];?></textarea>
            </div>
            <div class="form-group">
              <label>Second Title</label>
              <input type="text" name="title_ser2" value="<?=$arr['title_ser2'];?>" class="form-control">
              <label>Description:</label>
              <textarea id="ckeditor2" name="desc_ser2"><?=$arr['desc_ser2'];?></textarea>
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <label>Third Title</label>
              <input type="text" name="title_ser3" value="<?=$arr['title_ser3'];?>" class="form-control">
              <label>Description:</label>
              <textarea id="ckeditor3" name="desc_ser3"><?=$arr['desc_ser3'];?></textarea>
            </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)
      CKEDITOR.replace(ckeditor2)
      CKEDITOR.replace(ckeditor3)
    </script>
    <!-- / container-fluid -->
 <?php include('site-footer.php'); ?>