<?PHP
include("index.db.php");
$uid1 = $_GET["uid"];
$table1 = "agenda";
$where1 = "d_agenda";
$query = "Select * from $table1 where $where1 = '$uid1'"; 
$result = mysql_query($query); 
if($row = mysql_fetch_array($result)){
?>
<link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" />
<script language="JavaScript" type="text/javascript" src="wysiwyg.js">
<script type="text/javascript" src="jsDatePick.min.1.3.js"></script>
<script type="text/javascript">
	window.onload = function(){
		new JsDatePick({
			useMode:2,
			target:"inputField",
			dateFormat:"%d/%m/%Y"
		});
	};
</script>

<script>

/*
Submit Once form validation- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}
</script>


</head>

<body>
<table width="100%"  border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td bgcolor="#FFFFFF"><form action="inc/datun_agendaeditdel.php" method="post" enctype="multipart/form-data" name="form1">
      <table width="100%"  border="0" align="center" cellpadding="2" cellspacing="2">
        <tr>
          <td colspan="3">             <div align="center"></div>            
          <div align="center"><strong>AGENDA DATUN <? $tgl=date("d/m/Y");
$th_skrg=date("Y");
$bl_skrg=date("m");
?>
          </strong></div>            
          <div align="right"></div></td>
          </tr>
        <tr>
          <td colspan="3"><strong>ISIAN MOU </strong>
            <hr size="1"></td>
          </tr>
        <tr>
          <td width="24%">Tanggal Pelaksanaan </td>
          <td width="2%"><div align="center">:</div></td>
          <td width="74%"><input name="tglagenda" type="text" id="inputField" value="<?PHP echo htmlspecialchars($row['d_tgl']); ?>" size="20">
            <input name="agenda" type="hidden" id="agenda" value="<?PHP echo $uid1; ?>">
            <input name="fungsi" type="hidden" id="fungsi" value="edit"></td>
        </tr>
        <tr>
          <td>Acara / Tentang </td>
          <td><div align="center">:</div></td>
          <td><b>
            <textarea name="acara" cols="60" rows="4" wrap="VIRTUAL" id="acara"><?PHP echo htmlspecialchars($row['d_acara']); ?></textarea>
          </b></td>
        </tr>
        <tr>
          <td>Tempat Pelaksanaan </td>
          <td><div align="center">:</div></td>
          <td><b>
            <textarea name="tempat" cols="60" rows="3" wrap="VIRTUAL" id="tempat"><?PHP echo htmlspecialchars($row['d_tempat']); ?></textarea>
          </b></td>
        </tr>
        <tr>
          <td rowspan="2">&nbsp;</td>
          <td rowspan="2">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td><input type="reset" name="Submit2" value="Reset">
            <input type="submit" name="Submit" value="Simpan">
* Cukup Sekali Tekan tombol simpan dan tunggu proses </td>
        </tr>
        <tr>
          <td rowspan="2">&nbsp;</td>
          <td rowspan="2">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
      </form></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><form name="form2" method="post" action="inc/datun_agendaeditdel.php">
      <table width="100%"  border="0" cellspacing="4" cellpadding="4">
        <tr>
          <td width="79%">Apakah anda akan menghapus agenda ini 
            <input name="agenda" type="hidden" id="agenda" value="<?PHP echo $uid1; ?>">
            <input name="fungsi" type="hidden" id="fungsi" value="delete"></td>
          <td width="21%"><input type="submit" name="Submit3" value="HAPUS"></td>
        </tr>
      </table>
    </form></td>
  </tr>
</table>
<? } ?>