<?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   -->

    <!-- - - - - - - - - - - - - -->

    <!-- Add Image -->

    <?php

    // extract($_POST);

    // $tmp = $_FILES['att']['tmp_name'];

    // $name = $_FILES['att']['name'];

    // if(isset($upda))

    // {

    //   $himage = $_POST['himage'];

    //   $sel = "UPDATE `tbl_contact_desc` SET `image1`='$name' WHERE id=1";

    //   if(mysqli_query($link,$sel))

    //   {

    //     move_uploaded_file($tmp, "../about-image/$name");

    //     unlink("../about-image/$himage");

    //   }

      

    // }

    //  if(isset($upda2))

    // {

    //   $himage = $_POST['himage'];

    //   $sel = "UPDATE `tbl_contact_desc` SET `image2`='$name' WHERE id=1";

    //   if(mysqli_query($link,$sel))

    //   {

    //     move_uploaded_file($tmp, "../about-image/$name");

    //     unlink("../about-image/$himage");

    //   }

      

    // }

    //  if(isset($upda3))

    // {

    //   $himage = $_POST['himage'];

    //   $sel = "UPDATE `tbl_contact_desc` SET `image3`='$name' WHERE id=1";

    //   if(mysqli_query($link,$sel))

    //   {

    //     move_uploaded_file($tmp, "../about-image/$name");

    //     unlink("../about-image/$himage");

    //   }

    // }

    ?>

    <!-- description add -->

    <?php

    extract($_POST);

    if(isset($updat))

    {

      $sel = "UPDATE `tbl_contact_desc` SET `introduction`='$introduction',`introduction1`='$introduction1' WHERE id=1";

      mysql_query($sel);

      

    }

?>

    <section id="page-title" class="row">

      <div class="col-md-8">

        <h1>Dashboard</h1>

        <p class="lead">Update your About 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 About</li>

        </ol>

      </div>

    </section>

    <!-- / PAGE TITLE -->

    <?php

    $que = "select * from tbl_contact_desc";

    $run=mysql_query($que);

    $result= mysql_fetch_assoc($run);

    ?>

    <div class="container-fluid">

       <div class="row">

        <div class="container-fluid" style="margin-left:15px;">

          <a href="why-us.php" class="btn btn-primary">Update Why Us</a>

        </div>

      </div>

       <div class="row">

        <form method='post'>

          <div class="col-sm-12">

              <div class="row">

                <div class="col-sm-12">

                  <div class="form-group">

                  <label>Description:(H3 heading Use Only)</label>

                  <textarea  id="ckeditor1" name="introduction"><?=$result['introduction'];?></textarea>

                </div>

                </div>

              </div>

              <div class="row">

                <div class="text-center">

                  <div class="form-group">

                  <input class="btn btn-primary" name="updat" type="submit" value="SUBMIT">

                  </div>

                </div>

              </div>

          </div>

        </form>

      </div> <!-- / row -->

   <!--  <div class="container-fluid">

      <form method="post" enctype="multipart/form-data">

         <div class="col-md-4">

            <img src="../about-image/<?=$result['image1'];?>" style="width:100%;height:300px;">

            <input type="hidden" name="himage" value="<?=$result['image1'];?>">

            <label>Image size(156 x 199)Pixel</label>

            <input type="file" name="att" class="bnt bnt-primary" required="">

            <input type="submit" name="upda" value="update" class="btn btn-primary form-control">

          </div>

      </form>



      <form method="post" enctype="multipart/form-data">

          <div class="col-md-4">

            <img src="../about-image/<?=$result['image2'];?>" style="width:100%;height:300px;">

            <input type="hidden" name="himage" value="<?=$result['image2'];?>">

            <label>Image size(156 x 199)Pixel</label>

            <input type="file" name="att" class="bnt bnt-primary" required="">

            <input type="submit" name="upda2" value="update" class="btn btn-primary form-control">

          </div>

      </form>



      <form method="post" enctype="multipart/form-data">

          <div class="col-md-4">

            <img src="../about-image/<?=$result['image3'];?>" style="width:100%;height:300px;">

            <input type="hidden" name="himage" value="<?=$result['image3'];?>">

            <label>Image size(156 x 199)Pixel</label>

            <input type="file" name="att" class="bnt bnt-primary" required="">

            <input type="submit" name="upda3" value="update" class="btn btn-primary form-control">

          </div>

      </form>

    </div> -->

     

    </div><!--/container-->

       <script>

      CKEDITOR.replace(ckeditor1)

      CKEDITOR.replace(ckeditor2)

      CKEDITOR.replace(ckeditor3) 

      CKEDITOR.replace(ckeditor4)

	  </script>

      <!-- / row -->

    <!-- / container-fluid -->

 <?php include('site-footer.php'); ?>