<?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 -->
     <?php include('site-top-header.php'); ?>
    <!-- - - - - - - - - - - - - -->
    <!-- end of TOP NAVIGATION   -->
    <!-- - - - - - - - - - - - - -->
    <!-- PAGE TITLE -->

   <?php 
        if(isset($_REQUEST['Updt']))
        {   
            $new_dese=$_REQUEST['new_dese'];
            $sqlUp="UPDATE `tbl_news` SET `new_dese`='$new_dese' WHERE id=1";
            mysqli_query($link,$sqlUp);
        }

		   ?>

     <?php
    	   $sql="SELECT * FROM `tbl_news` WHERE id='1'";
         $data=mysqli_query($link,$sql);
          $result=mysqli_fetch_array($data);
			 ?>

    <section id="page-title" class="row">
      <div class="col-md-8">
        <h1>Dashboard</h1>
        <p class="lead">Update your social media </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 News Media</li>
        </ol>
      </div>
    </section>

    <!-- / PAGE TITLE -->

  <div class="container-fluid">
    <div class="row">
        <div class="col-md-12">
          <div class="panel-body">
            <form method="post">
                <div class="panel-body">
                  <div class="form-group">
                    <label for="">News Update</label>
                        <textarea id="ckeditor1" name="new_dese"><?php echo $result['new_dese']; ?></textarea>

                        
                  </div>
                </div>
                <div class="panel-footer text-center"> 
                  <button class="btn btn-primary" name="Updt">Update</button>
                </div>
            </form>
        </div>      
          </div>
        </div>
      </div>


    <!-- / container-fluid -->
 <script>

      CKEDITOR.replace(ckeditor1)  

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