<?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 About(Expertise) 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 Expertise</li>
        </ol>
      </div>
    </section>
    <?php
    extract($_POST);
    if(isset($upd))
    {
      $title_core1 = addslashes($title_core1);
      $title_core2 = addslashes($title_core2);
      $title_core3 = addslashes($title_core3);
      $desc_core1 = addslashes($desc_core1);
      $desc_core2 = addslashes($desc_core2);
      $desc_core3 = addslashes($desc_core3);
      $query = "update tbl_contact_desc set title_core1='$title_core1',title_core2='$title_core2',title_core3='$title_core3',desc_core1='$desc_core1',desc_core2='$desc_core2',desc_core3='$desc_core3' where id=1";
      mysqli_query($link,$query);
      {
        $msg = "<p style='color:green;'>Update Successfully!!!!</p>";
      }
    }
    ?>
    <!-- / PAGE TITLE -->
    <?php
    $sel = mysqli_query($link,"select * from tbl_contact_desc where id=1");
    $arr = mysqli_fetch_assoc($sel);
    ?>
    <div class="container-fluid">
    <div class="row">
      <?=@$msg;?>
    </div>
    <div class="container-fluid"></div>
    <form method="post">
      <div class="row">
        <div class="container-fluid">
         <!--  <div class="col-md-12">
           <label>Description:</label>
           <textarea id="ckeditor1" name="desc_core"><?=$arr['desc_core'];?></textarea>
          </div> -->
          <div class="col-md-12"><a href="update-about-us.php" class="btn btn-primary">Back</a></div>
          <div class="col-md-6">

            <div class="form-group">
              <label>Title-1st</label>
              <input type="text" name="title_core1" value="<?=htmlspecialchars($arr['title_core1']);?>" class="form-control">
              <label>Description:</label>
              <textarea name="desc_core1" class="form-control"><?=htmlspecialchars($arr['desc_core1']);?></textarea>
            </div>
             <div class="form-group">
              <label>Title-2nd</label>
              <input type="text" name="title_core2" value="<?=htmlspecialchars($arr['title_core2']);?>" class="form-control">
              <label>Description:</label>
              <textarea name="desc_core2" class="form-control"><?=htmlspecialchars($arr['desc_core2']);?></textarea>
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <label>Title-3th</label>
              <input type="text" name="title_core3" value="<?=htmlspecialchars($arr['title_core3']);?>" class="form-control">
              <label>Description:</label>
              <textarea name="desc_core3" class="form-control"><?=htmlspecialchars($arr['desc_core3']);?></textarea>
            </div>
          </div>
        </div>
      </div>
      <div class="text-center">
        <div class="container-fluid">
          <input type="submit" name="upd" value="Update" class="btn btn-primary">
        </div>
      </div>
    </form>
    </div>
    <script>
      CKEDITOR.replace(ckeditor1)  
    </script>
    <!-- / container-fluid -->
 <?php include('site-footer.php'); ?>