<link href="css/form.css" type="text/css" rel="stylesheet" />

<script src="ckeditor/ckeditor.js"></script>

<?php
  $id=$_GET["id"];
  
  $qry=mysqli_query($mysqli,"SELECT * FROM tentang_kami WHERE id='$id'");
  if(mysqli_num_rows($qry)>0){
    
    $data=mysqli_fetch_array($qry);
  
  }

	echo "<h3>UBAH INFO TENTANG KAMI</h3>";
	echo "<h3 align=\"right\"><a href=\"?page=ls_about&page_desc=Kelola Halaman Tentang Kami\" style=\"color:#FF0066\">Kembali</a></h3>";

?>

<form name="form1" method="post" action="_edit_about.php" enctype="multipart/form-data">
  <h4>Judul:</h4>
  <input type="hidden" id="txtId" name="txtId" value="<?php echo $id ?>" />
  <input type="text" class="kotak" name="txtJudul" id="txtJudul" size="80" value="<?php echo $data[judul] ?>"/><br/><br/>
  <h4>Berita</h4>
  <textarea id="txtInfo" name="txtInfo" rows="10" cols="80"><?php echo $data[isi] ?></textarea><br/><br/>

  <h4>Gambar</h4>
  <img src="../foto_berita/<?php echo $data[foto] ?>" /><br/>&nbsp;
  <input type="file" name="txtFoto" id="txtFoto" /><br/><br/>
      
  <input type="submit" name="button" id="button" value="Simpan" class="tombol">

  <script>
      // Replace the <textarea id="editor1"> with a CKEditor
      // instance, using default configuration.
      CKEDITOR.replace( 'txtInfo' );
  </script>
</form>

