<?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">
        <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>
        <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 Why 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 Why Us</li>
        </ol>
      </div>
    </section>
    <?php
    extract($_POST);
    if(isset($upd))
    {
      $title_why1 = addslashes($title_why1);
      $title_why2 = addslashes($title_why2);
      $title_why3 = addslashes($title_why3);
      $title_why4 = addslashes($title_why4);
      $title_why5 = addslashes($title_why5);
      $title_why6 = addslashes($title_why6);
      $title_why7 = addslashes($title_why7);
      $title_why8 = addslashes($title_why8);
      $desc_why1 = addslashes($desc_why1);
      $desc_why2 = addslashes($desc_why2);
      $desc_why3 = addslashes($desc_why3);
      $desc_why4 = addslashes($desc_why4);
      $desc_why5 = addslashes($desc_why5);
      $desc_why6 = addslashes($desc_why6);
      $desc_why7 = addslashes($desc_why7);
      $desc_why8 = addslashes($desc_why8);
      $query = "update tbl_contact_desc set introduction1='$why_description',title_why1='$title_why1',title_why2='$title_why2',title_why3='$title_why3',title_why4='$title_why4',title_why5='$title_why5',title_why6='$title_why6',title_why7='$title_why7',title_why8='$title_why8',desc_why1='$desc_why1',desc_why2='$desc_why2',desc_why3='$desc_why3',desc_why4='$desc_why4',desc_why5='$desc_why5',desc_why6='$desc_why6',desc_why7='$desc_why7',desc_why8='$desc_why8' 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>
    <form method="post">
      <div class="row">
        <div class="container-fluid">
          <div class="col-md-12"><a href="update-about-us.php" class="btn btn-primary">Back</a></div>
          <div class="col-md-12">
            <div class="form-group">
              <label>Why US description</label>
              <textarea name="why_description" id="ckeditor1"><?=$arr['introduction1'];?></textarea>
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <label> Title-1st</label>
              <input type="text" name="title_why1" value="<?=htmlspecialchars($arr['title_why1']);?>" class="form-control">
              <label>Description:</label>
              <textarea name="desc_why1" class="form-control"><?=htmlspecialchars($arr['desc_why1']);?></textarea>
            </div>
            <div class="form-group">
              <label>Why Title-2nd</label>
              <input type="text" name="title_why2" value="<?=htmlspecialchars($arr['title_why2']);?>" class="form-control">
              <label>Description:</label>
              <textarea name="desc_why2" class="form-control"><?=htmlspecialchars($arr['desc_why2']);?></textarea>
            </div>
            <div class="form-group">
              <label>why Title-3th</label>
              <input type="text" name="title_why3" value="<?=htmlspecialchars($arr['title_why3']);?>" class="form-control">
              <label>Description:</label>
             <textarea name="desc_why3" class="form-control"><?=htmlspecialchars($arr['desc_why3']);?></textarea>
            </div>
            <div class="form-group">
              <label>why Title-4th</label>
              <input type="text" name="title_why4" value="<?=htmlspecialchars($arr['title_why4']);?>" class="form-control">
              <label>Description:</label>
             <textarea name="desc_why4" class="form-control"><?=htmlspecialchars($arr['desc_why4']);?></textarea>
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <label>Why Title-5th</label>
              <input type="text" name="title_why5" value="<?=htmlspecialchars($arr['title_why5']);?>" class="form-control">
              <label>Description:</label>
             <textarea name="desc_why5" class="form-control"><?=htmlspecialchars($arr['desc_why5']);?></textarea>
            </div>
            <div class="form-group">
              <label>Why Title-6th</label>
              <input type="text" name="title_why6" value="<?=htmlspecialchars($arr['title_why6']);?>" class="form-control">
              <label>Description:</label>
             <textarea name="desc_why6" class="form-control"><?=htmlspecialchars($arr['desc_why6']);?></textarea>
            </div>
            <div class="form-group">
              <label>why Title-7th</label>
              <input type="text" name="title_why7" value="<?=htmlspecialchars($arr['title_why7']);?>" class="form-control">
              <label>Description:</label>
             <textarea name="desc_why7" class="form-control"><?=htmlspecialchars($arr['desc_why7']);?></textarea>
            </div>
             <div class="form-group">
              <label>why Title-8th</label>
              <input type="text" name="title_why8" value="<?=htmlspecialchars($arr['title_why8']);?>" class="form-control">
              <label>Description:</label>
             <textarea name="desc_why8" class="form-control"><?=htmlspecialchars($arr['desc_why8']);?></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'); ?>