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


<?php
	echo "<h3>EDIT ALBUM GALLERY</h3>";
	echo "<h3 align=\"right\"><a href=\"?page=ls_album&page_desc=Daftar Album\" style=\"color:#FF0066\">Lihat Album</a></h3>";
	
	$id_gallery=mysqli_real_escape_string($mysqli, $_GET["id"]);
	$qry=mysqli_query($mysqli, "SELECT * FROM m_gallery WHERE id_gallery='$id_gallery'");
	$data=mysqli_fetch_array($qry);
	
?>

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

  <h4>Gambar Sampul Album</h4>
  <img src="../foto_berita/<?php echo $data[foto_album] ?>" width="320" height="240"/><br/><br/>
  <input type="file" name="txtFoto" id="txtFoto" /><br/><br/>
      
  <input type="submit" name="button" id="button" value="Simpan" class="tombol">

  
</form>

