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


<?php
	$qryx=mysqli_query($mysqli,"SELECT * FROM m_desa WHERE id_desa='$_SESSION[ses_id_desa]'");
	$datax=mysqli_fetch_array($qryx);
	$nama_desa=$datax["nama_desa"];
	$id_kec=$datax["id_kecamatan"];
	
	$qryk=mysqli_query($mysqli,"SELECT * FROM m_kecamatan WHERE id_kecamatan='$id_kec'");
	$datak=mysqli_fetch_array($qryk);
	$nama_kec=$datak["nama_kecamatan"];
	
	echo "<h3>KIRIM PERTANYAAN</h3>";
	echo "<h3 align=\"right\"><a href=\"?page=ls_pertanyaan&page_desc=Tanya Jawab\" style=\"color:#FF0066\">Lihat Semua Tanya Jawab</a></h3>";

?>

<form name="form1" method="post" action="_save_pertanyaan.php">
  <table width="600" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="204">&nbsp;</td>
      <td width="396">&nbsp;</td>
    </tr>
    <tr>
      <td valign="top">Asal</td>
      <td valign="top"><textarea name="txtAsal" id="txtAsal" cols="30" rows="2" class="kotakarea" readonly><?php echo $_SESSION["ses_admin_name"] ." (" . $_SESSION["ses_admin_id"] .")\n" . "TPK asal " . $nama_desa . ", Kecamatan: " . $nama_kec ?></textarea></td>
    </tr>
    <tr>
      <td valign="top">Pertanyaan</td>
      <td valign="top"><textarea name="txtPertanyaan" id="txtPertanyaan" cols="50" rows="4" class="kotakarea"></textarea></td>
    </tr>
    <tr>
      <td width="204">&nbsp;</td>
      <td width="396">&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Kirim" class="tombol"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
</form>

