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

    <?php

    if(isset($_REQUEST['Update'])){

    $introduction=$_REQUEST['introduction'];

    $sqlUpdt="update tbl_home_about set 

    introduction='$introduction'

    where id=1";

    $dataUpdt=mysql_query($sqlUpdt);

    if($dataUpdt>0){ 

    $msg1="<p style='color:green;'>Records has been successfully updated</p>"; 

    	

    	}}

    		

    ?>

    <!-- About Description here -->

     <?php

    // extract($_POST);

    // if(isset($upd))

    // {

    //   // Title 

    //   $title1 = addslashes($title1);

    //   $title2 = addslashes($title2);

    //   $title3 = addslashes($title3);

    //   $title4 = addslashes($title4);

    //   $title5 = addslashes($title5);

    //   $title6 = addslashes($title6);

    //   // description

    //   $desc1 = addslashes($desc1);

    //   $desc2 = addslashes($desc2);

    //   $desc3 = addslashes($desc3);

    //   $desc4 = addslashes($desc4);

    //   $desc5 = addslashes($desc5);

    //   $desc6 = addslashes($desc6);

    //   $query = "update tbl_home_about set title1='$title1',title2='$title2',title3='$title3',title4='$title4',title5='$title5',title6='$title6',desc1='$desc1',desc2='$desc2',desc3='$desc3',desc4='$desc4',desc5='$desc5',desc6='$desc6' where id=1";

    //   mysqli_query($link,$query);

    //   {

    //     $msg = "<p style='color:green;'>Update Successfully!!!!</p>";

    //   }

    // }

    ?>

    <!-- updat image -->

    <?php

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

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

    // if(isset($_POST['upd_img']))

    // {

    //   if(mysqli_query($link,"update tbl_home_about set image='$name' where id=1"))

    //   {

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

    //     $img = "<p style='color:green;'>Image Upload successfully!!!!!</p>";

    //   }

    // }

    ?>

    <!-- / PAGE TITLE -->

    <?php 

    $sqlUp="select * from tbl_home_about where id=1";

    $dataup=mysql_query($sqlUp);

    $updtRslt=mysql_fetch_array($dataup);

    ?>

    <div class="container-fluid">

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

        <div class="row"><?=@$msg1;?></div>

      <div class="row">

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

          <section class="panel tasks-widget">

            <label>Description:</label>

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

          </section>

          <div class="text-center"> <button name="Update" class="btn btn-primary">Submit</button> </div>

        </div>

      </div>

      </form>

    <script>

      CKEDITOR.replace(ckeditor1)  

    </script>

    <!-- / container-fluid -->

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